Xor src, Xor acc. Page 215: Xor acc. -38, Maxq family user’s guide
18-38
MAXQ Family User’s Guide
XOR src
Logical XOR
Description:
Performs a logical-XOR between the active accumulator (Acc or A[AP]) and the specified src data. For the com-
plete list of src specifiers, reference the MOVE instruction. The MAXQ20 may use the PFX[n] register to supply the
high byte of data for 8-bit sources.
Status Flags:
S, Z
Operation:
Acc
← Acc XOR src
Encoding:
15
0
MAXQ10
Example(s):
; Acc = 23h
XOR A[2]
; A[2]=0Fh; Acc
← 2Ch
XOR #28h
; Acc
← 04h
MAXQ20
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.
XOR Acc.
Logical XOR Carry Flag with Accumulator Bit
Description:
Performs a logical-XOR between the Carry (C) status flag and a specified bit of the active accumulator (Acc.)
and returns the result to the Carry.
Status Flags:
C
Operation:
C
← C XOR Acc.
Encoding:
15
0
MAXQ10
Example(s):
; Acc = 45h, C=1 at start
XOR Acc.1
; Acc.1=0
→ C=1
XOR Acc.2
; Acc.2=1
→ C=0
MAXQ20
Example(s):
; Acc = 2345h, C=1 at start
XOR Acc.1
; Acc.1=0
→ C=1
XOR Acc.2
; Acc.2=1
→ C=0
Special Notes:
For the MAXQ10, the accumulator width is only 8 bits. Thus, only bit index encoding ('bbbb') for bits 0 ('0000')
through 7 ('0111') is supported.
f011
1010
ssss
ssss
1011
1010
bbbb
1010
Maxim Integrated