1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-24 14:38:05 +11:00

xasm: expand ERR_BAD_ARG condition

This commit is contained in:
Virgil Dupras 2019-05-27 12:05:42 -04:00
parent e1e6d52fea
commit f9118ef88e
2 changed files with 4 additions and 3 deletions

View File

@ -806,9 +806,9 @@ parseInstruction:
ld a, INSTR_TBL_ROWSIZE
call addDE
djnz .loop
; no match
xor a
jr .end
; No signature match
ld a, ERR_BAD_ARG
jr .error
.match:
; We have our matching instruction row. We're getting pretty near our
; goal here!

View File

@ -18,5 +18,6 @@ chkerr() {
chkerr "foo" 1
chkerr "ld a, foo" 2
chkerr "ld a, hl" 2
chkerr "ld a," 3
chkerr "ld a, 'A" 3