News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Auto annotation of disassembled code for Firmware calls

Started by kolleykibber, 16:45, 21 January 21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kolleykibber

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.

GUNHED

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.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

pelrun

Disark should do it for you without any special handling just by passing it a symbol file with the firmware labels defined in it.

Targhan

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.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

kolleykibber

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 :)




GUNHED

JavaCPC can do this after assembling too - Markus just told me.
How? Ask him.  :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

Powered by SMFPacks Menu Editor Mod