Initmous
Initialize Mouse
Initmous() Opcode = 0
T his fu n ctio n lets yo u se n d th e in telligen t k ey b o ard co n tro lle r all o f th e
co m m a n d s re q uired to in itialize th e m o u se p ack et m o d e . T h is fu nction is
m ore for in tern al u se by T O S th a n fo r th e ap p lication p ro g ra m m e r's b en e
fit, sin ce in m o st ca se s, th e p ro g ra m m e r will let th e sy ste m co n tro l th e
m o u se.
C macro format
in t m o d e;
lo ng p ara m s , v ec to r;
In itm o u s(m o d e, p ara m s, v ecto r);
Machine language format
m o v e.l
m o ve .l
m o v e .w
m o v e .w
tra p
ad d q .l
Inputs
v ecto r
p aram s
v e cto r, - (sp )
p ara m s, - (sp )
# m o d e , - (sp )
# 0 , - (sp )
# 1 4
# 1 2 , sp
lo n g
lo n g
P o in t to a n ew m ou se p a c k et in terru p t
h an d le r to s u p p o rt th e n ew m o u se p ack et
m o d e.
P o in te r to a 12-b y te d ata blo ck co n tain in g
th e p ara m ete rs n ee d ed for m ou se p ack et
initialization .
C o n ten ts o f d a ta b lock p o in te d to b y params
Byte Offset Label
0 to p m od e
Description
Sp ecifies orig in o f y po sition
0 = y orig in (0 p oin t) a t b otto m
1 = y orig in a t to p
b u tto n s T h e p ara m ete r fo r th e IK BD set m o u se b u tto n s
co m m an d
x p ara m In re lativ e m o d e, x th resh o ld
In a b so lu te m o d e , x sca le
In k ey co d e m o d e , x d elta
y p a ra m In relative m o d e , y th re sh old
In ab so lu te m o d e , y scale
In k ey co d e m o d e, y d elta
T h e fo llo w in g a re u se d o n ly in m o u se-ab so lu te m o d e:
M ax im u m x p o sition of m o u se
M axim u m y p ositio n of m o u se
Initial x p ositio n of m ou se
Initial y po sition o f m o u se
4
xm a x
6
y m a x
8
xin itial
10
yinitial
191