Texas Instruments TMS320C2XX User Manual

Page 484

Advertising
background image

Instruction Set Comparison Table

B-35

TMS320C1x/C2x/C2xx/C5x Instruction Set Comparison

Syntax

Description

5x

2xx

2x

1x

XOR

dma

XOR {

ind} [, next ARP]

XOR #

lk [, shift]

Exclusive-OR With Accumulator

TMS320C1x and TMS320C2x devices: Exclusive-OR
the contents of the addressed data-memory location
with 16 LSBs of the accumulator. The MSBs are not af-
fected.

TMS320C2xx and TMS320C5x devices: Exclusive-
OR the contents of the addressed data-memory loca-
tion or a 16-bit immediate value with the accumulator.
If a shift is specified, left shift the value before perform-
ing the exclusive-OR operation. Low-order bits below
and high-order bits above the shifted value are treated
as 0s.

XORB

Exclusive-OR of ACCB With Accumulator

Exclusive-OR the contents of the accumulator with the
contents of the ACCB. The results are placed in the ac-
cumulator.

XORK #

lk [, shift]

Exclusive-OR Immediate With Accumulator With
Shift

Exclusive-OR a 16-bit immediate value with the accu-
mulator. If a shift is specified, left shift the value before
peforming the exclusive-OR operation. Low-order bits
below and high-order bits above the shifted value are
treated as 0s.

XPL [ #

lk,] dma

XPL [ #

lk , ] {ind} [, next ARP]

Exclusive-OR of Long Immediate or DBMR
With Addressed Data-Memory Value

If a long immediate value is specified, exclusive OR it
with the addressed data-memory value; otherwise, ex-
clusive OR the DBMR with the addressed data-
memory value. Write the result back to the data-
memory location. The accumulator is not affected.

ZAC

Zero Accumulator

Clear the contents of the accumulator to 0.

ZALH

dma

ZALH {

ind} [, next ARP]

Zero Low Accumulator and Load High
Accumulator

Clear the 16 LSBs of the accumulator to 0 and load the
contents of the addressed data-memory location into
the 16 MSBs of the accumulator.

Advertising