[Coco] Keyboard PEEKing
Brett Gordon
beretta42 at gmail.com
Sat May 27 00:51:04 EDT 2017
uhm.. just use the ROM routines? "unravelled" has a list of routine
addresses. jsr $a1cb.* It returns 0 if nothing is pressed, else it returns
ascii value of FIRST key found to have changed state. If you want the
status of all keys** at last poll check out the bitmap at $152, or
directly call the keyboard code to cause an update of that map.
$152 is BASIC's memory.. so it can see what changed from last poll. A key
gets registered when is goes from 1 to 0***. ignore the return and peek
$152-? area for changes.
'Luck,
brett
*
** Are all keys mashed like hulk electrically doable?
*** or is it 0 to 1?
More information about the Coco
mailing list