📚 REDCODE-94 INSTRUCTION REFERENCE (10/19)
JMN - Jump if Not Zero
JMN: Jump if Not Zero
JMN jumps to address A if the value at address B is not zero. The opposite of JMZ.
Syntax
JMN target, test ; Jump if test is non-zeroUse Cases
Loop While Counter Non-Zero
loop: MOV bomb, @ptr
ADD #3, ptr
JMN loop, count ; Continue while count != 0Detect Own Code
Check if your own code is still intact:
JMN safe, guard ; If guard is non-zero, we're ok
JMP emergency ; Guard was zeroed — we're under attack!Modifiers
.B— Test B-field (default).A— Test A-field
Strategic Notes
JMN is the complement of JMZ. While scanners use JMZ to skip empty space, JMN can be used to verify that your own code hasn't been damaged by enemy bombing.