2 ; P.A.S.E. joystick driver for the Atmos
3 ; May be used multiple times when linked to the statically application.
5 ; Stefan Haubenthal, 2009-12-21
6 ; Based on Ullrich von Bassewitz, 2002-12-20
9 .include "joy-kernel.inc"
10 .include "joy-error.inc"
11 ; .include "atmos.inc"
14 ; ------------------------------------------------------------------------
15 ; Header. Includes jump table
21 .byte $6A, $6F, $79 ; "joy"
22 .byte JOY_API_VERSION ; Driver API version number
24 ; Button state masks (8 values)
31 .byte $00 ; Future expansion
32 .byte $00 ; Future expansion
33 .byte $00 ; Future expansion
41 .addr 0 ; IRQ entry unused
43 ; ------------------------------------------------------------------------
46 JOY_COUNT = 2 ; Number of joysticks we support
52 ; ------------------------------------------------------------------------
61 ; ------------------------------------------------------------------------
62 ; INSTALL routine. Is called after the driver is loaded into memory. If
63 ; possible, check if the hardware is present and determine the amount of
65 ; Must return an JOY_ERR_xx code in a/x.
71 ; rts ; Run into UNINSTALL instead
73 ; ------------------------------------------------------------------------
74 ; UNINSTALL routine. Is called before the driver is removed from memory.
75 ; Can do cleanup or whatever. Must not return anything.
82 ; ------------------------------------------------------------------------
83 ; COUNT: Return the total number of available joysticks in a/x.
91 ; ------------------------------------------------------------------------
92 ; READ: Read a particular joystick passed in A.