From eb982d46688793f5ff002bda472ef67a3b3c969c Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 2 Aug 2016 22:32:06 +0200 Subject: [PATCH] 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. --- ddtz.z80 | 15 +++------------ 1 file 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 . -- 2.39.2