mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 20:18:04 +11:00
zasm: fix nasty (iy+d) misparsing bug
*sob*...
This commit is contained in:
parent
b95f4c8c24
commit
cdb206b7a5
@ -180,6 +180,7 @@ parseArg:
|
||||
; note: the "-" part isn't supported yet.
|
||||
inc hl ; (HL) now points to X or Y
|
||||
ld a, (hl)
|
||||
call upcase
|
||||
inc hl ; advance HL to the number part
|
||||
inc hl ; this is the number
|
||||
cp 'Y'
|
||||
|
Binary file not shown.
6
tools/tests/zasm/test6.asm
Normal file
6
tools/tests/zasm/test6.asm
Normal file
@ -0,0 +1,6 @@
|
||||
; There was a very nasty bug (cost me a couple of hours of mis-debugging) where
|
||||
; ld r, (iy+d) would use the 0xdd byte code instead of the correct 0xfd one.
|
||||
; genallinstrs didn't catch it because it outputs uppercase. Oh sweet mother,
|
||||
; how much time did I lose over this...
|
||||
|
||||
ld h, (iy+1)
|
1
tools/tests/zasm/test6.asm.expected
Normal file
1
tools/tests/zasm/test6.asm.expected
Normal file
@ -0,0 +1 @@
|
||||
<EFBFBD>f
|
Loading…
Reference in New Issue
Block a user