Texas Instruments TMS320C3x User Manual page 665

Texas instruments computer hardware user's guide
Table of Contents

Advertisement

Syntax
Operation
Operands
Opcode
Description
Cycles
Status Bits
Mode Bit
Example
ROR dst
dst right-rotated one bit through carry bit
dst register (R n , 0
n
31
24 23
0 0 0 1 0
0
1
0
1
The contents of the dst operand are right rotated one bit and loaded into the
dst register. The LSB is rotated into the carry (C) bit and also transferred into
the MSB.
Rotate right:
dst
C
1
These condition flags are modified only if the destination register is R7– R0.
LUF
Unaffected
LV
Unaffected
UF
0
N
MSB of the output
Z
1 if a 0 output is generated; 0 otherwise
V
0
C
Set to the value of the bit rotated out of the high-order bit; unaffected
if dst is not R7–R0
OVM
Operation is not affected by OVM bit value.
ROR R7
Before Instruction
R7
00 0000 0421
LUF
LV
UF
N
Z
V
C
27)
16
15
1 1
dst
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
R7
LUF
0
LV
0
UF
0
N
0
Z
0
V
0
C
0
Assembly Language Instructions
Rotate Right
dst
8 7
After Instruction
00 8000 0210
0
0
0
1
0
0
1
ROR
0
13-207

Advertisement

Table of Contents
loading

Table of Contents