Skip to content

Commit

Permalink
also handle kernal API entry outside of bank 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Mar 11, 2024
1 parent 5844b42 commit a00b138
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions monitor/monitor.s
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,25 @@ monitor:
phx
lda reg_p
pha

; Skip over pushing 65C816 stack if running on a 65C02
sec
.byte $c2, $03
bcs @cmd_cont_c02

lda #0
pha
pha
pha
lda reg_a
pha
lda #0
pha
bra @cmd_cont_c816
@cmd_cont_c02:
lda reg_a
pha
@cmd_cont_c816:
lda bank_ro
pha
phy
Expand Down

0 comments on commit a00b138

Please sign in to comment.