You are on page 1of 2

DSP Applications Using C and the TMS320C6x DSK.

Rulph Chassaing Copyright 2002 John Wiley & Sons, Inc. ISBNs: 0-471-20754-3 (Hardback); 0-471-22112-0 (Electronic)

A
TMS320C6x Instruction Set
A.1 INSTRUCTIONS FOR FIXED- AND FLOATING-POINT OPERATIONS Table A.1 shows a listing of the instructions available for the C6x processors. The instructions are grouped under the functional units used by these instructions. These instructions can be used with both xed- and oating-point C6x processors. A.2 INSTRUCTIONS FOR FLOATING-POINT OPERATIONS Table A.2 shows a listing of additional instructions available with the oating-point processor C67x. These instructions handle oating-point type of operations and are grouped under the functional units used by these instructions (see also Table A.1). REFERENCES
1. 2. C6000 CPU and Instruction Set, SPRU189F, Texas Instruments, Dallas, TX, 2000. TMS320 TMS320C6000 Programmers Guide, SPRU198D, Texas Instruments, Dallas, TX, 2000.

276

TMS320C6x Instruction Set

277

TABLE A.1
.L Unit ABS ADD ADDU AND CMPEQ CMPGT CMPGTU CMPLT CMPLTU LMBD MV NEG NORM NOT OR SADD SAT SSUB SUB SUBU SUBC XOR ZERO

Instructions for Fixed- and Floating-Point Operations


.M Unit MPY MPYH MPYHL MPYHLU MPYHSLU MPYHSU MPYHU MPYHULS MPYHUS MPYLH MPYLHU MPYLSHU MPYLUHS MPYSU MPYU MPYUS SMPY SMPYH SMPYHL SMPYLH .S Unit ADD ADDK ADD2 AND B disp B IRPa B NRPa B reg CLR EXT EXTU MV MVCa MVK MVKH MVKLH NEG NOT OR SET SHL SHR SHRU SSHL SUB SUBU SUB2 XOR ZERO .D Unit ADD ADDAB ADDAH ADDAW LDB LDBU LDH LDHU LDW LDB (15-bit offset)b LDBU (15-bit offset)b LDH (15-bit offset)b LDHU (15-bit offset)b LDW (15-bit offset)b MV STB STH STW STB (15-bit offset)b STH (15-bit offset)b STW (15-bit offset)b SUB SUBAB SUBAH SUBAW ZERO

S2 only.

D2 only.

Source: Courtesy of Texas Instruments [1,2].

TABLE A.2
.L Unit ADDDP ADDSP DPINT DPSP DPTRUNC INTDP INTDPU INTSP INTSPU SPINT SPTRUNC SUBDP SUBSP

Instructions for Floating-Point Operations


.M Unit MPYDP MPYI MPYID MPYSP .S Unit ABSDP ABSSP CMPEQDP CMPEQSP CMPGTDP CMPGTSP CMPLTDP CMPLTSP RCPDP RCPSP RSQRDP RSQRSP SPDP .D Unit ADDAD LDDW

Source: Courtesy of Texas Instruments [1,2].

You might also like