Reference Tables for C2xLP Code Migration Topics
D-15
C2xLP Migration Guidelines
Table D
−
10. 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
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...