From d8c75fc3e4d130fd888b029c78cffb6ab61ce103 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Sun, 6 Apr 2025 08:46:58 +0000 Subject: [PATCH] Upload files to "/" --- es3_20250317.asm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 es3_20250317.asm diff --git a/es3_20250317.asm b/es3_20250317.asm new file mode 100644 index 0000000..e4a151b --- /dev/null +++ b/es3_20250317.asm @@ -0,0 +1,29 @@ + ORG 300h +main: + LD HL, 0100h + LD B, 20h + LD C, 00h + LD D, 00h + +Controlla: + LD A, (HL) + AND 01h + JP Z, Pari + +Dispari: + INC D + JP Continua + +Pari: + INC C + +Continua: + INC HL + DEC B + JP NZ, Controlla + LD A, C + LD (0200h), A + LD A, D + LD (0201h), A + + HALT