src/video/ataricommon/SDL_xbiosmouseinterrupt.S
changeset 305 9c6613983e85
parent 304 ec53caed9fb2
child 306 3879bed3395c
     1.1 --- a/src/video/ataricommon/SDL_xbiosmouseinterrupt.S	Sun Mar 10 03:25:47 2002 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,106 +0,0 @@
     1.4 -/*
     1.5 -    SDL - Simple DirectMedia Layer
     1.6 -    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
     1.7 -
     1.8 -    This library is free software; you can redistribute it and/or
     1.9 -    modify it under the terms of the GNU Library General Public
    1.10 -    License as published by the Free Software Foundation; either
    1.11 -    version 2 of the License, or (at your option) any later version.
    1.12 -
    1.13 -    This library is distributed in the hope that it will be useful,
    1.14 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 -    Library General Public License for more details.
    1.17 -
    1.18 -    You should have received a copy of the GNU Library General Public
    1.19 -    License along with this library; if not, write to the Free
    1.20 -    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 -
    1.22 -    Sam Lantinga
    1.23 -    slouken@libsdl.org
    1.24 -*/
    1.25 -
    1.26 -#ifdef SAVE_RCSID
    1.27 -static char rcsid =
    1.28 - "@(#) $Id$";
    1.29 -#endif
    1.30 -
    1.31 -/*
    1.32 - *	IKBD 6301 mouse vector
    1.33 - *
    1.34 - *	Patrice Mandin
    1.35 - */
    1.36 -
    1.37 -	.text
    1.38 -
    1.39 -	.globl	_SDL_AtariXbiosMouseInstall
    1.40 -	.globl	_SDL_AtariXbiosMouseVector
    1.41 -
    1.42 -	.globl	_SDL_AtariXbios_mouseb
    1.43 -	.globl	_SDL_AtariXbios_mousex
    1.44 -	.globl	_SDL_AtariXbios_mousey
    1.45 -
    1.46 -/*--- Vector installer ---*/
    1.47 -
    1.48 -_SDL_AtariXbiosMouseInstall:
    1.49 -	movel	sp@(4),a0
    1.50 -	movel	sp@(8),a1
    1.51 -
    1.52 -	/* Stop interrupts */
    1.53 -
    1.54 -	movew	#0x2700,sr
    1.55 -
    1.56 -	/* Save old vector */
    1.57 -
    1.58 -	movel	a0@(16),oldvector
    1.59 -
    1.60 -	/* Set our routine */
    1.61 -
    1.62 -	movel	a1,a0@(16)
    1.63 -
    1.64 -	/* Restart interrupts */
    1.65 -
    1.66 -	movew	#0x2300,sr
    1.67 -
    1.68 -	rts
    1.69 -
    1.70 -/*--- Our mouse vector ---*/
    1.71 -
    1.72 -	.text
    1.73 -	.even
    1.74 -	.ascii "XBRA"
    1.75 -	.ascii "LSDL"
    1.76 -	.comm	oldvector,4*1
    1.77 -_SDL_AtariXbiosMouseVector:
    1.78 -	moveml	d0/a1,sp@-
    1.79 -
    1.80 -	/* Mouse buttons */
    1.81 -	moveb	(a0),d0
    1.82 -	andw	#3,d0
    1.83 -	movew	d0,_SDL_AtariXbios_mouseb
    1.84 -
    1.85 -	/* X movement */
    1.86 -	moveb	a0@(1),d0
    1.87 -	extw	d0
    1.88 -	addw	d0,_SDL_AtariXbios_mousex
    1.89 -
    1.90 -	/* Y movement */
    1.91 -	moveb	a0@(2),d0
    1.92 -	extw	d0
    1.93 -	addw	d0,_SDL_AtariXbios_mousey
    1.94 -
    1.95 -	/* Jump through old vector */
    1.96 -	movel	oldvector,a1
    1.97 -	jsr	(a1)
    1.98 -
    1.99 -	moveml	sp@+,d0/a1
   1.100 -	rts
   1.101 -
   1.102 -	.data
   1.103 -	.even
   1.104 -	.comm	_SDL_AtariXbios_mousex,2*1
   1.105 -	.even
   1.106 -	.comm	_SDL_AtariXbios_mousey,2*1
   1.107 -	.even
   1.108 -	.comm	_SDL_AtariXbios_mouseb,2*1
   1.109 -