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

Read sym file #34

Open
jendrikw opened this issue Sep 2, 2020 · 1 comment
Open

Read sym file #34

jendrikw opened this issue Sep 2, 2020 · 1 comment

Comments

@jendrikw
Copy link

jendrikw commented Sep 2, 2020

The rgbds toolchain (https://github.com/rednex/rgbds) can output a .sym file, where all labels used in the assembler code are given with their location. It looks something like this.

; this is a comment
; the format is
; bank:address label
00:08f4 Start.mainloop
00:09b0 memcpy
00:09b4 memcpy.repeat
00:09b7 memcpy.start

The bgb emulator reads the file if it has the same name as the rom file (except the file extension is .sym) and displays the labels in the disassembly, which looks like this:

image

The labels are very helpful while debugging and it would be awesome if binjgb could support it.

@binji
Copy link
Owner

binji commented Sep 8, 2020

it's a cool idea! I don't have much time to work on binjgb much anymore, but who knows, I may get around to it. :-) If you want to contribute a patch, I'd be happy to review!

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

2 participants