CPCWiki forum

General Category => Programming => Topic started by: kolleykibber on 16:45, 21 January 21

Title: Auto annotation of disassembled code for Firmware calls
Post by: kolleykibber on 16:45, 21 January 21
Hi, I'm just getting reacquainted with CPC machine code and am looking into a few roms. i was wondering if there was a simple tool out there to annotate dissasembled code with comments where the CPC firmware calls are? In a perfect world can imagine some hypertext where you can go off and read the section you need of the firmware guide.
Title: Re: Auto annotation of disassembled code for Firmware calls
Post by: GUNHED on 16:52, 21 January 21
In a perfect world we all would contribute to such things.  ;)  However, meanwhile there are lot's of ROM listings with comments.
Your idea is good and should be implemented in some kind of disassembler.  :)
Title: Re: Auto annotation of disassembled code for Firmware calls
Post by: pelrun on 08:23, 22 January 21
Disark should do it for you without any special handling just by passing it a symbol file with the firmware labels defined in it.
Title: Re: Auto annotation of disassembled code for Firmware calls
Post by: Targhan on 09:58, 22 January 21
Quote from: pelrun on 08:23, 22 January 21
Disark should do it for you without any special handling just by passing it a symbol file with the firmware labels defined in it.

But Disark won't put comments besides the code, which is what the OP is interested about, I guess.
Title: Re: Auto annotation of disassembled code for Firmware calls
Post by: kolleykibber on 12:23, 22 January 21
Thanks for the replies.


It seems Java-CPC's assembler labels firmware calls when you select disassemble. (The disassembler doesn't seem to have this option)


There's a few smart disassemblers out there that claim to identify and define text blocks, but I haven't got anything working yet.


My stubborn laziness/procrastination will keep me searching rather than doing the work myself :)



Title: Re: Auto annotation of disassembled code for Firmware calls
Post by: GUNHED on 14:43, 22 January 21
JavaCPC can do this after assembling too - Markus just told me.
How? Ask him.  :)
Powered by SMFPacks Menu Editor Mod