Texas Instruments TMS320C3x User Manual
Page 14

Contents
xv
Contents
5.3.3
Single-Precision Floating-Point Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.4
Extended-Precision Floating-Point Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.5
Determining the Decimal Equivalent of a TMS320C3x
Floating-Point Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.6
Conversion Between Floating-Point Formats
. . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4
Floating-Point Conversion (IEEE Std. 754)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4.1
Converting IEEE Format to 2s-Complement TMS320C3x
Floating-Point Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4.2
Converting 2s-Complement TMS320C3x Floating-Point Format
to IEEE Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.5
Floating-Point Multiplication
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.6
Floating-Point Addition and Subtraction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.7
Normalization Using the NORM Instruction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.8
Rounding (RND Instruction)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.9
Floating-Point to Integer Conversion (FIX Instruction)
. . . . . . . . . . . . . . . . . . . . . . . . . . .
5.10
Integer to Floating-Point Conversion (FLOAT Instruction)
. . . . . . . . . . . . . . . . . . . . . . .
5.11
Fast Logarithms on a Floating-Point Device
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.11.1 Example of Fast Logarithm on a Floating-Point Device
. . . . . . . . . . . . . . . . . .
5.11.2 Points to Consider
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
Addressing Modes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operation, encoding, and implementation of addressing modes; format descriptions;
system stack management.
6.1
Addressing Types
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2
Register Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3
Direct Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4
Indirect Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5
Immediate Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.6
PC-Relative Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.7
Circular Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8
Bit-Reversed Addressing
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.9
Aligning Buffers With the TMS320 Floating-Point DSP Assembly Language Tools
. . . .
6.10
System and User Stack Management
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.10.1 System-Stack Pointer
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.10.2 Stacks
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.10.3 Queues
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
Program Flow Control
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Software control of program flow with repeat modes and branching; interlocked operations;
reset and interrupts.
7.1
Repeat Modes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1.1
Repeat-Mode Control Bits
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1.2
Repeat-Mode Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1.3
RPTB Instruction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .