Xchw – NEC 78K/0 Series User Manual
Page 53

53
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Exchange Word
XCHW
Word Data Exchange
[Instruction format]
XCHW dst, src
[Operation]
dst
↔ src
[Operand]
Mnemonic
Operand(dst,src)
XCHW
AX, rp
Note
Note Only when rp = BC, DE or HL
[Flag]
Z
AC
CY
[Description]
•
The 1st and 2nd operand contents are exchanged.
[Description example]
XCHW AX, BC; The memory contents of the AX register are exchanged with those of the BC register.