indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
42 stars 19 forks source link

Add the ability to load symbols with a rom \ ram bank #84

Closed Yazwh0 closed 6 months ago

Yazwh0 commented 1 year ago

If multiple symbol files are loaded, especially the ones from the ROM, the symbols can overlap giving confusing disassembly.

eg: this is in the keyb bank (1), but can see labels for basic and other banks. image

indigodarkwolf commented 6 months ago

The GUI has long supported this, I'm pretty sure the support goes all the way back to the beginning of Box16, though I know -stds initially loaded everything into bank 0. I did notice that the command-line -sym didn't support this, though, so now it does. :3 Using the same comma-separated convention as other command-line options.

Example syntax: ./box16 -sym basic.sym,4

This loads the VICE label file "basic.sym", assigning any banked memory addresses to bank 4, so the labels won't show up or match the addresses of other banks.