Skip to content

Commit

Permalink
Add JSRFAR macro (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlund authored Sep 16, 2024
1 parent 046d4b0 commit b3e9a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mos-platform/cx16/cx16.inc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
sty __r6
.endm

; Run RAM/ROM routine in another bank
.macro MACRO_JSRFAR address, bank
jsr __JSRFAR
.short \address
.byte \bank
.endm

; cx16 hardware I/O addresses (derived from x16-rom io.inc)
; https://github.com/X16Community/x16-rom/blob/master/inc/io.inc

Expand Down
1 change: 1 addition & 0 deletions mos-platform/cx16/kernal.S
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ weakdef CLOCK_SET_DATE_TIME
weakdef CLOCK_GET_DATE_TIME
weakdef JOYSTICK_SCAN
weakdef JOYSTICK_GET
weakdef JSRFAR
weakdef SCREEN_MODE
weakdef SCREEN_SET_CHARSET
weakdef MOUSE_CONFIG
Expand Down

0 comments on commit b3e9a99

Please sign in to comment.