5-6
Z380
™
U
SER
'
S
M
ANUAL
DC-8297-03
Z
ILOG
5.5 INSTRUCTION SET FUNCTIONAL GROUPS
An Exchange instruction is available for swapping the
contents of the accumulator with another register or with
memory, as well as between registers. Also, exchange
instructions are available which swap the contents of the
register in the primary register bank and auxiliary register
bank.
The instruction in this group does not affect the flags.
This section presents an overview of the Z380 instruction
set, arranged by functional groups. (See Section 5.5 for an
explanation of the notation used in Tables 5-2 through 5-
11).
5.5.1 8-Bit Load/Exchange Group
This group of instructions (Table 5-2) includes load instruc-
tions for transferring data between byte registers, transfer-
ring data between a byte register and memory, and load-
ing immediate data into byte register or memory. For the
supported source/destination combinations, refer to Table
5-3.
Table 5-3. 8-Bit Load Group Allowed Source/Destination Combinations
Source
Dist.
A
B
C
D
E
H
L
IXH
IXL
IYH
IYL
n
(nn)
(BC) (DE) (HL)
(IX+d) (IY+d)
A
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
B
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
C
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
D
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
E
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
H
√
√
√
√
√
√
√
√
√
√
√
L
√
√
√
√
√
√
√
√
√
√
√
IXH
√
√
√
√
√
√
√
√
IXL
√
√
√
√
√
√
√
√
IYH
√
√
√
√
√
√
√
√
IYL
√
√
√
√
√
√
√
√
(BC)
√
(DE)
√
(HL)
√
√
√
√
√
√
√
√
(nn)
√
(IX+d)
√
√
√
√
√
√
√
√
(IY+d)
√
√
√
√
√
√
√
√
Table 5-2. 8-Bit Load Group Instructions
Instruction Name
Format
Note
Exchange with Accumulator
EX A,r
EX A,(HL)
Exchange r and r’
EX r,r’
r=A, B, C, D, E, H or L
Load Accumulator
LD A,src
See Table 5-3
LD dst,A
See Table 5-3
Load Immediate
LD dst,n
See Table 5-3
LD (HL),n
See Table 5-3
Load Register (Byte)
LD R,src
See Table 5-3
LD R,(HL)
See Table 5-3
LD dst,R
See Table 5-3
LD (HL),R
See Table 5-3
Note:
√
are supported combinations.