A86: Re: Checking keys with Port 1


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

A86: Re: Checking keys with Port 1




I'm not certain about this, but I think you can do:

wait:
 in a,(1)     ;don't put a mask out the port
 inc a        ;if no keypress, A will be $ff ?
 jr z,wait

if not, maybe this:

wait:
 in a,(1)
 set 7,a
 cpl
 jr z,wait


>
>Is there an easy way to use Port 1 to check if any/no key is pressed?  Or
do
>you have to check each row of the table separately?
>
>Thanks!
>
>--
>David Phillips <electrum@tfs.net>
>ICQ: 13811951
>AOL/AIM: Electrum32
>86 Central: http://www.tfs.net/~electrum/
>