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

Documentation on .sym files #12

Open
ijacquez opened this issue Oct 2, 2019 · 3 comments
Open

Documentation on .sym files #12

ijacquez opened this issue Oct 2, 2019 · 3 comments

Comments

@ijacquez
Copy link

ijacquez commented Oct 2, 2019

I can't seem to find more documentation on the .sym file format.

Does mgbdis implement a subset of it?

@mattcurrie
Copy link
Owner

Hi,

The symbol file support in mgbdis is based on a combination of the output of RGBDS, some custom magic/reserved labels, and Nocash's documentation here:

https://problemkaputt.de/gbahlp.htm#symbolicdebuginfo

@ijacquez
Copy link
Author

ijacquez commented Oct 3, 2019

Ah, I wouldn't have thought was from no$gba. It's rather limited, unfortunately...

I have a few "hacks" that I can help integrate better into mgbdis.

For example, in the .sym file, I have:

00:C501 C501_SomeConstant

I pass --include-file constants.asm to mgbdis and in game.asm, the constants.asm file is included. In constants.asm, I define C501_SomeConstant:

C501_SomeConstant EQU $C501

This is to avoid breaking compatibility with no$gba and BGB.

@ISSOtm
Copy link
Collaborator

ISSOtm commented Jan 31, 2021

See gbdev/rgbds#483.

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

3 participants