RetroDebugger icon indicating copy to clipboard operation
RetroDebugger copied to clipboard

Feature idea: highlight selfmod'ed opcodes and instructions in disassembly

Open bexxx opened this issue 9 months ago • 2 comments

Describe the feature In memory view, one can easily see which bytes are read and written to (even some shading to indicate time). Since a lot of asm code is self modifying it may be useful to see when executing a "sta" which byte was written, which is not always obvious. Ideally just highlight the byte the same way as in memory view.

Image

bexxx avatar Mar 19 '25 20:03 bexxx

It's a great idea to show memory writes. Assuming execution addresses are also recorded, it should be possible to automatically identify self-mod code because the bytes occupied by the executed instruction were also written (either before or after). There may also be some tricky edge cases to this. For example, indirect jumps like JMP ($1337) are not the trickiest but they are potentially also considered self-mod since the jump destination is subject to memory writes.

christo avatar Mar 27 '25 11:03 christo

Yes, this is on my TODO list already, basically these hex numbers should blink the same way as in memory dump view.

slajerek avatar Mar 27 '25 22:03 slajerek