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)