[Coco] How to detect a key pressed in OS-9

Robert Gault robert.gault at att.net
Tue Apr 23 21:58:51 EDT 2013


Bill Pierce wrote:
>
> Luis,
> I think Inkey for Basic09 acts just like Basic's INKEY$.

Not only is that true, but the source code for the Basic09 INKEY$ routine is 
listed in the owner's manual in the Basic09 section, Appendix B.

The gist of the code is
  ldb #SS.Ready
  OS9 I$GetStt
  bsc Exit   no then exit
  ldy #1
  OS9 I$Read go read one character
  rts





More information about the Coco mailing list