2 ; Standard joystick driver for the Supervision
5 .include "joy-kernel.inc"
6 .include "joy-error.inc"
7 .include "supervision.inc"
12 ; ------------------------------------------------------------------------
13 ; Header. Includes jump table
15 module_header _supervision_stdjoy_joy
19 .byte $6A, $6F, $79 ; "joy"
20 .byte JOY_API_VERSION ; Driver API version number
33 ; ------------------------------------------------------------------------
36 JOY_COUNT = 1 ; Number of joysticks we support
41 ; ------------------------------------------------------------------------
42 ; INSTALL routine. Is called after the driver is loaded into memory. If
43 ; possible, check if the hardware is present and determine the amount of
45 ; Must return an JOY_ERR_xx code in a/x.
52 ; rts ; Run into UNINSTALL instead
54 ; ------------------------------------------------------------------------
55 ; DEINSTALL routine. Is called before the driver is removed from memory.
56 ; Can do cleanup or whatever. Must not return anything.
63 ; ------------------------------------------------------------------------
64 ; COUNT: Return the total number of available joysticks in a/x.
66 ;unsigned char __fastcall__ joy_count (void);
73 ; ------------------------------------------------------------------------
74 ; READ: Read a particular joystick passed in A.
76 ;unsigned char __fastcall__ joy_read (unsigned char joystick);