mirror of
https://github.com/cc65/cc65.git
synced 2024-10-01 00:57:11 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2823bc1e66
@ -39,28 +39,29 @@
|
|||||||
.struct EMD_HDR
|
.struct EMD_HDR
|
||||||
ID .byte 3 ; Contains 0x65, 0x6d, 0x64 ("emd")
|
ID .byte 3 ; Contains 0x65, 0x6d, 0x64 ("emd")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
|
LIBREF .addr ; Library reference
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .word ; INSTALL routine
|
INSTALL .addr ; INSTALL routine
|
||||||
UNINSTALL .word ; UNINSTALL routine
|
UNINSTALL .addr ; UNINSTALL routine
|
||||||
PAGECOUNT .word ; PAGECOUNT routine
|
PAGECOUNT .addr ; PAGECOUNT routine
|
||||||
MAP .word ; MAP routine
|
MAP .addr ; MAP routine
|
||||||
USE .word ; USE routine
|
USE .addr ; USE routine
|
||||||
MAPCLEAN .word ; MAPCLEAN routine
|
MAPCLEAN .addr ; MAPCLEAN routine
|
||||||
COPYFROM .word ; COPYFROM routine
|
COPYFROM .addr ; COPYFROM routine
|
||||||
COPYTO .word ; COPYTO routine
|
COPYTO .addr ; COPYTO routine
|
||||||
.endstruct
|
.endstruct
|
||||||
.endstruct
|
.endstruct
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The EMD API version, stored in EMD_HDR::VERSION
|
; The EMD API version, stored in EMD_HDR::VERSION
|
||||||
|
|
||||||
EMD_API_VERSION = $00
|
EMD_API_VERSION = $01
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The asm equivalent to the C em_copy structure
|
; The asm equivalent to the C em_copy structure
|
||||||
|
|
||||||
.struct EM_COPY
|
.struct EM_COPY
|
||||||
BUF .word ; Memory buffer to copy from or to
|
BUF .addr ; Memory buffer to copy from or to
|
||||||
OFFS .byte ; Offset into page
|
OFFS .byte ; Offset into page
|
||||||
PAGE .word ; Starting page to copy from or to
|
PAGE .word ; Starting page to copy from or to
|
||||||
COUNT .word ; Number of bytes to copy
|
COUNT .word ; Number of bytes to copy
|
||||||
|
@ -42,20 +42,21 @@
|
|||||||
.struct JOY_HDR
|
.struct JOY_HDR
|
||||||
ID .byte 3 ; $6A, $6F, $79 ("joy")
|
ID .byte 3 ; $6A, $6F, $79 ("joy")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
|
LIBREF .addr ; Library reference
|
||||||
MASKS .byte 8 ; Joystick state mask array
|
MASKS .byte 8 ; Joystick state mask array
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .word ; INSTALL routine
|
INSTALL .addr ; INSTALL routine
|
||||||
UNINSTALL .word ; UNINSTALL routine
|
UNINSTALL .addr ; UNINSTALL routine
|
||||||
COUNT .word ; COUNT routine
|
COUNT .addr ; COUNT routine
|
||||||
READ .word ; READ routine
|
READ .addr ; READ routine
|
||||||
IRQ .word ; IRQ routine
|
IRQ .addr ; IRQ routine
|
||||||
.endstruct
|
.endstruct
|
||||||
.endstruct
|
.endstruct
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The JOY API version, stored in JOY_HDR::VERSION
|
; The JOY API version, stored in JOY_HDR::VERSION
|
||||||
|
|
||||||
JOY_API_VERSION = $01
|
JOY_API_VERSION = $02
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Variables
|
; Variables
|
||||||
@ -82,4 +83,3 @@ JOY_API_VERSION = $01
|
|||||||
.global _joy_read
|
.global _joy_read
|
||||||
|
|
||||||
.global _joy_clear_ptr
|
.global _joy_clear_ptr
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
.struct MOUSE_HDR
|
.struct MOUSE_HDR
|
||||||
ID .byte 3 ; Contains 0x6D, 0x6F, 0x75 ("mou")
|
ID .byte 3 ; Contains 0x6D, 0x6F, 0x75 ("mou")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
|
LIBREF .addr ; Library reference
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .addr
|
INSTALL .addr
|
||||||
UNINSTALL .addr
|
UNINSTALL .addr
|
||||||
@ -96,7 +97,7 @@
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The mouse API version, stored in MOUSE_HDR::VERSION
|
; The mouse API version, stored in MOUSE_HDR::VERSION
|
||||||
|
|
||||||
MOUSE_API_VERSION = $02
|
MOUSE_API_VERSION = $03
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; Bitmapped mouse driver flags, stored in MOUSE_HDR::FLAGS.
|
; Bitmapped mouse driver flags, stored in MOUSE_HDR::FLAGS.
|
||||||
|
@ -39,16 +39,17 @@
|
|||||||
.struct SER_HDR
|
.struct SER_HDR
|
||||||
ID .byte 3 ; Contains 0x73, 0x65, 0x72 ("ser")
|
ID .byte 3 ; Contains 0x73, 0x65, 0x72 ("ser")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
|
LIBREF .addr ; Library reference
|
||||||
JUMPTAB .struct
|
JUMPTAB .struct
|
||||||
INSTALL .word ; INSTALL routine
|
INSTALL .addr ; INSTALL routine
|
||||||
UNINSTALL .word ; UNINSTALL routine
|
UNINSTALL .addr ; UNINSTALL routine
|
||||||
OPEN .word ; OPEN routine
|
OPEN .addr ; OPEN routine
|
||||||
CLOSE .word ; CLOSE routine
|
CLOSE .addr ; CLOSE routine
|
||||||
GET .word ; GET routine
|
GET .addr ; GET routine
|
||||||
PUT .word ; PUT routine
|
PUT .addr ; PUT routine
|
||||||
STATUS .word ; STATUS routine
|
STATUS .addr ; STATUS routine
|
||||||
IOCTL .word ; IOCTL routine
|
IOCTL .addr ; IOCTL routine
|
||||||
IRQ .word ; IRQ routine
|
IRQ .addr ; IRQ routine
|
||||||
.endstruct
|
.endstruct
|
||||||
.endstruct
|
.endstruct
|
||||||
|
|
||||||
@ -56,7 +57,7 @@
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; The SER API version, stored SER_HDR::VERSION
|
; The SER API version, stored SER_HDR::VERSION
|
||||||
|
|
||||||
SER_API_VERSION = $00
|
SER_API_VERSION = $01
|
||||||
|
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
; ser_params
|
; ser_params
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
.struct TGI_HDR
|
.struct TGI_HDR
|
||||||
ID .byte 3 ; Contains 0x74, 0x67, 0x69 ("tgi")
|
ID .byte 3 ; Contains 0x74, 0x67, 0x69 ("tgi")
|
||||||
VERSION .byte 1 ; Interface version
|
VERSION .byte 1 ; Interface version
|
||||||
|
LIBREF .addr ; Library reference
|
||||||
VARS .struct
|
VARS .struct
|
||||||
XRES .word 1 ; X resolution
|
XRES .word 1 ; X resolution
|
||||||
YRES .word 1 ; Y resolution
|
YRES .word 1 ; Y resolution
|
||||||
|
@ -206,6 +206,8 @@ CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
|
|||||||
CO := $(if $(wildcard ../bin/co65*),../bin/co65,co65)
|
CO := $(if $(wildcard ../bin/co65*),../bin/co65,co65)
|
||||||
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
||||||
|
|
||||||
|
export CC65_HOME := $(abspath ..)
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
define ASSEMBLE_recipe
|
define ASSEMBLE_recipe
|
||||||
|
@ -20,16 +20,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word DEINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
@ -69,11 +73,11 @@ INSTALL:
|
|||||||
; rts
|
; rts
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,6 +36,10 @@ PREAD := $FB1E ; Read paddle in X, return AD conv. value in Y
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $10
|
.byte $10
|
||||||
|
12
libsrc/apple2/libref.s
Normal file
12
libsrc/apple2/libref.s
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, mouse_libref, ser_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
mouse_libref := _exit
|
||||||
|
ser_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -34,7 +34,10 @@ status := $0778
|
|||||||
.byte $6D, $6F, $75 ; "mou"
|
.byte $6D, $6F, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
.addr HIDE
|
.addr HIDE
|
||||||
|
@ -34,7 +34,10 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
.addr OPEN
|
.addr OPEN
|
||||||
|
@ -77,6 +77,7 @@ Y2 := ptr4
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 280 ; X resolution
|
.word 280 ; X resolution
|
||||||
.word 192 ; Y resolution
|
.word 192 ; Y resolution
|
||||||
.byte 8 ; Number of drawing colors
|
.byte 8 ; Number of drawing colors
|
||||||
|
@ -47,6 +47,7 @@ Y2 := ptr4
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 40 ; X resolution
|
.word 40 ; X resolution
|
||||||
.word 48 ; Y resolution
|
.word 48 ; Y resolution
|
||||||
.byte 16 ; Number of drawing colors
|
.byte 16 ; Number of drawing colors
|
||||||
|
@ -43,16 +43,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word DEINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
@ -191,11 +195,11 @@ INSTALL:
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $02 ; JOY_UP
|
.byte $02 ; JOY_UP
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
10
libsrc/atari/libref.s
Normal file
10
libsrc/atari/libref.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word x_res ; X resolution
|
.word x_res ; X resolution
|
||||||
.word y_res ; Y resolution
|
.word y_res ; Y resolution
|
||||||
.byte colors ; Number of drawing colors
|
.byte colors ; Number of drawing colors
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $10 ; JOY_UP
|
.byte $10 ; JOY_UP
|
||||||
|
10
libsrc/atmos/libref.s
Normal file
10
libsrc/atmos/libref.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref, ser_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
||||||
|
ser_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -35,7 +35,10 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
.addr OPEN
|
.addr OPEN
|
||||||
|
@ -26,6 +26,7 @@ YSIZE = 8 ; System font height
|
|||||||
|
|
||||||
.byte "tgi"
|
.byte "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 228 ; x resolution
|
.word 228 ; x resolution
|
||||||
.word 200 ; y resolution
|
.word 200 ; y resolution
|
||||||
.byte 3 ; Number of drawing colors
|
.byte 3 ; Number of drawing colors
|
||||||
|
@ -26,6 +26,7 @@ YSIZE = 8 ; System font height
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 240 ; X resolution
|
.word 240 ; X resolution
|
||||||
.word 200 ; Y resolution
|
.word 200 ; Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
|
@ -27,16 +27,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -25,16 +25,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -28,16 +28,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -26,16 +26,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -25,16 +25,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -23,16 +23,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word DEINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
@ -141,11 +145,11 @@ settestadr2:
|
|||||||
jmp vdcsetsrcaddr
|
jmp vdcsetsrcaddr
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; DEINSTALL routine. Is called before the driver is removed from memory.
|
; UNINSTALL routine. Is called before the driver is removed from memory.
|
||||||
; Can do cleanup or whatever. Must not return anything.
|
; Can do cleanup or whatever. Must not return anything.
|
||||||
;
|
;
|
||||||
|
|
||||||
DEINSTALL:
|
UNINSTALL:
|
||||||
;on C128 restore font and clear the screen?
|
;on C128 restore font and clear the screen?
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
12
libsrc/c128/libref.s
Normal file
12
libsrc/c128/libref.s
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, mouse_libref, ser_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
mouse_libref := _exit
|
||||||
|
ser_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -23,7 +23,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -22,7 +22,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -23,7 +23,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -37,7 +37,11 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word UNINSTALL
|
.word UNINSTALL
|
||||||
|
@ -55,6 +55,7 @@ VDC_DATA = 31
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
xres: .word 640 ; X resolution
|
xres: .word 640 ; X resolution
|
||||||
yres: .word 200 ; Y resolution
|
yres: .word 200 ; Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
|
@ -56,6 +56,7 @@ VDC_DATA = 31
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
xres: .word 640 ; X resolution
|
xres: .word 640 ; X resolution
|
||||||
yres: .word 480 ; Y resolution
|
yres: .word 480 ; Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
|
@ -24,16 +24,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
9
libsrc/c16/libref.s
Normal file
9
libsrc/c16/libref.s
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
@ -22,16 +22,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -22,16 +22,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -27,16 +27,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -22,16 +22,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -24,16 +24,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -26,16 +26,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -24,16 +24,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -27,16 +27,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -26,16 +26,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $02 ; JOY_UP "8"
|
.byte $02 ; JOY_UP "8"
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
12
libsrc/c64/libref.s
Normal file
12
libsrc/c64/libref.s
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, mouse_libref, ser_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
mouse_libref := _exit
|
||||||
|
ser_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -42,7 +42,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -41,7 +41,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -23,7 +23,11 @@ HEADER:
|
|||||||
.byte $6d, $6f, $75 ; "mou"
|
.byte $6d, $6f, $75 ; "mou"
|
||||||
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
.byte MOUSE_API_VERSION ; Mouse driver API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
|
@ -37,7 +37,11 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word UNINSTALL
|
.word UNINSTALL
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 320 ; X resolution
|
.word 320 ; X resolution
|
||||||
.word 200 ; Y resolution
|
.word 200 ; Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
|
@ -24,16 +24,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
10
libsrc/cbm510/libref.s
Normal file
10
libsrc/cbm510/libref.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, ser_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
ser_libref := _exit
|
@ -38,7 +38,11 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word UNINSTALL
|
.word UNINSTALL
|
||||||
|
@ -24,16 +24,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
9
libsrc/cbm610/libref.s
Normal file
9
libsrc/cbm610/libref.s
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, ser_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
ser_libref := _exit
|
@ -38,7 +38,11 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word UNINSTALL
|
.word UNINSTALL
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
; Common functions of the extended memory API.
|
; Common functions of the extended memory API.
|
||||||
;
|
;
|
||||||
|
|
||||||
.import return0
|
.import return0, em_libref
|
||||||
.importzp ptr1
|
.importzp ptr1
|
||||||
|
|
||||||
.include "em-kernel.inc"
|
.include "em-kernel.inc"
|
||||||
@ -55,6 +55,15 @@ _em_install:
|
|||||||
dey
|
dey
|
||||||
bpl @L0
|
bpl @L0
|
||||||
|
|
||||||
|
; Set the library reference
|
||||||
|
|
||||||
|
ldy #EMD_HDR::LIBREF
|
||||||
|
lda #<em_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
iny
|
||||||
|
lda #>em_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
|
||||||
; Copy the jump vectors
|
; Copy the jump vectors
|
||||||
|
|
||||||
ldy #EMD_HDR::JUMPTAB
|
ldy #EMD_HDR::JUMPTAB
|
||||||
|
@ -21,16 +21,20 @@
|
|||||||
.byte $65, $6d, $64 ; "emd"
|
.byte $65, $6d, $64 ; "emd"
|
||||||
.byte EMD_API_VERSION ; EM API version number
|
.byte EMD_API_VERSION ; EM API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
.word INSTALL
|
.addr $0000
|
||||||
.word UNINSTALL
|
|
||||||
.word PAGECOUNT
|
; Jump table
|
||||||
.word MAP
|
|
||||||
.word USE
|
.addr INSTALL
|
||||||
.word COMMIT
|
.addr UNINSTALL
|
||||||
.word COPYFROM
|
.addr PAGECOUNT
|
||||||
.word COPYTO
|
.addr MAP
|
||||||
|
.addr USE
|
||||||
|
.addr COMMIT
|
||||||
|
.addr COPYFROM
|
||||||
|
.addr COPYTO
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Constants
|
; Constants
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
10
libsrc/geos-cbm/system/libref.s
Normal file
10
libsrc/geos-cbm/system/libref.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export em_libref, joy_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
em_libref := _exit
|
||||||
|
joy_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -40,6 +40,7 @@ VDC_DATA = 31
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
xres: .word 320 ; X resolution
|
xres: .word 320 ; X resolution
|
||||||
yres: .word 200 ; Y resolution
|
yres: .word 200 ; Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
; Common functions of the joystick API.
|
; Common functions of the joystick API.
|
||||||
;
|
;
|
||||||
|
|
||||||
|
.import joy_libref
|
||||||
.importzp ptr1
|
.importzp ptr1
|
||||||
.interruptor joy_irq ; Export as IRQ handler
|
.interruptor joy_irq ; Export as IRQ handler
|
||||||
|
|
||||||
@ -55,6 +56,15 @@ _joy_install:
|
|||||||
dey
|
dey
|
||||||
bpl @L0
|
bpl @L0
|
||||||
|
|
||||||
|
; Set the library reference
|
||||||
|
|
||||||
|
ldy #JOY_HDR::LIBREF
|
||||||
|
lda #<joy_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
iny
|
||||||
|
lda #>joy_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
|
||||||
; Copy the mask array
|
; Copy the mask array
|
||||||
|
|
||||||
ldy #JOY_HDR::MASKS + .sizeof(JOY_HDR::MASKS) - 1
|
ldy #JOY_HDR::MASKS + .sizeof(JOY_HDR::MASKS) - 1
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
joy_mask:
|
joy_mask:
|
||||||
|
10
libsrc/lynx/libref.s
Normal file
10
libsrc/lynx/libref.s
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref, ser_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
||||||
|
ser_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -18,7 +18,10 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
.addr INSTALL
|
.addr INSTALL
|
||||||
.addr UNINSTALL
|
.addr UNINSTALL
|
||||||
.addr OPEN
|
.addr OPEN
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
.word 160 ; X resolution
|
.word 160 ; X resolution
|
||||||
.word 102 ; Y resolution
|
.word 102 ; Y resolution
|
||||||
.byte 16 ; Number of drawing colors
|
.byte 16 ; Number of drawing colors
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
; Common functions of the mouse driver API.
|
; Common functions of the mouse driver API.
|
||||||
;
|
;
|
||||||
|
|
||||||
.import return0, popsreg, incsp2
|
.import return0, popsreg, incsp2, mouse_libref
|
||||||
.importzp sreg, ptr1, tmp1, tmp2
|
.importzp sreg, ptr1, tmp1, tmp2
|
||||||
.interruptor mouse_irq ; Export as IRQ handler
|
.interruptor mouse_irq ; Export as IRQ handler
|
||||||
|
|
||||||
@ -64,6 +64,15 @@ _mouse_install:
|
|||||||
dey
|
dey
|
||||||
bpl @L0
|
bpl @L0
|
||||||
|
|
||||||
|
; Set the library reference
|
||||||
|
|
||||||
|
ldy #MOUSE_HDR::LIBREF
|
||||||
|
lda #<mouse_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
iny
|
||||||
|
lda #>mouse_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
|
||||||
; Reset flags
|
; Reset flags
|
||||||
|
|
||||||
lda #1
|
lda #1
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $10 ; JOY_UP
|
.byte $10 ; JOY_UP
|
||||||
|
9
libsrc/nes/libref.s
Normal file
9
libsrc/nes/libref.s
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref, tgi_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
||||||
|
tgi_libref := _exit
|
@ -26,13 +26,14 @@
|
|||||||
|
|
||||||
.byte $74, $67, $69 ; "tgi"
|
.byte $74, $67, $69 ; "tgi"
|
||||||
.byte TGI_API_VERSION ; TGI API version number
|
.byte TGI_API_VERSION ; TGI API version number
|
||||||
|
.addr $0000 ; Library reference
|
||||||
xres: .word charsperline*2 ; Max X resolution
|
xres: .word charsperline*2 ; Max X resolution
|
||||||
yres: .word 56 ; Max Y resolution
|
yres: .word 56 ; Max Y resolution
|
||||||
.byte 2 ; Number of drawing colors
|
.byte 2 ; Number of drawing colors
|
||||||
.byte 1 ; Number of screens available
|
.byte 1 ; Number of screens available
|
||||||
.byte 2 ; System font X size
|
.byte 2 ; System font X size
|
||||||
.byte 2 ; System font Y size
|
.byte 2 ; System font Y size
|
||||||
.word $100 ; Aspect ratio
|
.word $0100 ; Aspect ratio
|
||||||
.byte 0 ; TGI driver flags
|
.byte 0 ; TGI driver flags
|
||||||
|
|
||||||
; Next comes the jump table. Currently all entries must be valid and may point
|
; Next comes the jump table. Currently all entries must be valid and may point
|
||||||
|
@ -24,6 +24,10 @@ VIA_DDRA := $E843 ; Data direction register A
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
8
libsrc/pet/libref.s
Normal file
8
libsrc/pet/libref.s
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
@ -24,6 +24,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
9
libsrc/plus4/libref.s
Normal file
9
libsrc/plus4/libref.s
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref, ser_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
||||||
|
ser_libref := _exit
|
@ -37,7 +37,11 @@
|
|||||||
.byte $73, $65, $72 ; "ser"
|
.byte $73, $65, $72 ; "ser"
|
||||||
.byte SER_API_VERSION ; Serial API version number
|
.byte SER_API_VERSION ; Serial API version number
|
||||||
|
|
||||||
; Jump table.
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
|
; Jump table
|
||||||
|
|
||||||
.word INSTALL
|
.word INSTALL
|
||||||
.word UNINSTALL
|
.word UNINSTALL
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
; Common functions of the serial drivers
|
; Common functions of the serial drivers
|
||||||
;
|
;
|
||||||
|
|
||||||
.import return0
|
.import return0, ser_libref
|
||||||
.importzp ptr1
|
.importzp ptr1
|
||||||
.interruptor ser_irq, 29 ; Export as high priority IRQ handler
|
.interruptor ser_irq, 29 ; Export as high priority IRQ handler
|
||||||
|
|
||||||
@ -58,6 +58,15 @@ _ser_install:
|
|||||||
dey
|
dey
|
||||||
bpl @L0
|
bpl @L0
|
||||||
|
|
||||||
|
; Set the library reference
|
||||||
|
|
||||||
|
ldy #SER_HDR::LIBREF
|
||||||
|
lda #<ser_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
iny
|
||||||
|
lda #>ser_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
|
||||||
; Copy the jump vectors
|
; Copy the jump vectors
|
||||||
|
|
||||||
ldy #SER_HDR::JUMPTAB
|
ldy #SER_HDR::JUMPTAB
|
||||||
|
@ -4,12 +4,13 @@
|
|||||||
; Common functions of the tgi graphics kernel.
|
; Common functions of the tgi graphics kernel.
|
||||||
;
|
;
|
||||||
|
|
||||||
.include "tgi-kernel.inc"
|
.import tgi_libref
|
||||||
.include "tgi-error.inc"
|
|
||||||
|
|
||||||
.importzp ptr1
|
.importzp ptr1
|
||||||
.interruptor tgi_irq ; Export as IRQ handler
|
.interruptor tgi_irq ; Export as IRQ handler
|
||||||
|
|
||||||
|
.include "tgi-kernel.inc"
|
||||||
|
.include "tgi-error.inc"
|
||||||
|
|
||||||
|
|
||||||
;----------------------------------------------------------------------------
|
;----------------------------------------------------------------------------
|
||||||
; Variables
|
; Variables
|
||||||
@ -108,6 +109,15 @@ _tgi_install:
|
|||||||
dey
|
dey
|
||||||
bpl @L0
|
bpl @L0
|
||||||
|
|
||||||
|
; Set the library reference
|
||||||
|
|
||||||
|
ldy #TGI_HDR::LIBREF
|
||||||
|
lda #<tgi_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
iny
|
||||||
|
lda #>tgi_libref
|
||||||
|
sta (ptr1),y
|
||||||
|
|
||||||
; Copy the jump vectors
|
; Copy the jump vectors
|
||||||
|
|
||||||
ldy #TGI_HDR::JUMPTAB
|
ldy #TGI_HDR::JUMPTAB
|
||||||
|
@ -23,6 +23,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $01 ; JOY_UP
|
.byte $01 ; JOY_UP
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
.byte $6A, $6F, $79 ; "joy"
|
.byte $6A, $6F, $79 ; "joy"
|
||||||
.byte JOY_API_VERSION ; Driver API version number
|
.byte JOY_API_VERSION ; Driver API version number
|
||||||
|
|
||||||
|
; Library reference
|
||||||
|
|
||||||
|
.addr $0000
|
||||||
|
|
||||||
; Button state masks (8 values)
|
; Button state masks (8 values)
|
||||||
|
|
||||||
.byte $02 ; JOY_UP
|
.byte $02 ; JOY_UP
|
||||||
|
8
libsrc/vic20/libref.s
Normal file
8
libsrc/vic20/libref.s
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
;
|
||||||
|
; Oliver Schmidt, 2013-05-31
|
||||||
|
;
|
||||||
|
|
||||||
|
.export joy_libref
|
||||||
|
.import _exit
|
||||||
|
|
||||||
|
joy_libref := _exit
|
Loading…
Reference in New Issue
Block a user