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

9 lines
55 B
NASM

mov b, 3
mov a, 1
loop:
sub b, a
jz loop
hlt