
Z80 Instruction Set UM008007-0715
124
Z80 CPU
User Manual
EXX
Operation
(BC) ↔ (BC′), (DE) ↔ (DE'), (HL) ↔ (HL′)
Op Code
EXX
Operands
None.
Description
Each 2-byte value in register pairs BC, DE, and HL is exchanged with the 2-byte value in
BC', DE', and HL', respectively.
Condition Bits Affected
None.
Example
If register pairs BC, DE, and HL contain 445Ah, 3DA2h, and 8859h, respectively, and
register pairs BC', DE', and HL' contain
0988h, 9300h, and 00E7h, respectively, then
upon the execution of an EXX instruction, BC' contains
0988h; DE' contains 9300h; HL
contains
00E7h; BC' contains 445Ah; DE' contains 3DA2h; and HL' contains 8859h.
M Cycles T States 4 MHz E.T.
141.00
Kommentare zu diesen Handbüchern