ZombieCPU/opcodes.py

9 lines
233 B
Python

NOP = 0 # No operation
HLT = 1 # Halt
RST = 2 # Reset
DBG = 3 # Enables Debug
LDI = 4 # Load Immediate
PUSH = 5 # Push
POP = 6 # Pop
JMP = 7 # Jump to address
JNZ = 8 # Jump to address if not zero