Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: -startOffset commandline option for assembly #4

Open
StanHash opened this issue Aug 5, 2018 · 0 comments
Open

Suggestion: -startOffset commandline option for assembly #4

StanHash opened this issue Aug 5, 2018 · 0 comments

Comments

@StanHash
Copy link
Member

StanHash commented Aug 5, 2018

Example:

ColorzCore A FE8 -input Main.event -output HACK.gba -startOffset 0xB2A610

(this, of course, assumes that support for the -input <file> syntax (as opposed to -input:<file>) is implemented).

The -startOffset <offset> option would set the initial value of CURRENTOFFSET/whatever to <offset>, instead of the default 0.

This would have a mostly two advantageous effect (that come to my mind):

  • Allows tools that call EA externally for installing small chunks of events (such as FEBuilder) to not have to use workarounds through generating an "installer" file.
  • Waay in the future, when we'll consider outputting objects/asm in addition to raw binary, since ORG FreeSpace shouldn't be a thing anymore, it will allow us to properly differentiate hooks (sections that need to go at specific fixed offsets; maybe we could encode those with special names and/or just throw errors since those shouldn't really exists in standard relocatable objects anyway) and regular relocatable data (.text/.rodata-like sections).

🤔 All things considered that's actually not that potentially useful, but given that the amount of effort that would go into implementing such feature is probably fairly small I think it won't hurt to have it anyway at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant