Assembler/Compiler Tracking of AMODE Bit
5-7
C28x Addressing Modes
5.3 Assembler/Compiler Tracking of AMODE Bit
The compiler will always assume the addressing mode is set to AMODE = 0
and therefore will only use addressing modes that are valid for AMODE = 0.
The assembler can be instructed, via the command line options, to default to
either AMODE = 0 or AMODE = 1. The command line options are:
−
v28
Assumes AMODE = 0 (C28x addressing modes).
−
v28
−
m20
Assumes AMODE = 1 (full C2xLP compatible addressing
modes.
Additionally, the assembler allows directives to be embedded within a file to
instruct the assembler to override the default mode and change syntax check-
ing to the new address mode setting:
.c28_amode
Tells assembler that any code that follows assumes AMODE =
0 (C28x addressing modes).
.lp_amode
Tells assembler that any code that follows assumes AMODE =
1 (full C2xLP compatible addressing modes)
The above directives cannot be nested. The above directives can be used as
follows within an assembly program:
; File assembled using “−v28” option (assume AMODE = 0):
. ; This section of code can only use AMODE = 0
; addressing modes
.
.
.
.
SETC AMODE ; Change to AMODE = 1
.lp_amode ; Tell assembler to check for AMODE = 1 syntax
. ; This section of code can only use AMODE = 1
; addressing modes
.
.
.
.
CLRC AMODE ; Revert back to AMODE = 0
.c28_amode ; Tell assembler to check for AMODE = 1 syntax
. ; This section of code can only use AMODE = 0
; addressing modes
.
.
.
.
; End of file.
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 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...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...