8XC196MC, MD, MH USER’S MANUAL
A-40
XCH EXCHANGE WORD. Exchanges the value of
the source word operand with that of the
destination word operand.
(DEST)
↔ (SRC)
DEST, SRC
XCH wreg, waop
(00000100) (waop) (wreg) direct
(00001011) (waop) (wreg) indexed
PSW Flag Settings
ZNCVVTST
——————
XCHB EXCHANGE BYTE. Exchanges the value of
the source byte operand with that of the
destination byte operand.
(DEST)
↔ (SRC)
DEST, SRC
XCHB breg, baop
(00010100) (baop) (breg) direct
(00011011) (baop) (breg) indexed
PSW Flag Settings
ZNCVVTST
——————
XOR LOGICAL EXCLUSIVE-OR WORDS. XORs
the source word operand with the destination
word operand and stores the result in the
destination operand. The result has ones in
the bit positions in which either operand (but
not both) had a “1” and zeros in all other bit
positions.
(DEST)
← (DEST) XOR (SRC)
DEST, SRC
XOR wreg, waop
(100001aa) (waop) (wreg)
PSW Flag Settings
ZNCVVTST
✓✓00——
XORB LOGICAL EXCLUSIVE-OR BYTES. XORs
the source byte operand with the destination
byte operand and stores the result in the
destination operand. The result has ones in
the bit positions in which either operand (but
not both) had a “1” and zeros in all other bit
positions.
(DEST)
← (DEST) XOR (SRC)
DEST, SRC
XORB breg, baop
(100101aa) (baop) (breg)
PSW Flag Settings
ZNCVVTST
✓✓00——
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format