Re: A92: Waiting for nokey?


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

Re: A92: Waiting for nokey?



At 05:02 PM 8/12/97 +0200, you wrote:
>How do I "wait until no key is down" when using the keyboard matrix?
>
>I've tried the obvious, setting all rows to 0, nop:ing, and testing if the
>columns were zero with tst.b ($6000xx).
>Should I use the keyboard buffer?

Can you un-mask multiple rows or columns when reading from the port?

How I would do it is start with %11111110 and set up a loop that sends to
the port and then checks if the result is $FF, if not, at least one key is
down, if it is $FF, all the keys in that row are not being pressed, so
rotate what you are using as your current keymask and loop.

	-Andrew


Follow-Ups: References: