EasyManua.ls Logo

Atari ST series - Page 221

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Cursconf
Configure Text Cursor
Cursconf() Opcode = 21
T h e C u r s c o n f () fu n ctio n allo w s y o u to co n tro l th e visibility a n d blink ra te
o f th e sy ste m 's te xt cu rso r.
C macro format
in t r ate, m o d e, n ew ra te ;
rate = C u rs co n f(m o d e ,n e w ra te );
Machine language format
m o v e .w
m o v e .w
m o v e .w
trap
ad d q.l
Inputs
n ew ra te
m o d e
Results
DO rate
# n e w r a te , - (sp )
# m o d e , - (sp )
# 2 1 , - (sp )
# 1 4
# 6 ,s p
w o rd
w o rd
If m o d e = 5 , th is v alu e (0 -2 5 5 ) d ete r
m in es th e ra te a t w h ich th e cu rso r blinks,
a cco rd in g to this form u la: D u ration of a
sin gle blink (in se co n d s) = 2 * ra te /
cy cle s. In th is fo rm u la, cy cle s re p re sen ts
th e m o n ito r freq ue n cy (m o n oc h
ro m e = 7 0 , U S co lo r = 6 0 , E u ro p ea n
co lo r = 5 0).
A flag th a t in dicate s th e ch an g e in cu rso r
fu n ctio n :
0 = T u rn cu rso r off
1 = T u rn cu rso r on
2 = T u rn cu rso r b link on
3 = T u rn cu rso r blin k off
4 = C h an g e blink ra te to v alu e co n
tain ed in n ew ra te
5 = R ea d c u rso r blink rate
w o rd W h e n m o d e is se t to 5 , th e cu rre n t blink ra te v alu e (0-
2 55 ) is re tu rn ed h e re .
213