From 16e3e35846578e2df90a0c0d75bc2ff41e403946 Mon Sep 17 00:00:00 2001 From: Ian Cowburn Date: Tue, 21 Sep 2021 21:07:39 +0100 Subject: Imported V1.7 --- src/example/cpc.asm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/example') diff --git a/src/example/cpc.asm b/src/example/cpc.asm index 0c9ff5e..5a37702 100644 --- a/src/example/cpc.asm +++ b/src/example/cpc.asm @@ -11,12 +11,19 @@ start: org $8000 ld hl,msg -loop: + call print + jp $ + + org $8400 +print: ld a,(hl) + cp 0 ret z + push hl call $bb5a + pop hl inc hl - jr loop + jr print org $8800 msg: defb "Hello World",0 -- cgit v1.2.3