News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Atlas #JMP command  (Read 3967 times)

Lewnatic

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Atlas #JMP command
« 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

  • Hero Member
  • *****
  • Posts: 1288
  • Bring DQV
    • View Profile
    • DQ Translations!
Re: Atlas #JMP command
« 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.

Pennywise

  • Hero Member
  • *****
  • Posts: 2256
  • I'm curious
    • View Profile
    • Yojimbo's Translations
Re: Atlas #JMP command
« 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

  • IRC Staff
  • Hero Member
  • *****
  • Posts: 3507
    • View Profile
    • Aeon Genesis
Re: Atlas #JMP command
« Reply #3 on: January 10, 2011, 10:22:05 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

  • Jr. Member
  • **
  • Posts: 11
    • View Profile
Re: Atlas #JMP command
« 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.