Patching code at debug-time: [WayBack] It’s a blong, blong, blong road…: ‘What if?’ scenario analysis in the CPU window.
Remember:
- There are dragons
- Patching too many bytes will kill a kitten and likely your application.
- Bytes in memory might not be what they seem, especially when having breakpoints (and the debugger frantically trying to set/remove $CC bytes for the INT 3 instruction)
I’ve done this for 20+ years and usually use the $90 byte (NOP instruction) though your experience may be different.
–jeroen