Translation Modes
11-5
Mnemonic-to-Algebraic Translator Description
11.4 Translation Modes
The translator runs in one of the following modes:
Literal
Keeps the original mnemonic instruction, commented out, fol-
lowed by the translated instruction
Expansion
Expands and preprocesses macro invocations and replaces
substitution symbols
11.4.1 Literal Mode (–t Option)
When running in the default literal mode (–t option), the translator translates
instructions without any preprocessing. The translator does not process
macros, nor does it expand substitution symbols. When the translator does not
recognize a macro invocation or instruction, it prints a message to standard
output and does not translate the code. The translator creates a file with the
same name as the assembler source file and an extension of
cnv.
Figure 11–2.Literal Mode Process
menm2alg filename.asm
Command:
Translator
Converted file:
filename.cnv
Translation:
11.4.2 About Symbol Names in Literal Mode
In literal mode, the translator treats symbol names defined by .asg as labels
and not as the value they represent. In the following example, the source code
is translated as shown, with sym treated as a data memory address:
Example 11–1. Treatment of Symbol Names in Literal Mode
(a) Source code:
sym
.asg
*AR2
LD
sym,B
(b) Converted code:
sym
.asg *AR2
B = @sym
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......