2 ;* Creativision Joystick Function
4 ;* unsigned char __fastcall__ joystate(unsigned char joy);
6 ;* JOY_1 -> Return Left Joystick direction
7 ;* JOY_2 -> Return Right Joystick direction
8 ;* JOY_3 -> Return Left Joystick buttons
9 ;* JOY_4 -> Return Right Joystick buttons
11 ;* Will only work if interrupts are enabled.
14 .include "creativision.inc"
17 cmp #1 ; Left Direction
29 l1: cmp #2 ; Right Direction
41 l2: cmp #3 ; Left Buttons