Files
asm/zaehler.asm
2026-02-12 21:25:08 +00:00

18 lines
285 B
NASM

section .text
global _start
_start:
mov al, 0 ;schiebt in das Register AL 0 AL= 8 Bit
.loop:
cmp al, 10 ;vergleicht ob AL 10 ist
je .done ;Jump if Equal nach done
inc al ;increment
jmp .loop ;sprung nach oben
.done:
mov rax, 60
xor rdi, rdi
syscall