Texas Instruments TMS320C2XX User Manual

Page 297

Advertising
background image

ROL

Rotate Accumulator Left

7-144

Syntax

ROL

Operands

None

Opcode

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

0

0

1

1

0

0

0

0

0

1

1

1

1

1

0

1

Execution

Increment PC, then ...
C

ACC(0)

(ACC(31))

C

(ACC(30:0))

ACC(31:1)

Status Bits

Affects
C

This instruction is not affected by SXM.

Description

The ROL instruction rotates the accumulator left one bit. The value of the carry
bit is shifted into the LSB, then the MSB is shifted into the carry bit.

Words

1

Cycles for a Single ROL Instruction

ROM

DARAM

SARAM

External

1

1

1

1+p

Cycles for a Repeat (RPT) Execution of an ROL Instruction

ROM

DARAM

SARAM

External

n

n

n

n+p

Example

ROL

Before Instruction

After Instruction

ACC

0

B0001234h

ACC

1

60002468h

C

C

Cycles

Advertising