Re: A86: TI-86 interrupts, Part 2
[Prev][Next][Index][Thread]
Re: A86: TI-86 interrupts, Part 2
It wouldn't crash, per se... it would wait until a key was pressed. But
since the interrupts are disabled, it will get stuck in an infinite
loop. Also note that _getky as well ask _getkey relies on the interrupts
being enabled.
If you want to read keys with interrupts disabled, use the 0 port.
Dux Gregis wrote:
> I mean that disabling the interrupt keeps _getkey from working properly. I'm
> not sure what would happen if you called _getkey when the interrupt is
> disabled (crash?).
--
=====================================
= =
= Kirk Meyer (mailto:_@ibm.net) =
= http://www.bigfoot.com/~kirkmeyer =
= http://simcommunity.home.ml.org =
= =
= "Set your affection on things =
= above, not on things on the =
= earth." Colossians 3:2 =
= =
=====================================
References: