From 3ffe24334790bc6dd4a2aec194e5e01e38f428d1 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Wed, 26 Mar 2025 10:25:57 +0000 Subject: [PATCH] Upload files to "/" --- esercizio_stack.asm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 esercizio_stack.asm diff --git a/esercizio_stack.asm b/esercizio_stack.asm new file mode 100644 index 0000000..457bbb0 --- /dev/null +++ b/esercizio_stack.asm @@ -0,0 +1,17 @@ +fill_memory: + push hl + push bc + ld hl, 200h + ld c, 01h + ld a, c +loop_fill: + ld (hl), a + inc hl + inc a + dec b + jr nz, loop_fill + pop bc + pop hl +finish: + halt + end \ No newline at end of file