;
-; Standard joystick driver for the Atari
+; Standard joystick driver for the Atari. May be used multiple times when linked
+; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
; Using the readjoy code from Christian Groessler
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word COUNT
.word READJOY
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------
-; 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.
;
-DEINSTALL:
+UNINSTALL:
rts
;
-; Standard joystick driver for the C128
+; Standard joystick driver for the C128. May be used multiple times when linked
+; to the statically application.
+
;
; Ullrich von Bassewitz, 2002-12-21
;
.include "joy-kernel.inc"
.include "joy-error.inc"
- .include "c128.inc"
+ .include "c128.inc"
.macpack generic
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word COUNT
.word READ
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------
-; 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.
;
-DEINSTALL:
+UNINSTALL:
rts
;
-; Standard joystick driver for the Plus/4
+; Standard joystick driver for the C16. May be used multiple times when linked
+; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
;
;
-; Standard joystick driver for the C64
+; Standard joystick driver for the C64. May be used multiple times when linked
+; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-20
;
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word COUNT
.word READ
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------
-; 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.
;
-DEINSTALL:
+UNINSTALL:
rts
;
READ: php
- sei ; disable IRQ
+ sei ; disable IRQ
lda $01
pha
lda #$35
sta $01 ; enable I/O
- tax ; Joystick number into X
+ tax ; Joystick number into X
bne joy2
; Read joystick 1
-joy1:
+joy1:
lda #$7F
sta cia1base
lda cia1base+1
;
-; Standard joystick driver for the Plus/4
+; Standard joystick driver for the Plus/4. May be used multiple times when linked
+; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
;
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word COUNT
.word READ
; ------------------------------------------------------------------------
-; Constants
+; Constants
JOY_COUNT = 2 ; Number of joysticks we support
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------
-; 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.
;
-DEINSTALL:
+UNINSTALL:
rts
;
-; Standard joystick driver for the VIC20
+; Standard joystick driver for the VIC20. May be used multiple times when linked
+; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-20
; Using code from Steve Schmidtke
; Jump table.
.word INSTALL
- .word DEINSTALL
+ .word UNINSTALL
.word COUNT
.word READ
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------
-; 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.
;
-DEINSTALL:
+UNINSTALL:
rts