Reference Tables for C2xLP Code Migration Topics
Table D−10. Code Generation Tools and Syntax Differences (Continued)
C28xC2xLPMigration topic
9 Number radix usage x .set 09 ;Assembler
;accepts
;this as
;decimal 9
x .set 9
Avoid leading zeros, else the assem-
bler will be use this as octal number.
10 Order of precedence in ex-
pressions – Syntax change
Expressions in assembly state-
ments do not require parenthesis.
x .set A<<B = C>>D
Expressions in assembly statements
do require parenthesis.
x .set (A<<B = C>>D)
11 Tools Directives .mmregs ; reserved register use
.port
.globl
not applicable
not applicable
.global
12 Macros Useful in coding style Useful in coding style
All C2xLP Macros are not directly
used
Convert them individually to 28x
mode.
13 Assembler options −v2xx −m20, −v28