mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-25 13:33:13 +00:00
unconditional branch wasn't always taken because stepptr doesn't always return with Z=0
This commit is contained in:
parent
5db033f8ef
commit
9f5fd1e382
@ -395,8 +395,11 @@ okvs_next_field
|
||||
+ST16 PTR
|
||||
okvs_next_field_PTR_is_already_set
|
||||
jsr stepptr
|
||||
bne incptr
|
||||
|
||||
jmp incptr ; do NOT change this to BNE
|
||||
; because if the low byte of PTR is 0
|
||||
; and the value of (PTR) is also 0
|
||||
; then stepptr will return with Z=1 and
|
||||
; we will fall through here unexpectedly
|
||||
incptr4 jsr incptr2
|
||||
incptr2 jsr incptr
|
||||
incptr
|
||||
|
Loading…
Reference in New Issue
Block a user