EasyManua.ls Logo

Atari ST series - Page 254

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...
Crawcin
Raw Keyboard Input Without Echo
Crawcin() Opcode = 7 ($07)
T his fu n ctio n w a its u ntil a c h ara cte r is availab le fro m th e co n sole k ey
b oa rd , an d retu rn s its A S CII v alu e an d sca n co d e . U nlik e C c o n i n (), it d oes
n o t ec h o th e ch a ra cte r to th e scre e n .
C macro format
lo n g k ey co de ;
k ey co d e = C r a w c in ( );
Machine language format
m o v e .w # 7 , - (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 g w o rd th at co n tain s b o 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 SCII
v alu e is re tu rn e d in th e low b yte of th e low w o rd
of k ey co d e, w h ile th e scan co d e is retu rn ed in th e
lo w by te of th e h ig h w o rd . S ee A p p e n d ix J for a
co m p lete list o f k ey co d es .
See also
C c o n i n (), C n e c in ( ), C r a w c io ()
246