-
Notifications
You must be signed in to change notification settings - Fork 1
/
vdi_it.S
69 lines (52 loc) · 1.41 KB
/
vdi_it.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
VDI mouse interrupt
Copyright (C) 2002 Patrice Mandin
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
.text
.globl _VdiMotionVector
.globl _VdiButtonVector
.globl _Vdi_mouseb
.globl _Vdi_mousex
.globl _Vdi_mousey
.globl _Vdi_oldmotionvector
.globl _Vdi_oldbuttonvector
/*--- Our mouse motion vector ---*/
.text
.even
.ascii "XBRA"
.ascii "LSDL"
.comm _Vdi_oldmotionvector,4*1
_VdiMotionVector:
/* X position */
movew d0,_Vdi_mousex
/* Y position */
movew d1,_Vdi_mousey
rts
/*--- Our mouse button vector ---*/
.text
.even
.ascii "XBRA"
.ascii "LSDL"
.comm _Vdi_oldbuttonvector,4*1
_VdiButtonVector:
/* Buttons */
movew d0,_Vdi_mouseb
rts
.data
.even
.comm _Vdi_mousex,2*1
.even
.comm _Vdi_mousey,2*1
.even
.comm _Vdi_mouseb,2*1