summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-10-26 23:19:01 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-10-26 23:19:01 (GMT)
commite0882f69893942459d28bd69ac07df7ec051f239 (patch)
treea85f83df25313a4a27c35bc2d5ce6cfeb22ae2ed
parent587a2597988216e3ee1cfe74934e74b5876cea96 (diff)
downloadabc80sim-e0882f69893942459d28bd69ac07df7ec051f239.zip
abc80sim-e0882f69893942459d28bd69ac07df7ec051f239.tar.gz
abc80sim-e0882f69893942459d28bd69ac07df7ec051f239.tar.bz2
abc80sim-e0882f69893942459d28bd69ac07df7ec051f239.tar.xz
printrom: revert to using IXL/IXH registers
This works on hardware, and now it works on the simulator too. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--printrom.asm10
-rw-r--r--printrom.binbin728 -> 725 bytes
2 files changed, 4 insertions, 6 deletions
diff --git a/printrom.asm b/printrom.asm
index 1fa9c11..7081e71 100644
--- a/printrom.asm
+++ b/printrom.asm
@@ -380,13 +380,11 @@ send_cmd:
inc a
ld (ram_serial),a
call send_byte
- push bc
- push ix
- pop bc
- ld a,c
+ defb 0ddh
+ ld a,l ; LD A,IXL
call send_byte
- ld a,b
- pop bc
+ defb 0ddh
+ ld a,h ; LD A,IXH
jr send_byte
; Send a buffer HL->data BC=count
diff --git a/printrom.bin b/printrom.bin
index fbde8fb..f31d64d 100644
--- a/printrom.bin
+++ b/printrom.bin
Binary files differ