Atari ST series Technical Reference Manual page 221

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Configure Text Cursor
Cursconf()
T h e C u r s c o n f ( ) f u n c t i o n a l l o w s y o u t o c o n t r o l t h e v is ib ility a n d b lin k r a t e
o f th e s y s t e m 's t e x t c u r s o r .
C macro format
i n t r a t e , m o d e , n e w r a t e ;
r a t e =
C u r s c o n f ( m o d e ,n e w r a t e ) ;
Machine language format
m o v e . w
# n e w r a t e , - (s p )
m o v e . w
# m o d e , - ( s p )
# 2 1 , - (s p )
m o v e . w
# 1 4
t r a p
a d d q .l
# 6 , s p
Inputs
n e w r a t e
w o r d
m o d e
w o r d
Results
DO
r a t e
w o r d
Cursconf
If m o d e =
m i n e s t h e r a t e a t w h i c h t h e c u r s o r b lin k s ,
a c c o r d i n g t o th is f o r m u l a : D u r a t i o n o f a
s in g le b lin k (i n s e c o n d s )
c y c l e s . I n th is f o r m u l a , c y c l e s r e p r e s e n t s
t h e m o n i t o r f r e q u e n c y ( m o n o c h ­
r o m e =
c o l o r =
A f la g t h a t i n d i c a t e s t h e c h a n g e in c u r s o r
f u n c t i o n :
0 = T u r n c u r s o r o f f
1 = T u r n c u r s o r o n
2 = T u r n c u r s o r b lin k o n
3 =
4 =
5 =
W h e n m o d e is s e t t o 5 , t h e c u r r e n t b lin k r a t e v a l u e ( 0 -
2 5 5 ) is r e t u r n e d h e r e .
Opcode = 21
5 , th is v a l u e ( 0 - 2 5 5 ) d e t e r ­
= 2 *
7 0 , U S c o l o r =
6 0 , E u r o p e a n
5 0 ) .
T u r n c u r s o r b lin k o f f
C h a n g e b lin k r a t e t o v a l u e c o n ­
ta i n e d in n e w r a t e
R e a d c u r s o r b lin k r a t e
r a t e /
213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents