dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 513

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
LSRA
Operation:
D >> 1 → D
Description: Logically shift the address register operand 1 bit to the right, and store the result back in the register.
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
Freescale Semiconductor
LSRA
Operation
LSRA
Before Execution
Rn
R0
LSRA
Prior to execution, the R0 register contains $A0A0A0. Execution of the LSRA R0 instruction shifts
the value in the R0 register 1 bit to the right, and stores the result ($505050) back in R0.
The condition codes are not affected by this instruction.
1 oscillator clock cycle
1 program word
(no parallel move)
Operands
A0A0A0
R0
Rn
Logical Shift Right AGU Register
15
1
C
1
Instruction Set Details
0
; logically shift R0 to the right 1 bit
W
1
0
Assembler Syntax:
LSRA
Logical shift right AGU register by 1 bit
12
0
11
0
After Execution
R0
1
0
D
1
8
505050
Comments
7
0
(no parallel move)
0
1
1
4
R
3
LSRA
1
R
A-169
R
0

Related parts for dsp56800e