MZ-80K – KBD Matrix

MZ-80K Keyboard Map

Written by Maurice Hawes  
Source: SUC-magazine July 2001, Volume 21, Number 2, p. 10

Nothing is given in the MZ-80K Owner’s Manual, but the MZ-80K keyboard map is very simply arranged; just compare the table below with the actual keyboard, and you will see what I mean.

( Note that unused points in the matrix are indicated by two rows of “****” )

 
KEY DATA BITS
0
1
2
3
4
5
6
7
X= $01
$02
$04
$08
$10
$20
$40
$80
( Bit is zero if key is pressed )
Y = $F0
1
3
5
7
9
+
G2
G4
$F1
2
4
6
8
0
G1
G3
G5
$F2
Q
E
T
U
O
*
=
G7
G9
$F3
W
R
Y
I
P
G6
G8
G10
$F4
A
D
G
J
L
£
G12
G14
$F5
S
F
H
K
:
G11
G13
G15
$F6
Z
C
B
M
.
SML
CAP
G17
G19
$F7
X
V
N
,
/
G16
G18
G20
$F8
LSHIFT
INST
DEL
****
****
RIGHT
LEFT
CR
RSHIFT
G22
G24
$F9
CLR
HOME
SPACE
UP
DOWN
BREAK
****
****
G21
G23
G25

The 25 keys in the separate MZ-80K graphics keypad appear in the map above as G1 – G25. Physically they are laid out as:

G1
G2
G3
G4
G5
G6
G7
G8
G9
G10
G11
G12
G13
G14
G15
G16
G17
G18
G19
G20
G21
G22
G23
G24
G25

NOTE: On the MZ-80K, as shown above, the two SHIFT keys are mapped in different columns; but they are in the same row, so it is possible to check both SHIFT keys in one scan i.e. STROBE row $F8 then check KEY DATA BIT 0 and KEY DATA BIT 5 in one logic operation ( for example, CPL then AND $21 will give a ZERO result if neither of the SHIFT keys is being pressed ).