EXAPUNKS EXA INSTRUCTION SET v2.1
Data Movement
COPY R/N R Copy value to register
ADDI R/N R/N R Add and store result
SUBI R/N R/N R Subtract and store result
MULI R/N R/N R Multiply and store result
DIVI R/N R/N R Divide and store result
MODI R/N R/N R Modulo and store result
SWIZ R/N R/N R Extract digits from value
Control Flow
MARK L Define a label
JUMP L Unconditional jump to label
TJMP R/N L Jump if value > 0
FJMP R/N L Jump if value ≤ 0
TEST R/N = R/N Test equality (>, <, =, ≠)
HALT Terminate EXA execution
Communication
LINK R/N Move through network link
HOST R Get current host identifier
MODE Toggle between local/global mode
VOID M Discard message from M register
File Operations
GRAB R/N Hold file by ID
FILE R Get held file ID
SEEK R/N Move file cursor position
DROP Release held file
WIPE Delete held file
MAKE Create new file
EXA Management
REPL L Replicate EXA, jump to label
NOOP No operation (wait 1 cycle)
KILL Destroy EXA
Registers & Values
X
T
F
M
X, T: General purpose registers
F: File I/O register
M: Message passing register
SYNTAX NOTES
R = Register (X, T, F, M) | N = Number (-9999 to 9999) | L = Label
R/N = Register or Number | M = Message register only

File operations require holding a file with GRAB. Communication uses local/global modes.