mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 20:30:29 +00:00
fix off-by-1 bug in okvs_next
This commit is contained in:
parent
ecca066038
commit
f627796bbf
@ -304,12 +304,13 @@ okvs_get_current
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
okvs_next
|
okvs_next
|
||||||
+STAY PARAM
|
+STAY PARAM
|
||||||
|
inx
|
||||||
stx SAVE
|
stx SAVE
|
||||||
jsr okvs_len
|
jsr okvs_len
|
||||||
cmp SAVE
|
cmp SAVE
|
||||||
bne +
|
bne +
|
||||||
ldx #$FF
|
ldx #$00
|
||||||
+ inx
|
+
|
||||||
+LDAY PARAM
|
+LDAY PARAM
|
||||||
; execution falls through here
|
; execution falls through here
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user