Texas Instruments TMS320C2XX User Manual

Page 283

Advertising
background image

OR

OR With Accumulator

7-130

Status Bits

None
This instruction is not affected by SXM.

Description

An OR operation is performed on the contents of the accumulator and the con-
tents of the addressed data-memory location or a long-immediate value. The
long-immediate value may be shifted before the OR operation. The result re-
mains in the accumulator. All bit positions unoccupied by the data operand are
zero filled, regardless of the value of the SXM status bit. Thus, the high word
of the accumulator is unaffected by this instruction if direct or indirect address-
ing is used, or if immediate addressing is used with a shift of 0. Zeros are
shifted into the least significant bits of the operand if immediate addressing is
used with a nonzero shift count.

Words

Words

Addressing mode

1

Direct or indirect

2

Long immediate

Cycles for a Single OR 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 OR 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 OR Instruction (Using Long Immediate Addressing)

ROM

DARAM

SARAM

External

2

2

2

2+2p

Cycles

Advertising