From 808900602e5825b7387f23e7ac18a21d43710539 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Tue, 2 Jan 2024 23:36:41 +0100 Subject: [PATCH] fix JsrIndirect --- utility.h65 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utility.h65 b/utility.h65 index 765f870..21d268c 100644 --- a/utility.h65 +++ b/utility.h65 @@ -98,15 +98,15 @@ INCLUDE_UTILITY = 1 .macro JsrIndirect addr,ret_addr ; -1 because rts increments it .if .blank(ret_addr) - lda #<(:+ - 1) - pha lda #>(:+ - 1) pha - .else - lda #<(ret_addr -1) + lda #<(:+ - 1) pha + .else lda #>(ret_addr -1) pha + lda #<(ret_addr -1) + pha .endif jmp addr .if .blank(ret_addr)