This script allows inserting (replacing) the currently highlighted opcode with NOP (hex, 0x90).
NOP
0x90
doc = Document.getCurrentDocument() seg = doc.getCurrentSegment() adr = doc.getCurrentAddress() seg.writeByte(adr, 0x90) seg.markAsCode(adr)