From d58cf122a881ae878924a7d158b1ff4959fef25f Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 17 May 2019 19:32:58 -0400 Subject: [PATCH] zasm: fix regression with lowercase (ix+d) parsing --- apps/zasm/instr.asm | 2 ++ tools/tests/zasm/test1.asm | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/zasm/instr.asm b/apps/zasm/instr.asm index e2a6b31..9df25b4 100644 --- a/apps/zasm/instr.asm +++ b/apps/zasm/instr.asm @@ -96,10 +96,12 @@ getInstID: parseIXY: push hl ld a, (hl) + call upcase cp 'I' jr nz, .end ; Z already unset inc hl ld a, (hl) + call upcase cp 'X' jr z, .match1 cp 'Y' diff --git a/tools/tests/zasm/test1.asm b/tools/tests/zasm/test1.asm index 237dec8..2ab5877 100644 --- a/tools/tests/zasm/test1.asm +++ b/tools/tests/zasm/test1.asm @@ -16,3 +16,4 @@ label2: .dw 0x42 ld hl, bar ld ix, 1234 ld iy, 2345 + ld (ix+1), l