I didn't copy anything, I just made a note of the original instruction, overwrote it with the opposite jmp/nop, ran it, then swapped it back.
I didn't modify the code, just changed my if cmd == "jmp" to if cmd == (addr == addrToChange ? "nop" : "jmp") in my, er, VM.
if cmd == "jmp"
if cmd == (addr == addrToChange ? "nop" : "jmp")
Since I didn't have anything in the code explicit to nop that's all that's needed.
@grams started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
I didn't copy anything, I just made a note of the original instruction, overwrote it with the opposite jmp/nop, ran it, then swapped it back.