Page 1 of 1

beebasm symbols table

Posted: Tue Sep 18, 2018 1:49 pm
by dominicbeesley
While working on the ADFS roms recently I discovered I needed to easily dump all symbols from beebasm. To that end bodged a quick and dirty fix to beebasm https://github.com/dominicbeesley/beebasm/tree/symbols

The normal dump from beebasm includes just labels not all the equ type symbols. I also added a simple header line that was easily picked up in scripts.

Is there wider interest in this - it's useful for me as I've got scripts that pick these symbols up and apply them to listing from Hoglet's decode6502 and to make symbol files for NoIce debugger.

If there is I'll look at making proper command line options and do a pull request. I was thinking:
- separate symbol file
- include symbol type
- anything else?

D

Re: beebasm symbols table

Posted: Wed Sep 19, 2018 11:55 am
by tricky
I keep meaning to add an option to dump symbols not at the top level, so for:

.print
{
.print_char
}

it would dump:
.print
.print.print_char

assuming that labels at the start address of a scope are "for" that scope.

Re: beebasm symbols table

Posted: Wed Sep 19, 2018 12:22 pm
by dominicbeesley
I'm not sure my change does that - I'll check and make sure it does.

It looks like its useful to you then it is probably more widely useful so I'll spend some time making it a proper option(s).

Any objections to the

Code: Select all

cout << "SYMBOLS = ";
before the symbols dump?

D