EasyManua.ls Logo

Atari ST series - Page 248

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...
Cconin
Wait for Keyboard Character
Cconin() Opcode = 1 ($01)
T his fu nction w aits u ntil a ch ar a cte r is av ailab le from th e co n so le k ey
b oa rd , e ch o es it to th e scre e n , a n d re tu rn s its A SC II v alu e a n d sca n c od e.
C macro format
lo n g k ey co d e;
k ey co d e = C c o n i n ( );
Machine language format
m o v e.w # 1 , - (sp )
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 b oth th e A SC II va lu e of
th e k ey (s) p re sse d , a n d th e sca n co d e . T he A SC II
v alu e is re tu rn e d in th e low by te o f th e low w o rd
o f keycode, w hile th e sca n co d e is re tu rn ed in th e
low 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 of k e y co d es.
See also
C c o n i s (), C ra w c in (), C n e c in (), C r a w c io ()
240