Exclusive OR With Accumulator
XOR
7-195
Assembly Language Instructions
Example 1
XOR
DAT127
;(DP = 511: addresses FF80h–FFFFh)
Before Instruction
After Instruction
Data Memory
Data Memory
0FFFFh
0F0F0h
0FFFFh
0F0F0h
ACC
X
12345678h
ACC
X
1234A688h
C
C
Example 2
XOR
*+,AR0
Before Instruction
After Instruction
ARP
7
ARP
0
AR7
300h
AR7
301h
Data Memory
Data Memory
300h
0FFFFh
300h
0FFFFh
ACC
X
1234F0F0h
ACC
X
12340F0Fh
C
C
Example 3
XOR
#0F0F0h,4
;(First shift data value left by
;four)
Before Instruction
After Instruction
ACC
X
11111010h
ACC
X
111E1F10h
C
C