News:

11 March 2016 - Forum Rules

Main Menu

Atlas #JMP command

Started by Lewnatic, January 10, 2011, 02:01:02 PM

Previous topic - Next topic

Lewnatic

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

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.

Pennywise

You can have as many JMP commands as you want to a file.

Gideon Zhi

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

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