Atari ST series Technical Reference Manual page 199

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Initmous()
T h is f u n c t i o n le t s y o u s e n d t h e in te l l i g e n t k e y b o a r d c o n t r o l l e r a ll o f th e
c o m m a n d s r e q u i r e d t o in itia liz e t h e m o u s e p a c k e t m o d e . T h i s f u n c t i o n is
m o r e f o r i n t e r n a l u s e b y T O S t h a n f o r t h e a p p l i c a t i o n p r o g r a m m e r 's b e n e ­
fit, s i n c e in m o s t c a s e s , t h e p r o g r a m m e r w ill l e t t h e s y s t e m c o n t r o l th e
m o u s e .
C macro format
in t m o d e ;
l o n g p a r a m s , v e c t o r ;
I n i t m o u s ( m o d e , p a r a m s , v e c t o r ) ;
Machine language format
m o v e .l
v e c t o r , - (s p )
p a r a m s , - ( s p )
m o v e .l
m o v e . w
# m o d e , - (s p )
m o v e . w
# 0 , - (s p )
tr a p
# 1 4
a d d q .l
# 1 2 , s p
Inputs
l o n g
v e c t o r
l o n g
p a r a m s
C o n t e n t s o f d a t a b l o c k p o i n t e d to b y
Byte Offset
Label
0
t o p m o d e
b u t t o n s
x p a r a m
y p a r a m
T h e f o llo w in g a r e u s e d o n l y in m o u s e - a b s o l u t e m o d e :
x m a x
4
y m a x
6
8
x in itia l
y in itia l
1 0
Initmous
Initialize Mouse
P o i n t to a n e w m o u s e p a c k e t i n t e r r u p t
h a n d l e r to s u p p o r t t h e n e w m o u s e p a c k e t
m o d e .
P o i n t e r t o a 1 2 - b y t e d a t a b l o c k c o n t a i n i n g
th e p a r a m e t e r s n e e d e d f o r m o u s e p a c k e t
in iti a liz a ti o n .
params
Description
S p e c if i e s o r i g i n o f y p o s i tio n
0 = y o r ig i n (0 p o i n t ) a t b o t t o m
1 = y o r ig i n a t t o p
T h e p a r a m e t e r f o r t h e I K B D s e t m o u s e b u t t o n s
c o m m a n d
I n r e l a t i v e m o d e ,
In a b s o l u t e m o d e ,
I n k e y c o d e m o d e ,
I n r e l a t i v e m o d e , y t h r e s h o l d
I n a b s o l u t e m o d e , y s c a l e
In k e y c o d e m o d e , y d e l t a
x
M a x i m u m
p o s i t i o n o f m o u s e
M a x i m u m y p o s i t i o n o f m o u s e
x
I n itia l
p o s i t i o n o f m o u s e
In itia l y p o s i tio n o f m o u s e
x
t h r e s h o l d
x
s c a l e
x
d e l t a
Opcode = 0
191

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents