Z80_Asm Z80 Asm
User Manual: Pdf Z80_Asm
Open the PDF directly: View PDF .
Page Count: 16
Z-80
ASSEMBLER
DISK
BLOCK
ORGANIZATION
BLK
NUM
BLK
NUM
DESCRIPTION
(Relative
(currently)
to
Abase)
o
12
Register
definitions
1
13
Special functions (including
logical
AND,
OR)
2
14
8080
OP
Codes
3
15
8080
OP
Codes
4
16
Z-80
OP
Codes
ALA
Rust
5
17
Z-80
OP
Codes
ALA
TDL
6
18
Z-80
OP
Codes
ALA
TDL
7
19
Z-80
OP
Codes
ALA
TDL
8
20
Z-80
OP
Codes
ALA
Rust
~
9
21
Load
List
(Load
this
to
get assembler)
23
Test
instructions
set
TESTO
24
See
Also
TDL
listings
TEST
1
25
26
TEST2
TEST3
~8
bit
reg)
=
A,
B, C,
D,
E,
H,
L,
M
(M
is
memory
address pointed
to
by
HL)
<from reg
8)
= 8
bit
reg
~to
reg
8)
= 8
bit
reg
<16
bit
registers)
=
BC,
DE,
HL,
SP,
X,
V
referred
to
as:
B,
D,
H,
SP,
X,
V
(prog
status
word) =
PSW
{index
reg)
=
X,
V
<disp) = 8
bit
value -displacement
<nn)
=
16
bit
value
<n) = 8
bit
value
(B
or
D)
= reg
pair
BC
or
DE
<B,
D,
H,
SP) = reg
pair
BC,
DE,
HL,
or
SP
<B,
D,
H,
PSW)
= reg
pair
BC,
DE,
HL,
or
program
status
<B,
D,
SP,
X)
= reg pai r
DC,
DE,
SP,
or
X
<B,
D,
SP,
V)
= reg
pair
BC,
DE,
SP,
or
Y
word
(bit
num)
= a
bit
position
in
an
8
bit
byte,
where
the
bits
are
numbered
from
right
to
left
0 to 7
OP
CODE
FORMATS
FOR
TERSE
ASSEMBLY
TERSE
TOL
-,
-
~from
reg
8)
<to reg
8)
MOV,
MOV
r,r
<disp)
(i
ndex
re~
(8 bi t
reg)
LDX,
MOV
r,d
(ii)
<8
bit
reg)
<disp) <index
reg)
STX,
MOV
d
(ii),!'
<n)
{8
bit
reg)
MVI,
MVI
r,n
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bit
reg)
ANA,
ANA
r
<'disp)
(j
ndex . re!l)
ANAX,
ANA
d
(ii)
(n)
ANI,
ANI
n
(8
bit
reg)
ORA,
ORA
r
(disp)
/.j
ndex
reg)
ORAX,
ORA
d
(i
i)
(n;
ORI,
OR!
n
/...8
bit
reg)
XRA,
XRA
r
(di
spj.
/..j
ndex
reg)
XRAX,
XRA
d
(i
i)
(n)
XRI,
XRI
n
/....8
bi t
reg)
CMP,
CMP
r
.(disp>
~.i
ndex
regj
CMPX,
CMP
d
(ii)
/.!I)
CPI,
CPI
n
TERSE
TOL
(8
bit
reg)
INR,
INR
r
<disp)
<index
reg)
INRX,
INR
d
(ii)
"8
bit
reg)
OCR,
OCR
r
<disp)
(jndex
reg)
OCRX,
OCR
d
(ii)
\
TERSE
TOL
....
OAA,
OAA
CMA,
CMA
NEG,
NEG
CMC,
CMC
STC,
STC
NOP,
NOP
HLT,
HLT
01,
Dr
Et,
E1
TMO,
TMO
1Ml,
1Ml
1M2,
1M2
TERSE
TDL
(B,D,H,SP)
DAD,
DAD
rr
<B,D,H,SP)
DADC,
DADC
rr
(B
,D,H
,SP)
DSBC
DSBC
rr
<B,D,X,SP>
DADX,
DAD
X
tt
(B,D, Y ,SP)
DADY,
DADY
uu
<B,D,H,SP)
INX,
INX
rr
<index
reg)
INXX,
INX
ii
{B,D,H,SP)
DCX,
DCX
rr
(index reg>
DCXX,
DCX
ii
TERSE
RLC~
RAL,
RRC,
RAR,
RLC
RAL
RRC
RAR
TDL
TERSE
TDL
(8
bit
reg)
RLCR,
RLCR
r
<disp)
<i
ndex
reg)
RLCX,
RLCR
ii
<8
bit
reg)
RALR,
RALR
r
<disp)
<index reg)
RALX,
RALR
ii
<8
bit
reg)
RRCR,
RRCR
r
<disp)
(index reg)
RRCX,
RRCR
ii
(8
bit
reg)
RARR,
RARR
r
(disp'/
(index reg)
RARX,
RARR
ii
(8
bit
reg>
SLAR,
SLAR
r
<disp)
(index reg)
SLAX,
SLAR
ii
\8
bit
reg,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