ZombieCPU/opcodes.py

13 lines
325 B
Python
Raw Normal View History

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
JZ = 8 # Jump to address if zero
CMP = 9 # Compare and set zero flag
INC = 10 # increment
DEC = 11 # decrement