-
Notifications
You must be signed in to change notification settings - Fork 32
Description
In my deeds where I use 6502 bench, I most often use it to document the code I am working with. So the modus operandi is running the code in an emulator and in prallell document things in 6502 bench,
Here the emulator's debugger (I use VICE and RetroDebugger) have support for labels, so I can import a label file and have the debugger present them in the disassembly.
Request: So it would be most handy if 6502 bench could export the labels in the current project in a format that my debugger can read.
This is the format for such a file for VICE (it shows that several formats are supported):
l [<address_space>] "<filename>"
Load a file containing a mapping of labels to addresses. If no address space is specified, the default readspace is used. The file must contain commands the monitor understands, e.g. add_label. The compiler cc65 can create such label files. Vice can also load label files created by the Acme assembler. Their syntax is e.g. "labelname = $1234 ; Maybe a comment". A dot will be added automatically to label names assigned in this way to fit to the Vice label syntax. Normally the semicolon seperates commands but after an assignment of this kind it may be used to start a comment to end of line, so unchanged Acme label files can be fed into Vice.
I haven't been able to find the ACME file format, but at least these two options can generate them:
-l, --labeldump FILE select label dump file.
This can also be given using the "!sl" pseudo opcode.
-vl, --vicelabeldump FILE select label dump file for VICE.
This can also be given using the "!svl" pseudo opcode.
KickAssembler generates two different formats: (*.sym and *.vs)
http://theweb.dk/KickAssembler/webhelp/content/ch12s06.html
My assumption is that trhe Assebler step could be given an extra parameter to have the assemblers generate these files, without any additional code in 6502 bench.