Table D−10. Code Generation Tools and Syntax Differences
Migration topic
1
Mnemonic
2
Direct addressing syntax
−@ symbol
3
Indirect address
pointer buffer, ARB
4
New Address pointers
syntax − *(0
5
Repeat instructions
syntax change − ||
6
Reserved register names
Application code should
not use these reserved
words
7
Increment/Decrement
syntax change
8
Shift syntax change
Reference Tables for C2xLP Code Migration Topics
C2xLP
Source or destination not always
specified.
LACL, source
SACL, destination
LACL dma
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 *
BLDD #4545h,RegA
No additional syntax
RPT #5
NOP
ST0, ST1, IFR, IMR, GREG
MAR *,AR2
LACL *+
....
LACL *−
LACL dma, 4
C28x
Instructions are always of the form
mnemonic destination, source
MOV destination,source
MOV ACC, @@dma ; C2xLP mode
MOV ACC, @dma ; 28x mode
@@ − means 128 word data page
@ − means
64 word data page
No ARB equivalent in 28x.
Selected ARx is referenced in the in-
struction itself.
MOV ACC,*AR2
MOV @REGA, *(0:0x4545)
Uses || syntax with repeat instruc-
tions
RPT #5
|| NOP
ST0, ST1, AH, AL, PH, PL,T, TL,
XAR0, XAR1, XAR2, XAR3, XAR4,
XAR5, XAR6, XAR7, DP, ST1,
DBGSTAT, IER, PC, RPC
MOV ACC, *AR2++
.....
MOV ACC, *AR2−−
MOV ACC,dma <<4
C2xLP Migration Guidelines
D-15
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?