Shortnote

This script allows inserting (replacing) the currently highlighted opcode with NOP (hex, 0x90).

Code

doc = Document.getCurrentDocument()
seg = doc.getCurrentSegment()
adr = doc.getCurrentAddress()
seg.writeByte(adr, 0x90)
seg.markAsCode(adr)