Texas Instruments TMS320C3x User Manual

Page 14

Advertising
background image

Contents

xv

Contents

5.3.3

Single-Precision Floating-Point Format

5-7

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3.4

Extended-Precision Floating-Point Format

5-8

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3.5

Determining the Decimal Equivalent of a TMS320C3x
Floating-Point Format

5-9

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.3.6

Conversion Between Floating-Point Formats

5-12

. . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4

Floating-Point Conversion (IEEE Std. 754)

5-14

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.1

Converting IEEE Format to 2s-Complement TMS320C3x
Floating-Point Format

5-15

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.2

Converting 2s-Complement TMS320C3x Floating-Point Format
to IEEE Format

5-21

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5

Floating-Point Multiplication

5-26

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6

Floating-Point Addition and Subtraction

5-32

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.7

Normalization Using the NORM Instruction

5-37

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.8

Rounding (RND Instruction)

5-39

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.9

Floating-Point to Integer Conversion (FIX Instruction)

5-41

. . . . . . . . . . . . . . . . . . . . . . . . . . .

5.10

Integer to Floating-Point Conversion (FLOAT Instruction)

5-43

. . . . . . . . . . . . . . . . . . . . . . .

5.11

Fast Logarithms on a Floating-Point Device

5-44

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.11.1 Example of Fast Logarithm on a Floating-Point Device

5-45

. . . . . . . . . . . . . . . . . .

5.11.2 Points to Consider

5-47

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6

Addressing Modes

6-1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Operation, encoding, and implementation of addressing modes; format descriptions;
system stack management.

6.1

Addressing Types

6-2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.2

Register Addressing

6-3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.3

Direct Addressing

6-4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.4

Indirect Addressing

6-5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.5

Immediate Addressing

6-18

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.6

PC-Relative Addressing

6-19

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.7

Circular Addressing

6-21

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.8

Bit-Reversed Addressing

6-26

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.9

Aligning Buffers With the TMS320 Floating-Point DSP Assembly Language Tools

6-28

. . . .

6.10

System and User Stack Management

6-29

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.10.1 System-Stack Pointer

6-29

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.10.2 Stacks

6-30

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6.10.3 Queues

6-31

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

Program Flow Control

7-1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Software control of program flow with repeat modes and branching; interlocked operations;
reset and interrupts.

7.1

Repeat Modes

7-2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7.1.1

Repeat-Mode Control Bits

7-3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7.1.2

Repeat-Mode Operation

7-3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7.1.3

RPTB Instruction

7-4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertising