Texas Instruments TMS320C67X/C67X+ DSP User Manual
Page 6
Contents
vi
SPRU733
Contents
3
Instruction Set
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Describes the assembly language instructions of the TMS320C67x DSP. Also described are
parallel operations, conditional operations, resource constraints, and addressing modes.
3.1
Instruction Operation and Execution Notations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2
Instruction Syntax and Opcode Notations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3
Overview of IEEE Standard Single- and Double-Precision Formats
. . . . . . . . . . . . . . . .
3.4
Delay Slots
3.5
Parallel Operations
3.5.1
Example Parallel Code
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5.2
Branching Into the Middle of an Execute Packet
. . . . . . . . . . . . . . . . . . . . . . . .
3.6
Conditional Operations
3.7
Resource Constraints
3.7.1
Constraints on Instructions Using the Same Functional Unit
3.7.2
Constraints on the Same Functional Unit Writing in the
Same Instruction Cycle
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.3
Constraints on Cross Paths (1X and 2X)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.4
Constraints on Loads and Stores
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.5
Constraints on Long (40-Bit) Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.6
Constraints on Register Reads
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.7
Constraints on Register Writes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7.8
Constraints on Floating-Point Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.8
Addressing Modes
3.8.1
Linear Addressing Mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.8.2
Circular Addressing Mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.8.3
Syntax for Load/Store Address Generation
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.9
Instruction Compatibility
3.10 Instruction Descriptions
ABS (Absolute Value With Saturation)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ABSDP (Absolute Value, Double-Precision Floating-Point)
. . . . . . . . . . . . . . . . . . . . . .
ABSSP (Absolute Value, Single-Precision Floating-Point)
. . . . . . . . . . . . . . . . . . . . . . .
ADD (Add Two Signed Integers Without Saturation)
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDAB (Add Using Byte Addressing Mode)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDAD (Add Using Doubleword Addressing Mode)
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDAH (Add Using Halfword Addressing Mode)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDAW (Add Using Word Addressing Mode)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDDP (Add Two Double-Precision Floating-Point Values)
. . . . . . . . . . . . . . . . . . . . .
ADDK (Add Signed 16-Bit Constant to Register)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDSP (Add Two Single-Precision Floating-Point Values)
. . . . . . . . . . . . . . . . . . . . . .
ADDU (Add Two Unsigned Integers Without Saturation)
. . . . . . . . . . . . . . . . . . . . . . . .
ADD2 (Add Two 16-Bit Integers on Upper and Lower Register Halves)
AND (Bitwise AND)
B (Branch Using a Displacement)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B (Branch Using a Register)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B IRP (Branch Using an Interrupt Return Pointer)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B NRP (Branch Using NMI Return Pointer)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .