Re: A86: GET_KEY vs ports


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

Re: A86: GET_KEY vs ports




That all depends on what you want to do.  If you really need to save the
few bytes, then _geykey is the way to go.  _getkey also allows apd and
stuff like that, so this maybe what you want.

However, I always use the ports in programs for a few reasons.  One is that
interrupts can be disabled and keys still work properly.  Another reason is
that _getkey only allows one key to be read at a time, whereas reading the
ports allows for about 2-4 keys at once.  This is usually necessary when
writting a game.

At 06:46 PM 9/27/98 -0700, you wrote:
>
>Is it better to read keypad input using GET_KEY or by reading the ports
>directly?
>
>Thanx,
>Dave VanEe
>

--
David Phillips
mailto:electrum@tfs.net
ICQ: 13811951
AOL/AIM: Electrum32