summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2016-08-02 22:32:06 +0200
committerLeo C2016-08-02 22:32:06 +0200
commiteb982d46688793f5ff002bda472ef67a3b3c969c (patch)
tree81bab8fa656cb8c66179dc448e13cf2cc8404a86
parentd0ef55fb4ffc688d91ac28758401c3a328cf3909 (diff)
downloadddt180-eb982d46688793f5ff002bda472ef67a3b3c969c.zip
Bugfix: remove invalid opcode from disassembler (L command).
DD or FD prefix, followed by 76 was interpreted as a valid 3 byte instruction, and displayed as 'HALT'. Didnt work, certainly.
-rw-r--r--ddtz.z8015
1 files changed, 3 insertions, 12 deletions
diff --git a/ddtz.z80 b/ddtz.z80
index 2eda49d..5d28291 100644
--- a/ddtz.z80
+++ b/ddtz.z80
@@ -1923,14 +1923,7 @@ expr_p2:
expr_buf:
db 'DDT/Z',TAB
- db '[8101]',CR,LF,'$'
- db 000h ;0b2b 00 .
- db 06dh ;0b2c 6d m
- db 085h ;0b2d 85 .
- db 0cch ;0b2e cc .
- db 0f6h ;0b2f f6 .
- db 053h ;0b30 53 S
- db 05bh ;0b31 5b [
+ db '[8101] 001',CR,LF,'$'
ds EXPR_BUF_SIZE - ($ - expr_buf)
expr_bufe:
@@ -4228,7 +4221,7 @@ l19edh:
and a ;19ed a7 .
ret ;19ee c9 .
-; DD/FD 4 byte (ix+d)
+; DD/FD 3 byte (ix+d)/(iy+d)
b_19ef_start:
defb 034h ;19ef 34 4
defb 035h ;19f0 35 5
@@ -4245,8 +4238,6 @@ b_19ef_start:
defb 073h ;19fb 73 s
defb 074h ;19fc 74 t
defb 075h ;19fd 75 u
-; ????
- defb 076h ;19fe 76 v ????
defb 077h ;19ff 77 w
defb 07eh ;1a00 7e ~
defb 086h ;1a01 86 .
@@ -4259,7 +4250,7 @@ b_19ef_start:
defb 0beh ;1a08 be .
defb 0 ;1a09 00 .
-; DD/DF 3 byte
+; DD/FD 2 byte
l1a0ah:
defb 009h ;1a0a 09 .
defb 019h ;1a0b 19 .