COREWAR

/
MOV - Move
🎯Press [STEP] twice to observe instruction copying to 0002 and looping(0/2)
🟢 EDIT MODE (Click cells to modify)
[Addr][Opcode][A (Left)][B (Right)]
📦 DATA / BOMB (DAT)
SRC($0)+2
0000
▼MOV
$
$
0001
↺JMP
$
0002
■DAT
#
#
◎ B-TARGET
0003
■DAT
$0
$0
++ ADD ROW
0004
■DAT
$0
$0
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 (2/19)

MOV - Move

MOV: Move (Copy Data or Instruction)

MOV copies data or an entire instruction from the source (operand A) to the destination (operand B). It is the fundamental instruction for self-replication (Imps and Papers) and memory bombardment (Stones and Scanners).

Syntax

MOV.I  source, destination   ; Copy whole cell from source to destination
MOV.AB #value, destination   ; Copy immediate number into destination B-field

Core Examples

  • MOV.I $0, $1 — The Imp: Copies its own instruction at relative address 0 to the next cell ($1), advancing endlessly through memory.
  • MOV.I bomb, @ptr — Indirect Bombing: Copies a DAT bomb to the memory address pointed to by ptr.
  • MOV.AB #10, count — Variable Initialization: Writes the literal number 10 into the B-field of count.

Modifiers

The modifier controls exactly which parts of the source cell are copied into the destination cell:

  • .I (Instruction): Copies the entire cell—opcode, modifier, A-mode/A-value, and B-mode/B-value (default when source is not #).
  • .AB: Copies source A-value into destination B-value (default when source is immediate #).
  • .A / .B: Copies A-field to A-field, or B-field to B-field.
  • .F / .X: Copies both A and B fields simultaneously (.F straight, .X crossed).
📚 REDCODE-94 INSTRUCTION REFERENCE (2/19)

MOV - Move

MOV: Move (Copy Data or Instruction)

MOV copies data or an entire instruction from the source (operand A) to the destination (operand B). It is the fundamental instruction for self-replication (Imps and Papers) and memory bombardment (Stones and Scanners).

Syntax

MOV.I  source, destination   ; Copy whole cell from source to destination
MOV.AB #value, destination   ; Copy immediate number into destination B-field

Core Examples

  • MOV.I $0, $1 — The Imp: Copies its own instruction at relative address 0 to the next cell ($1), advancing endlessly through memory.
  • MOV.I bomb, @ptr — Indirect Bombing: Copies a DAT bomb to the memory address pointed to by ptr.
  • MOV.AB #10, count — Variable Initialization: Writes the literal number 10 into the B-field of count.

Modifiers

The modifier controls exactly which parts of the source cell are copied into the destination cell:

  • .I (Instruction): Copies the entire cell—opcode, modifier, A-mode/A-value, and B-mode/B-value (default when source is not #).
  • .AB: Copies source A-value into destination B-value (default when source is immediate #).
  • .A / .B: Copies A-field to A-field, or B-field to B-field.
  • .F / .X: Copies both A and B fields simultaneously (.F straight, .X crossed).