Author Topic: Auto annotation of disassembled code for Firmware calls  (Read 351 times)

0 Members and 1 Guest are viewing this topic.

Offline kolleykibber

  • CPC464
  • **
  • Posts: 21
  • Country: gb
  • Liked: 24
  • Likes Given: 15
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.

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.316
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1073
  • Likes Given: 2610
Re: Auto annotation of disassembled code for Firmware calls
« Reply #1 on: 17: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.  :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.02.18)

Offline pelrun

  • Supporter
  • 6128 Plus
  • *
  • Posts: 708
  • Country: au
    • index.php?action=treasury
  • Liked: 381
  • Likes Given: 245
Re: Auto annotation of disassembled code for Firmware calls
« Reply #2 on: 09: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.

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.257
  • Country: fr
  • Liked: 1195
  • Likes Given: 177
Re: Auto annotation of disassembled code for Firmware calls
« Reply #3 on: 10:58, 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.0 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

Offline kolleykibber

  • CPC464
  • **
  • Posts: 21
  • Country: gb
  • Liked: 24
  • Likes Given: 15
Re: Auto annotation of disassembled code for Firmware calls
« Reply #4 on: 13: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 :)




Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.316
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1073
  • Likes Given: 2610
Re: Auto annotation of disassembled code for Firmware calls
« Reply #5 on: 15:43, 22 January 21 »
JavaCPC can do this after assembling too - Markus just told me.
How? Ask him.  :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.02.18)