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
27 ; Button state masks (8 values)
33 .byte $10 ; JOY_FIRE_A
34 .byte $20 ; JOY_FIRE_B
35 .byte $80 ; JOY_SELECT
44 .addr 0 ; IRQ entry unused
46 ; ------------------------------------------------------------------------
49 JOY_COUNT = 1 ; Number of joysticks we support
54 ; ------------------------------------------------------------------------
55 ; INSTALL routine. Is called after the driver is loaded into memory. If
56 ; possible, check if the hardware is present and determine the amount of
58 ; Must return an JOY_ERR_xx code in a/x.
65 ; rts ; Run into UNINSTALL instead
67 ; ------------------------------------------------------------------------
68 ; DEINSTALL routine. Is called before the driver is removed from memory.
69 ; Can do cleanup or whatever. Must not return anything.
76 ; ------------------------------------------------------------------------
77 ; COUNT: Return the total number of available joysticks in a/x.
79 ;unsigned char __fastcall__ joy_count (void);
86 ; ------------------------------------------------------------------------
87 ; READ: Read a particular joystick passed in A.
89 ;unsigned char __fastcall__ joy_read (unsigned char joystick);