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