From d9054270f907f9f965e8b8625d40ea2910242d75 Mon Sep 17 00:00:00 2001 From: mooinglemur Date: Tue, 5 Mar 2024 22:52:46 -0700 Subject: [PATCH] fix off-by-one error --- inc/jsrfar.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/jsrfar.inc b/inc/jsrfar.inc index 009edb23..0d5b68f7 100644 --- a/inc/jsrfar.inc +++ b/inc/jsrfar.inc @@ -89,11 +89,11 @@ jsrfarn: phx phy - lda $0a,S ; fetch return address + lda $09,S ; fetch return address sta imparm clc adc #3 - sta $0a,S ; write back return address+3 + sta $09,S ; write back return address+3 ldy #1 lda (imparm),y sta jmpfr+1 @@ -104,7 +104,7 @@ jsrfarn: .A8 .I16 lda rom_bank - sta $09,S ; save original bank onto reserved byte + sta $08,S ; save original bank onto reserved byte iny iny lda (imparm),y @@ -118,7 +118,7 @@ jsrfar1n: .A8 .I16 lda ram_bank - sta $09,S ; save original bank onto reserved byte + sta $08,S ; save original bank onto reserved byte iny iny lda (imparm),y