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:
The labels are very helpful while debugging and it would be awesome if binjgb could support it.
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!
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.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:The labels are very helpful while debugging and it would be awesome if binjgb could support it.