mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-26 04:33:10 +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
|
||||
+STAY PARAM
|
||||
inx
|
||||
stx SAVE
|
||||
jsr okvs_len
|
||||
cmp SAVE
|
||||
bne +
|
||||
ldx #$FF
|
||||
+ inx
|
||||
ldx #$00
|
||||
+
|
||||
+LDAY PARAM
|
||||
; execution falls through here
|
||||
;------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user