summaryrefslogtreecommitdiff
path: root/emucpm.z80
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-26 00:50:13 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-26 00:50:13 +0000
commit665e1cabd8acee86ea3865e0a38467dec52e6f66 (patch)
tree8e400fde17cb124bf43a84ab0681c89341e71335 /emucpm.z80
parent458ae07fcde77592e06927f0dddcd12c8d242b29 (diff)
Updates
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: