Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM.
This commit is contained in:
19
libsrc/plus4/kscnkey.s
Normal file
19
libsrc/plus4/kscnkey.s
Normal file
@@ -0,0 +1,19 @@
|
||||
;
|
||||
; 2002-11-22, Ullrich von Bassewitz
|
||||
; 2016-08-07, Greg King
|
||||
;
|
||||
; SCNKEY replacement function
|
||||
;
|
||||
|
||||
.export SCNKEY
|
||||
|
||||
.include "plus4.inc"
|
||||
|
||||
.segment "LOWCODE" ; Must go into low memory
|
||||
|
||||
.proc SCNKEY
|
||||
sta ENABLE_ROM ; Enable the ROM
|
||||
jsr $FF9F ; Call the ROM routine
|
||||
sta ENABLE_RAM ; Switch back to RAM
|
||||
rts ; Return to caller
|
||||
.endproc
|
||||
19
libsrc/plus4/kudtim.s
Normal file
19
libsrc/plus4/kudtim.s
Normal file
@@ -0,0 +1,19 @@
|
||||
;
|
||||
; 2002-11-22, Ullrich von Bassewitz
|
||||
; 2016-08-07, Greg King
|
||||
;
|
||||
; UDTIM replacement function
|
||||
;
|
||||
|
||||
.export UDTIM
|
||||
|
||||
.include "plus4.inc"
|
||||
|
||||
.segment "LOWCODE" ; Must go into low memory
|
||||
|
||||
.proc UDTIM
|
||||
sta ENABLE_ROM ; Enable the ROM
|
||||
jsr $FFEA ; Call the ROM routine
|
||||
sta ENABLE_RAM ; Switch back to RAM
|
||||
rts ; Return to caller
|
||||
.endproc
|
||||
Reference in New Issue
Block a user