2.5
Registers
The Z-80 has
a number of
registers,
all
of which have a specific
symbolic
reference.
ZSMsupports
these
references,
as follows.
register
B -
B
register
C -
C
register
D -
D
register
E
-
E
register
H -
H
register
L
-
L
accumulator -
A
memory
-
M
A
&
flags
-
PSW
Stack Ptr
-
SP
Index reg X -
IX
Index reg Y -
IY
Also may be called
DE for register-pair
instructions
Also may be called
HL for register-pair
instructions
Although not supported
by
ZSM, also called
(HL)
Program Status
~rd,
may also be called
AF
Also may be called
X for brevity
Also may be called
Y for brevi ty
Of course,
the
Z-80 also has registers
A',
B',
C',
D', E',
H',
L',
F',
PC,
I,
and R, but these
are never explicitly
referred
to in an instruction,
so no
special
designation
is needed.