Skip to content

Commit

Permalink
Save a couple cycles here
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Mar 6, 2024
1 parent eb673c7 commit 4aa98eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/jsrfar.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
php ;reserve 1 byte on the stack
php ;save registers & status

clc
.byte $e2, $03 ; sep #$03, set carry if 65c816
bcs jsrfarn
sec
.byte $c2, $03 ; rep #$03, clear carry/z if 65c816
bcc jsrfarn

jsrfare:
pha
Expand Down Expand Up @@ -76,7 +76,7 @@ jsrfar2:
.setcpu "65816"

jsrfarn:
clc
; carry is clear
xce
bcc :+
xce
Expand Down

0 comments on commit 4aa98eb

Please sign in to comment.