50
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Exchange
XCH Byte Data Exchange
[Instruction format] XCH dst, src
[Operation] dst src
[Operand]
Mnemonic Operand(dst,src) Mnemonic Operand(dst,src)
XCH A, r Note XCH A, [HL]
A, saddr A, [HL+byte]
A, sfr A, [HL+B]
A, !addr16 A, [HL+C]
A, [DE]
Note Except r = A
[Flag]
ZACCY
[Description]
The 1st and 2nd operand contents are exchanged.
[Description example]
XCH A, FEBCH; The A register contents and address FEBCH contents are exchanged.