beebasm symbols table

handy tools that can assist in the development of new software
Post Reply
dominicbeesley
Posts: 1012
Joined: Tue Apr 30, 2013 12:16 pm
Contact:

beebasm symbols table

Post by dominicbeesley » Tue Sep 18, 2018 2: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: 4245
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: beebasm symbols table

Post by tricky » Wed Sep 19, 2018 12:55 pm

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: 1012
Joined: Tue Apr 30, 2013 12:16 pm
Contact:

Re: beebasm symbols table

Post by dominicbeesley » Wed Sep 19, 2018 1: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

Return to “development tools”