Download Print this page

HP Vectra Technical Reference Manual page 482

Hide thumbs Also See for Vectra:

Advertisement

RS-232 Mouse Driver
STANDARD coordinlte IpIC •.
movement
11
upward (oppolite
record when done,
then pu.
,
~:~;n~~;e~~~t~;R
function
return to main dr1ver
; ok to pUI event
to
parent
; ok to pall event
to parent
invert
for clearing the bit
clear the button to 0 (down)
(~~E~~~~ ~~~n!_tJu~~r~g~ ~~~e'lary)
add new X relative movement
Idd new Y relltive movement
'Y'
limit
invert
the axi.: bx •
(LIMIT - y)
New ABS Y
~OLO
- NEW}
s:~:t ~~: ~o~:l:t l~~W
- OLD}
; bit
7
i l up
(1),
down(O) bit
; get button I
keycode in CL for Ihift
; keep button I, get
rid of up/down flag
; put
'1'
in bit 0 of
al
; set
appropriate button bit muk
a1
dl
0
STATE,al
c
1, b 1
c1,01111111B
al,OOOOOOOlB
al,
c 1
dl:O TRANSITION,a1
note which button changed
bl,UP
O~N
BIT
, [bit
7]
Was it UP • l o r down •
0
I h
0
r t -b u t to' n_ down
dl:O STATE,al
; set
the button •
1 (up)
II
h
0
r
f
9 i v e_ to _p a r. n t ,
0
k top II I
• v en t
top are n
t
10000000B
ble,dl:O ABS X
CX
,dl :O-ABS-Y
• h
0
rt
9
I
'Ie _
f
0
_p are n t
dl:D REL X,bl(
ClC
dl :D_REl_Y, C
lC
ds:D ABS X,bl(
dl : O-ABS-Y
,C
l(
tel
t
j
Z
or
jmp
not
and
mov
equ
mov
and
mov
Ihl
jmp
page
add
Idd
mov
sub
leC hg
sub
neg
mov
mov
neg
mov
Assuming
fall through to GIVE TO PARENT code
j mp
- g i ve _ t
0
_p Ire n t
page
ok top
as s
eve n t
top are n t
now
mov
mov
jmp
page
...........................
Re 1 at 1 v e mo v eme n t
mov
mov
INT
re t
pgid_ilr
endp
lubttl
PGID SYSTEM function
BX , CX • t i l l con t a i n X, Y r ela t 1v e mo v eme n t i n for mat ion for the eve n t
r e cor d
; Call PARENT driver to handle the ISR
; NOTE: HPHIL driver
has
already adjusted D_SOURCE field, HPHIL
10
and other
relevant HPHIL 1nfo before passing the event up to here. -
Button Press/Release ISR
Ad ius t
the 0 _ TRAN SIT ION In d 0_ STAT E fie 1 d
S
0
f
the ph Y sic aId e vic e '
I
descr1be record
; Convert button number to bit malk corresponding
to the changed button
1. 0 n 1yon e but ton can ma k e a t ran l i t ion a t a t i me
~. ~~e s~~l~~~ ~f1~u~~~~:r a~~e:e~~ (cxd~:~il~~~ ~~~~iable).
, Bl
is
number of button that changed
bit
7
is the up/down
(1/0)
f11g
We must 1nvert the Y al(1I to put into INDUSTRY
Mu.t convert
'Y' coord1nlte luch that
negat1ve
of HP-HIL def1nition.)
-- Set BX,CX
(:~~n~E~:~~~~ ~~v:~~~~l ~~Iv:~~nt
(BX)
11
'X' HP-HIl coordinate.
:
.l~~,~.~:.~~~
..
l.~~;.~i:~~l
••
-REl_Y( hphil) ]
reI_move:
84 00
88
2E
OOOA
CO 6F
C3
0480
0480
048F
0493
0495
0496
• 0080
0470
0470
8A C8
0472
80 El 7F
0475
BO 01
0477
02 EO
0479
A2 OOOC
047C
F6
C3 80
047F
74 06
0481
0481
08 06 0000
0485
EB 06
0487
0487
F6 DO
0489
20 06 0000
043E
8B IE 0012
0442
28
09
0444
87 IE 0016
0448
28 IE 0016
044C
F7 DB
044E
89 OE 0018
0452
8B IE 0014
0456
8B OE 0016
045A
EB 31
045C
045C,
89
IE 0018
0460
F7 09
0462
89
OE 001A
0465
01
IE
0014
046A
01 OE 0016
045E
EB 10
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
Driver Writer's Guide
473

Advertisement

loading
Need help?

Need help?

Do you have a question about the Vectra and is the answer not in the manual?

Subscribe to Our Youtube Channel