zaehler.asm hinzugefügt

This commit is contained in:
2026-02-12 21:23:49 +00:00
parent 15a8e8e3dd
commit 854d6c6c6c

18
zaehler.asm Normal file
View File

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