xasm: expand ERR_BAD_ARG condition
This commit is contained in:
parent
e1e6d52fea
commit
f9118ef88e
@ -806,9 +806,9 @@ parseInstruction:
|
|||||||
ld a, INSTR_TBL_ROWSIZE
|
ld a, INSTR_TBL_ROWSIZE
|
||||||
call addDE
|
call addDE
|
||||||
djnz .loop
|
djnz .loop
|
||||||
; no match
|
; No signature match
|
||||||
xor a
|
ld a, ERR_BAD_ARG
|
||||||
jr .end
|
jr .error
|
||||||
.match:
|
.match:
|
||||||
; We have our matching instruction row. We're getting pretty near our
|
; We have our matching instruction row. We're getting pretty near our
|
||||||
; goal here!
|
; goal here!
|
||||||
|
@ -18,5 +18,6 @@ chkerr() {
|
|||||||
|
|
||||||
chkerr "foo" 1
|
chkerr "foo" 1
|
||||||
chkerr "ld a, foo" 2
|
chkerr "ld a, foo" 2
|
||||||
|
chkerr "ld a, hl" 2
|
||||||
chkerr "ld a," 3
|
chkerr "ld a," 3
|
||||||
chkerr "ld a, 'A" 3
|
chkerr "ld a, 'A" 3
|
||||||
|
Loading…
Reference in New Issue
Block a user