
A-364 SC140 DSP Core Reference Manual
ROR
ROR Rotate One Bit Right Through the Carry Bit (DALU) ROR
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
Example
ror d15
Operation Assembler Syntax
(Dn[39–1]>>>1) → Dn[38–0]
C → Dn[39]
Dn[0] → C
ROR Dn
ROR Dn
Rotates the contents of a data register (Dn) one bit to the right. The carry bit C is shifted to bit 39, bit 0 is
copied to the carry bit, and bits [39:1] are copied to bits [38:0].
Register Address Bit Name Description
SR[0] C The carry bit is copied into Dn[39].
Register Address Bit Name Description
SR[0] C Set if bit 0 in the data register was one before rotation. Cleared if bit
0 in the data register was zero before rotation.
Ln L Clears the Ln bit in the destination register.
Register/Memory Address Before After
SR
$00E0 0000 $00E0 0001
L15:D15
$0:$FF A000 0005 $0:$7F D000 0002
01516313239
C
Comentários a estes Manuais