mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 05:48:06 +11:00
zasm: fix wrong logic in .numberTruncated error condition
`xor c` didn't do what I thought it did at the time. Newbie mistake, there are probably a lot like this scattered around...
This commit is contained in:
parent
71cbd24e1f
commit
86cad39de4
@ -620,7 +620,7 @@ getUpcode:
|
||||
inc hl ; MSB is 2nd byte
|
||||
ld a, (hl)
|
||||
dec hl ; HL now points to LSB
|
||||
cp 0
|
||||
or a ; cp 0
|
||||
jr nz, .numberTruncated
|
||||
; HL points to our number
|
||||
; one last thing to check. Is the 7th bit on the displacement value set?
|
||||
@ -655,7 +655,7 @@ getUpcode:
|
||||
jr .end
|
||||
.numberTruncated:
|
||||
; problem: not zero, so value is truncated. error
|
||||
xor c
|
||||
ld c, 0
|
||||
.end:
|
||||
ld a, c
|
||||
pop bc
|
||||
|
Loading…
Reference in New Issue
Block a user