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.
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. :)
Disark should do it for you without any special handling just by passing it a symbol file with the firmware labels defined in it.
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.
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 :)
JavaCPC can do this after assembling too - Markus just told me.
How? Ask him. :)