home *** CD-ROM | disk | FTP | other *** search
- |//////////////////////////////////////////////////////////////////////////////
- |//
- |// This file is part of the Atari Machine Specific Library,
- |// and is Copyright 1992 by Warwick W. Allison.
- |//
- |// You are free to copy and modify these sources, provided you acknoledge
- |// the origin by retaining this notice, and adhere to the conditions
- |// described in the file COPYING.
- |//
- |//////////////////////////////////////////////////////////////////////////////
- .text
-
- .globl _JoyISR
-
- _JoyISR:
- |moveml d0/a1,sp@-
- movel #_JoyFlags,a1
- addl #4,a1
- moveq #0,d0
- movel sp@(4),a0 | Get joystick packet.
- movew a0@(1),d0
- cmpb #0xFF,a0@
- beq Joy1
- lsrw #8,d0
- subl #4,a1
- Joy1:
- movel d0,a1@
- |moveml sp@+,d0/a1
-
- rts
-