Prev: 3D00 Up: Map Next: 5C08
5C00: KSTATE - Used in reading the keyboard
Initialised by the routine at NEW, and used by the routine at KEYBOARD. KSTATE0 (5C00) and KSTATE4 (5C04) are accessed by the routine at NEW via the IY register at IY-$3A and IY-$36.
There are two sets of four bytes here, each set corresponding to a separate keypress. The bytes in each set are used as follows:
Byte Contents
0 +FF if the set is unused, or a main code from the main key table otherwise
1 Call counter; initially +05, and decremented on each call to KEYBOARD
2 Repeat delay counter; initially REPDEL, decremented on each call to KEYBOARD, reset to REPPER whenever it reaches zero
3 Final code from the key tables (as computed by K_DECODE)
KSTATE 5C00 DEFB $FF,$00,$00,$00
5C04 DEFB $FF,$00,$00,$00
Prev: 3D00 Up: Map Next: 5C08