EasyManuals Logo

Texas Instruments TMS320C28x User Manual

Texas Instruments TMS320C28x
695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #631 background imageLoading...
Page #631 background image
Reference Tables for C2xLP Code Migration Topics
D-15C2xLP Migration Guidelines
Table D10. Code Generation Tools and Syntax Differences
Migration topic C2xLP C28x
1 Mnemonic Source or destination not always
specified.
LACL, source
SACL, destination
Instructions are always of the form
mnemonic destination, source
MOV destination,source
2 Direct addressing syntax
@ symbol
LACL dma MOV ACC, @@dma ; C2xLP mode
MOV ACC, @dma ; 28x mode
@@ means 128 word data page
@ means 64 word data page
3 Indirect address
pointer buffer, ARB
In indirect addressing, Auxiliary
register will be pointed by ARP
register in ST0. ARB is ARP
pointer buffer in ST1.
MAR *,AR2 ; ARP =AR2
LACL *
No ARB equivalent in 28x.
Selected ARx is referenced in the in-
struction itself.
MOV ACC,*AR2
4 New Address pointers
syntax *(0
BLDD #4545h,RegA MOV @REGA, *(0:0x4545)
5 Repeat instructions
syntax change ||
No additional syntax
RPT #5
NOP
Uses || syntax with repeat instruc-
tions
RPT #5
|| NOP
6 Reserved register names
Application code should
not use these reserved
words
ST0, ST1, IFR, IMR, GREG ST0, ST1, AH, AL, PH, PL,T, TL,
XAR0, XAR1, XAR2, XAR3, XAR4,
XAR5, XAR6, XAR7, DP, ST1,
DBGSTAT, IER, PC, RPC
7 Increment/Decrement
syntax change
MAR *,AR2
LACL *+
.
LACL *
MOV ACC, *AR2++
..
MOV ACC, *AR2−−
8 Shift syntax change LACL dma, 4 MOV ACC,dma <<4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320C28x and is the answer not in the manual?

Texas Instruments TMS320C28x Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320C28x
CategoryProcessor
LanguageEnglish

Related product manuals