8608/examples/increment_reg.asm
2024-02-14 13:35:52 -05:00

8 lines
101 B
NASM

; This program adds 1 to register A until it equals 64, then halts.
loop:
inc a
cmp 64
jnz loop
hlt