8bit-cpu-emulator/examples/addition.asm

9 lines
106 B
NASM

; move imm 10 to register A
mov a, 10
; move imm 5 to register B
mov b, 5
; Add a & B
add a, b
; Halt
hlt