Re: A86: TI-86 interrupts, Part 2


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

Re: A86: TI-86 interrupts, Part 2




> I don't mean to be an ass, but if _getkey is an interrupt, what isn't?  You
> call it when you want to, not when the CPU wants to.

_Getkey is actually running all the time.  When you call _getkey, it just
gives you what it has.  If _getkey were not running all the time, it would not
be able to grab keypresses except when you called it (and that could
cost you the quick keypresses, even in keyloops).  As an interrupt, it's
able to give you the last key pressed, regardless of how long ago that
was, upon your request.


Follow-Ups: