Atari ST series Technical Reference Manual page 248

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Wait for Keyboard Character
Cconin()
T h is f u n c t i o n w a i t s u n til a c h a r a c t e r is a v a i la b l e f r o m t h e c o n s o l e k e y ­
b o a r d , e c h o e s it to t h e s c r e e n , a n d r e t u r n s it s A S C I I v a l u e a n d s c a n c o d e .
C macro format
l o n g k e y c o d e ;
k e y c o d e =
C c o n i n ( );
Machine language format
m o v e . w
# 1 , - ( s p )
tr a p
# 1
a d d q .l
# 2 , s p
Inputs
N o n e
Results
DO
k e y c o d e
l o n g
See also
C c o n i s ( ) , C r a w c i n ( ) , C n e c i n ( ) , C r a w c i o ( )
240
Cconin
A l o n g w o r d t h a t c o n t a i n s b o t h t h e A S C I I v a l u e o f
th e k e y ( s ) p r e s s e d , a n d th e s c a n c o d e . T h e A S C I I
v a l u e is r e t u r n e d in t h e lo w b y t e o f th e l o w w o r d
keycode,
o f
w h i l e t h e s c a n c o d e is r e t u r n e d in t h e
lo w b y t e o f t h e h i g h w o r d . S e e A p p e n d i x J f o r a
c o m p l e t e lis t o f k e y c o d e s .
Opcode = 1 ($01)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents