aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorIan Cowburn <ianc@noddybox.co.uk>2021-09-21 21:07:39 +0100
committerIan Cowburn <ianc@noddybox.co.uk>2021-09-21 21:07:39 +0100
commit16e3e35846578e2df90a0c0d75bc2ff41e403946 (patch)
treea4276f55e3063f508ffe0fd26c3649aba8c5ebbd /src/example
parent7c234482b55feffb7e7f98f0b96d402760624552 (diff)
Imported V1.7V1.7
Diffstat (limited to 'src/example')
-rw-r--r--src/example/cpc.asm11
1 files changed, 9 insertions, 2 deletions
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