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
32 .addr 0 ; IRQ entry unused
34 ; ------------------------------------------------------------------------
37 JOY_COUNT = 1 ; Number of joysticks we support
42 ; ------------------------------------------------------------------------
43 ; INSTALL routine. Is called after the driver is loaded into memory. If
44 ; possible, check if the hardware is present and determine the amount of
46 ; Must return an JOY_ERR_xx code in a/x.
53 ; rts ; Run into UNINSTALL instead
55 ; ------------------------------------------------------------------------
56 ; DEINSTALL routine. Is called before the driver is removed from memory.
57 ; Can do cleanup or whatever. Must not return anything.
64 ; ------------------------------------------------------------------------
65 ; COUNT: Return the total number of available joysticks in a/x.
67 ;unsigned char __fastcall__ joy_count (void);
74 ; ------------------------------------------------------------------------
75 ; READ: Read a particular joystick passed in A.
77 ;unsigned char __fastcall__ joy_read (unsigned char joystick);