2020-05-20 18:56:18 -04:00
|
|
|
: PS2_SHIFT [ PS2_MEM LITN ] ;
|
|
|
|
: PS2$ 0 PS2_SHIFT C! ;
|
|
|
|
|
|
|
|
( A list of the values associated with the 0x80 possible scan
|
|
|
|
codes of the set 2 of the PS/2 keyboard specs. 0 means no
|
|
|
|
value. That value is a character that can be read in (key)
|
|
|
|
No make code in the PS/2 set 2 reaches 0x80. )
|
|
|
|
CREATE PS2_CODES
|
|
|
|
( 00 ) 0 C, 0 C, 0 C, 0 C, 0 C, 0 C, 0 C, 0 C,
|
|
|
|
( 08 ) 0 C, 0 C, 0 C, 0 C, 0 C, 9 C, '`' C, 0 C,
|
|
|
|
( 10 ) 0 C, 0 C, 0 C, 0 C, 0 C, 'q' C, '1' C, 0 C,
|
2020-11-06 17:21:13 -05:00
|
|
|
( I don't know why, but the key 2 is sent as 0x1f by 2 of my
|
|
|
|
keyboards. Is it a timing problem on the ATtiny? TODO )
|
|
|
|
( 18 ) 0 C, 0 C, 'z' C, 's' C, 'a' C, 'w' C, '2' C, '2' C,
|
2020-05-20 18:56:18 -04:00
|
|
|
( 20 ) 0 C, 'c' C, 'x' C, 'd' C, 'e' C, '4' C, '3' C, 0 C,
|
|
|
|
( 28 ) 0 C, 32 C, 'v' C, 'f' C, 't' C, 'r' C, '5' C, 0 C,
|