summaryrefslogtreecommitdiff
path: root/emucpm.z80
diff options
context:
space:
mode:
Diffstat (limited to 'emucpm.z80')
-rw-r--r--emucpm.z8014
1 files changed, 11 insertions, 3 deletions
diff --git a/emucpm.z80 b/emucpm.z80
index befecee..e8edb2a 100644
--- a/emucpm.z80
+++ b/emucpm.z80
@@ -7,14 +7,22 @@
org 5
jp cpm
- org $ff00
+ org $f000
cpm:
+ push af
+ push bc
+ push de
+ push hl
ld a,9
cp c
- jr z,print_string
+ call z,print_string
ld a,2
cp c
- jr z,print_char
+ call z,print_char
+ pop hl
+ pop de
+ pop bc
+ pop af
ret
print_string: