binji / binjgb

Gameboy emulator implemented in C, that also runs in the browser
https://binji.github.io/binjgb/
MIT License
534 stars 61 forks source link

Read sym file #34

Open jendrikw opened 4 years ago

jendrikw commented 4 years ago

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 commented 4 years ago

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!