From 94d56e98dca2ace8672e3ba2eba3896f6be9ce0f Mon Sep 17 00:00:00 2001 From: rick Date: Mon, 10 May 2021 17:33:25 +0200 Subject: [PATCH] Ajout premier fichier --- hello.asm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 hello.asm diff --git a/hello.asm b/hello.asm new file mode 100644 index 0000000..3b5d5ad --- /dev/null +++ b/hello.asm @@ -0,0 +1,26 @@ + org &4000 + db "AB" + dw Start + db 00,00,00,00,00,00 + +Start: + call &006F + ld a, 32 + ld (&F3B0), a + + ld hl, Message + call PrintString + di + halt + +PrintString: + ld a, (hl) + cp 255 + ret z + inc hl + call &00A2 + jr PrintString + +Message: db 'Hello World!', 255 + + org &C000