Maxim Integrated MAXQ622 User Manual
Page 235

MAXQ612/MAXQ622 User’s Guide
Maxim Integrated
16-25
XCH
Exchange Accumulator Bytes
Description:
Exchanges the upper and lower bytes of the active accumulator .
Status Flags: S
Operation:
Acc .[15:8]
← Acc .[7:0]
Acc .[7:0]
← Acc .[15:8]
Encoding:
15
0
1000
1010
1000
1010
Example(s):
; Acc = 2345h
XCH
; Acc = 4523h
XCHN
Exchange Accumulator Nibbles
Description:
Exchanges the upper and lower nibbles in the active accumulator byte(s) .
Status Flags: S
Operation:
Acc .[7:4]
← Acc .[3:0]
Acc .[3:0]
← Acc .[7:4]
Acc .[15:12]
← Acc .[11:8]
Acc .[11:8]
← Acc .[15:12]
Encoding:
15
0
1000
1010
0111
1010
Example(s):
; Acc = 2345h
XCHN
; Acc = 3254h
XOR src
Logical XOR
Description:
Performs a logical-XOR between the active accumulator (Acc or A[AP]) and the specified src data .
For the complete list of src specifiers, reference the MOVE instruction . The PFX[n] register may be
used to supply the high byte of data for 8-bit sources .
Status Flags: S, Z
Operation:
Acc
← Acc XOR src
Encoding:
15
0
f011
1010
ssss
ssss
Example(s):
; Acc = 2345h
XOR A[2]
; A[2]=0F0Fh; Acc
← 2C4Ah
Special Notes: The active accumulator (Acc) is not allowed as the src for this operation .