dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 506

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
Description: Perform one normalization iteration on the specified destination operand
D, update the specified address register Rn based upon the results of that iteration, and
store the result back in the destination accumulator. This is a 56-bit operation. If the
accumulator extension is not in use, the accumulator is unnormalized, and the accumu-
lator is not zero, the destination operand is arithmetically shifted one bit to the left, and
the specified address register is decremented by 1. If the accumulator extension register
is in use, the destination operand is arithmetically shifted one bit to the right, and the
specified address register is incremented by 1. If the accumulator is normalized or zero,
a NOP is executed and the specified address register is not affected. Since the operation
of the NORM instruction depends on the E, U, and Z condition code register bits, these
bits must correctly reflect the current state of the destination accumulator prior to execut-
ing the NORM instruction. Note that the L and V bits in the condition code register will be
cleared unless they have been improperly set up prior to executing the NORM instruc-
tion.
Example:
Explanation of Example: Prior to execution, the 56-bit A accumulator contains the
value $00:000000:000001, and the 16-bit R3 address register contains the value $0000.
The repetition of the NORM R3,A instruction normalizes the value in the 56-bit accumu-
lator and stores the resulting number of shifts performed during that normalization pro-
A - 240
NORM
If
else if
else NOP
where E denotes the logical complement of E, and
where
REP #$2F
NORM R3,A
R3
A
E
:
:
denotes the logical AND operator
U
$00:000000:000001
Before Execution
E=1, then ASR D and Rn+1 Rn
Z=1, then ASL D and Rn–1 Rn
Freescale Semiconductor, Inc.
For More Information On This Product,
INSTRUCTION DESCRIPTIONS
$0000
INSTRUCTION SET DETAILS
Normalize Accumulator Iteration
Go to: www.freescale.com
;maximum number of iterations needed
;perform 1 normalization iteration
R3
A
Assembler Syntax:
$00:400000:000000
After Execution
NORM
$FFD2
Rn,D
NORM
MOTOROLA

Related parts for dsp56000