beebasm symbols table

Development tools discussion area.
Post Reply
dominicbeesley
Posts: 640
Joined: Tue Apr 30, 2013 11:16 am
Contact:

beebasm symbols table

Post by dominicbeesley » Tue Sep 18, 2018 1:49 pm

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

User avatar
tricky
Posts: 2766
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: beebasm symbols table

Post by tricky » Wed Sep 19, 2018 11:55 am

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.

dominicbeesley
Posts: 640
Joined: Tue Apr 30, 2013 11:16 am
Contact:

Re: beebasm symbols table

Post by dominicbeesley » Wed Sep 19, 2018 12:22 pm

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

Post Reply