3 ; Standard joystick driver for the Gamate
6 .include "joy-kernel.inc"
7 .include "joy-error.inc"
13 ; ------------------------------------------------------------------------
14 ; Header. Includes jump table
16 module_header _gamate_stdjoy_joy
20 .byte $6A, $6F, $79 ; "joy"
21 .byte JOY_API_VERSION ; Driver API version number
33 .addr 0 ; IRQ entry unused
35 ; ------------------------------------------------------------------------
38 JOY_COUNT = 1 ; Number of joysticks we support
43 ; ------------------------------------------------------------------------
44 ; INSTALL routine. Is called after the driver is loaded into memory. If
45 ; possible, check if the hardware is present and determine the amount of
47 ; Must return an JOY_ERR_xx code in a/x.
54 ; rts ; Run into UNINSTALL instead
56 ; ------------------------------------------------------------------------
57 ; DEINSTALL routine. Is called before the driver is removed from memory.
58 ; Can do cleanup or whatever. Must not return anything.
65 ; ------------------------------------------------------------------------
66 ; COUNT: Return the total number of available joysticks in a/x.
68 ;unsigned char __fastcall__ joy_count (void);
75 ; ------------------------------------------------------------------------
76 ; READ: Read a particular joystick passed in A.
78 ;unsigned char __fastcall__ joy_read (unsigned char joystick);