Texas Instruments TMS320C2XX User Manual
Page 347
XOR
Exclusive OR With Accumulator
7-194
Status Bits
None
Description
With direct or indirect addressing, the low half of the accumulator value is
exclusive ORed with the content of the addressed data memory location, and
the result replaces the low half of the accumulator value; the upper half of the
accumulator value is unaffected. With immediate addressing, the long imme-
diate constant is shifted and zero filled on both ends and exclusive ORed with
the entire content of the accumulator. The carry bit (C) is unaffected by XOR.
Words
Words
Addressing mode
1
Direct or indirect
2
Long immediate
Cycles for a Single XOR Instruction (Using Direct and Indirect Addressing)
Program
Operand
ROM
DARAM
SARAM
External
DARAM
1
1
1
1+p
SARAM
1
1
1, 2
†
1+p
External
1+d
1+d
1+d
2+d+p
† If the operand and the code are in the same SARAM block
Cycles for a Repeat (RPT) Execution of an XOR Instruction (Using Direct
and Indirect Addressing)
Program
Operand
ROM
DARAM
SARAM
External
DARAM
n
n
n
n+p
SARAM
n
n
n, n+1
†
n+p
External
n+nd
n+nd
n+nd
n+1+p+nd
† If the operand and the code are in the same SARAM block
Cycles for a Single XOR Instruction (Using Long Immediate Addressing)
ROM
DARAM
SARAM
External
2
2
2
2+2p
Cycles