From 854d6c6c6cdcb075c0ea896cc918bd18de3f36f3 Mon Sep 17 00:00:00 2001 From: ingressy Date: Thu, 12 Feb 2026 21:23:49 +0000 Subject: [PATCH] =?UTF-8?q?zaehler.asm=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zaehler.asm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 zaehler.asm diff --git a/zaehler.asm b/zaehler.asm new file mode 100644 index 0000000..26ecc56 --- /dev/null +++ b/zaehler.asm @@ -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 \ No newline at end of file