News: 11 March 2016 - Forum Rules

Author Topic: Any way to add comments to the disasssembly in MAME?  (Read 970 times)

JoeStrout

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Any way to add comments to the disasssembly in MAME?
« on: July 12, 2021, 08:52:47 pm »
I've just started playing with MAME's wonderful debugger.  But I find myself wishing I could add comments next to the code as I figure things out.

I would imagine these comments being stored with the memory address, so the next time you go look at a disassembly that includes the same address, you see your comments again.  Ideally you could even save/load these in a text file or some such.

Assuming no such feature exists, how do you all go about keeping track of things as you slowly make sense of ROM code?  Do you dump the disassembly to a text file, annotate that, and just look back and forth when exploring further in the debugger?

ScottyGor

  • Newbie
  • *
  • Posts: 1
    • View Profile
In my opinion. You were mistaken.
« Reply #1 on: July 13, 2021, 07:26:31 am »
Certainly is not present.

FAST6191

  • Hero Member
  • *****
  • Posts: 3357
    • View Profile
Re: Any way to add comments to the disasssembly in MAME?
« Reply #2 on: July 13, 2021, 03:35:56 pm »
I take it you are coming to us from the PC or similar world where IDA and whatnot are the order of the day and you have such fun toys? Most things that are not the PC tend to be happy to have the usual collection of breakpoints (there are a few that might only be run to line), maybe a few decodes for any specialist hardware registers, tile viewers and a decent logger ( http://fceux.com/web/help/CodeDataLogger.html ) to help identify those functions a bit faster.

Most projects I see do start from a static disassembly and fill that in, maybe with a in RAM one if there is some compression, obfuscation or encryption that needs dodging and that is an easy way of doing it. By all means use the emulator to find certain aspects of code (standard vblank routine, controller handler, maybe music handler), cheat search to find a few choice variables, and replace a few memory addresses with nice labels if you want. Can get quite a bit done that way. Indeed getting your disassembly back to the point where it can be assembled again is usually a notable milestone.

Two screens also helps in this sort of thing.

Jorpho

  • Hero Member
  • *****
  • Posts: 5063
  • The cat screams with the voice of a man.
    • View Profile
Re: Any way to add comments to the disasssembly in MAME?
« Reply #3 on: July 13, 2021, 10:59:34 pm »
That reminds me, isn't Ghidra the new hotness these days?

A little Google turns up https://ryiron.wordpress.com/2019/10/14/legendary-wings-reversing-a-1980s-arcade-game/ .
This signature is an illusion and is a trap devised by Satan. Go ahead dauntlessly! Make rapid progres!