[A83] Re: _getKey


[Prev][Next][Index][Thread]

[A83] Re: _getKey




> From: "SUCKER from the old days" <sucker_pvn@hotmail.com>
>
> > No it doesn't wait, so you have to make a loop.
> >
> > For example:
> >
> >  Xor a
> > KeyLoop:
> >  B_CALL GetCSC
> >  Or a
> >  Jr z,KeyLoop ;Note: I HATE MICROSOFT WORD AND ITS FRIGGIN
> > AUTO- CORRECTING B.S.
> >
> > At the end of this loop, the accumulator contains the value for the
> > keypress. I believe all of them begin with 'sk'. For example,
> > "skenter", "skgraph", "sktrace". This routine does not allow you
> > to access system menus.

> Is it better than _getk??

_getk calls _getcsc and then converts that keycode into real number in OP1,
which is used by the TI-Basic getKey instruction. In assembly, using _getcsc
instead of _getk, is a lot faster because you don't need that OP value
anyway.





Follow-Ups: References: