For Battlezone it'd be possible to have the disassembler show the variable names and add a custom command to disassemble the display lists.
Are the symbol lists dynamic? I see "symlist" but no "symload" in the help text. One of the things I want to add to SourceGen is symbol table export, so you can annotate the code you're playing with in the emulator.
There are multiple types of symbols, some easier to handle than others:
- global labels for variables and code
- non-unique local labels for code ("@loop")
- local variables (used for zero-page variables)
All of the above can be converted to unique global symbols. Some people have been running assemblers in a mode that generates a symbol table (e.g. this
), and then parsing that table, but that approach limits you to whatever the assembler wants to support.