EasyManua.ls Logo

Atari ST series - Page 255

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...
Cnecin
Keyboard Input Without Echo
Cnecin() Opcode = 8 ($08)
T his fu n ction w a its u ntil a c h ara cte r is availab le from th e co n sole k e y
b oa rd , d o es n o t ec h o th e c h a rac te r to th e sc re e n , an d retu rn s its A SC II
v alu e an d sca n co d e. T his fu n ction is id en tica l to C ra w c in (), th ou g h th e
d o cu m e n ta tio n sta tes th a t it d iffe rs fro m th at fu nctio n in th at C n e c in ( ) a cts
o n co n tro l co d es like C on tro l-S , C o n tro l-Q , a n d C o n tro l-C , in ste ad o f p as s
in g th e se c o d es o n , like C ra w c in (). A t lea st in cu rre n t T O S v ersio n s, h o w
e v er, C n e c in () p as se s th ese co d e s o n a lso .
C macro format
lo n g k ey co d e;
k ey co de = C n e c in ( );
Machine language format
m o v e .w # 8 , - ( s p )
trap # 1
ad d q .l # 2 ,s p
Inputs
N o n e
Results
DO k ey co d e lo n g A lo n gw ord th at co n ta in s bo th th e A SC II v alu e of
th e k ey (s) p re sse d , an d th e sca n co d e . T h e A SC II
v alu e is re tu rn ed in th e lo w by te of th e low w o rd
o f keycode, w h ile th e scan co d e is re tu rn e d in th e
lo w b y te o f th e h ig h w o rd . S ee A p p en d ix J fo r a
co m p lete list o f k ey co d es.
See also
C c o n i n (), C r a w c in (), C ra w c io ()
247