+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Atlas #JMP command
Pages: [1]
Author Topic: Atlas #JMP command  (Read 1 times)
Lewnatic
Guest
« on: January 10, 2011, 02:01:02 pm »

Hello,

Would someone be able to explain to me if it's possible to include multiple #JMP commands in Atlas so that several sections of text in one .txt file can be sucessfully inserted into different areas of the target file (say there is a section for spells, and then a massive chunk of coding before the section for items), or would I need to create seperate text files for each section?

Thanks to anyone who is able to help!
DaMarsMan
Guest
« Reply #1 on: January 10, 2011, 02:48:47 pm »

I'm not sure exactly what you are trying to do. It sounds like what I usually do though. You can separate them into files and just compile them to a temporary bin file. After that, include the bin in Atlas or whatever assembler you use. This way you can control via code where the blocks go.
Kagemusha
Guest
« Reply #2 on: January 10, 2011, 04:05:20 pm »

You can have as many JMP commands as you want to a file.
Gideon Zhi
Guest
« Reply #3 on: January 10, 2011, 10:22:05 pm »

Quote from: Pennywise on January 10, 2011, 04:05:20 pm
You can have as many JMP commands as you want to a file.

This. There are any number of reasons you'd need to be able to jump around in the ROM you're inserting to. Atlas was designed with this in mind. When you insert a second (or third, or fourth, etc) #JMP command, you'll end up with multiple "blocks" in the output, each one with its own readout and/or errors.

Most of my stuff is one or two text files, each with many, many #JMPs in them. I typically keep dialog separate from non-dialog, but otherwise...
Lewnatic
Guest
« Reply #4 on: January 11, 2011, 07:26:24 am »

Okay, thanks for the help, guys!
I just didn't want to have to have about ten different files assigned to one target file.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC