From f627796bbfb2ea08b0d7fd1a992a502daeaf2db0 Mon Sep 17 00:00:00 2001 From: 4am Date: Mon, 23 Sep 2019 13:14:27 -0400 Subject: [PATCH] fix off-by-1 bug in okvs_next --- src/okvs.a | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/okvs.a b/src/okvs.a index 6c319ad4e..006216053 100644 --- a/src/okvs.a +++ b/src/okvs.a @@ -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 ;------------------------------------------------------------------------------