[Coco] How to detect a key pressed in OS-9
Luis Antoniosi (CoCoDemus)
retrocanada76 at gmail.com
Tue Apr 23 22:29:25 EDT 2013
thx Robert!
On Tue, Apr 23, 2013 at 9:58 PM, Robert Gault <robert.gault at att.net> wrote:
> 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
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/**mailman/listinfo/coco<http://five.pairlist.net/mailman/listinfo/coco>
>
--
Long live the CoCo
More information about the Coco
mailing list