5-50
Z380
™
U
SER
'
S
M
ANUAL
DC-8297-03
Z
ILOG
EX
EXCHANGE ACCUMULATOR/FLAG WITH ALTERNATE BANK
EX AF,AF’
Operation:
SR(0)
←
NOT SR(0)
Bit 0 of the Select Register (SR), which controls the selection of primary or alternate bank
for the accumulator and flag register, is complemented, thus effectively exchanging the
accumulator and flag registers between the two banks.
Flags:
S:
Value in F’
Z:
Value in F’
H:
Value in F’
V:
Value in F’
N:
Value in F’
C:
Value in F’
Addressing
Execute
Mode
Syntax
Instruction Format
Time
Note
EX AF,AF’
00001000
3