Re: A86: Interrupt questions
[Prev][Next][Index][Thread]
Re: A86: Interrupt questions
well theres kinda a need for it...if there wasnt then ppl could freeze up
the game while a box was sliding around and he didnt want that to happen or
to freeze when two keys were pushed together to slow the processing down.. i
would wanna do the same if i made a game like that
>every interrupt the 0 port is checked. if a key is down it loads this
>into a memory location accessible by _getky (somewhere around $C000).
>this way when you call _getky all it has to do is read the memory
>location. so, if you disable interrupts then the port is no longer
>checked and you have to check it yourself. Penguins actually probably
>doesn't use an interrupt routine, there's really no need for it in
>Penguins. it probably just checks the 0 port right in its game loop. the
>interrupt is necessary for the OS so that held keys and holding two keys
>at the same time, etc. work correctly.
>
>Dux Gregis wrote:
>>
>> Kirk Meyer wrote:
>>
>> > the interrupt is what lets the keyboard work right
>>
>> Hmm. Could you explain that a little?
>
>--
>
>=====================================
>= =
>= Kirk Meyer (mailto:_@ibm.net) =
>= http://www.bigfoot.com/~kirkmeyer =
>= =
>= "Set your affection on things =
>= above, not on things on the =
>= earth." Colossians 3:2 =
>= =
>=====================================
>
Follow-Ups: