You are reading a single comment by @grams and its replies. Click here to read the full conversation.
  • 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.

    Since I didn't have anything in the code explicit to nop that's all that's needed.

About

Avatar for grams @grams started