COREWAR

/
SNE - Skip if Not Equal
🎯Press [STEP] twice to observe SNE skipping the next line when values differ(0/2)
🟢 EDIT MODE (Click cells to modify)
[Addr][Opcode][A (Left)][B (Right)]
📦 DATA / BOMB (DAT)
+3
0000
◉SNE
#
$
0001
■DAT
#
#
0002
↺JMP
$
0003
■DAT
#
#
◎ B-TARGET
0004
■DAT
$0
$0
++ ADD ROW
0005
■DAT
$0
$0
0006
■DAT
$0
$0
0007
■DAT
$0
$0
0008
■DAT
$0
$0
0009
■DAT
$0
$0
0010
■DAT
$0
$0
0011
■DAT
$0
$0
0012
■DAT
$0
$0
0013
■DAT
$0
$0
0014
■DAT
$0
$0
0015
■DAT
$0
$0
0016
■DAT
$0
$0
0017
■DAT
$0
$0
0018
■DAT
$0
$0
0019
■DAT
$0
$0
0020
■DAT
$0
$0
0021
■DAT
$0
$0
0022
■DAT
$0
$0
0023
■DAT
$0
$0
0024
■DAT
$0
$0
0025
■DAT
$0
$0
0026
■DAT
$0
$0
0027
■DAT
$0
$0
🏟️ARENA (20 ROWS)SCOPE: 0000 - 0019
[CORE MEMORY 800 CELLS (20 ROWS × 40 COLS)]1:1 Row Synced with Editor
TASKS: 0
CYC: 0
📖REDCODE-94 INSTRUCTION REFERENCE(Drag to move)
📚 REDCODE-94 INSTRUCTION REFERENCE (15/19)

SNE - Skip if Not Equal

SNE: Skip if Not Equal

SNE skips the next instruction if operands A and B are not equal. It is the logical opposite of SEQ/CMP.

Syntax

SNE A, B  ; Skip next if A != B

Alternative Scanning

While CMP/SEQ skips when cells are empty, SNE skips when they're non-empty:

scan: ADD #8, ptr
      SNE @ptr, #0   ; Skip if cell is non-empty
      JMP scan        ; Cell is empty, keep scanning
      MOV bomb, @ptr  ; Cell is non-empty, bomb it!
      JMP scan

This inverts the scan logic, which can sometimes produce more compact code.

Modifiers

  • .I — Compare entire instructions
  • .A — Compare A-fields
  • .B — Compare B-fields (default)

Strategic Notes

SNE is preferred by some competitive players for its slightly different scanning logic flow. Choose between CMP/SEQ and SNE based on which produces fewer instructions for your scanning pattern.

📚 REDCODE-94 INSTRUCTION REFERENCE (15/19)

SNE - Skip if Not Equal

SNE: Skip if Not Equal

SNE skips the next instruction if operands A and B are not equal. It is the logical opposite of SEQ/CMP.

Syntax

SNE A, B  ; Skip next if A != B

Alternative Scanning

While CMP/SEQ skips when cells are empty, SNE skips when they're non-empty:

scan: ADD #8, ptr
      SNE @ptr, #0   ; Skip if cell is non-empty
      JMP scan        ; Cell is empty, keep scanning
      MOV bomb, @ptr  ; Cell is non-empty, bomb it!
      JMP scan

This inverts the scan logic, which can sometimes produce more compact code.

Modifiers

  • .I — Compare entire instructions
  • .A — Compare A-fields
  • .B — Compare B-fields (default)

Strategic Notes

SNE is preferred by some competitive players for its slightly different scanning logic flow. Choose between CMP/SEQ and SNE based on which produces fewer instructions for your scanning pattern.