
Creating DSK Assembler Source Files
5-7
Using the DSK Assembler
Commenting your source file
A comment can begin in any column and extends to the end of the source line.
A comment can contain any ASCII character, including blanks. Comments are
printed in the assembly source listing, but they do not affect the assembly.
You can comment your source file in one of two ways. The most common way
is to place a semicolon anywhere on the line you want to comment. All text
placed after the semicolon is ignored by the DSK assembler. For example:
* Memory map register locations
SGR0 .set 0x808040 ; Serial port 0 global control register
SPCX0 .set 0x808042 ; Serial port 0 FSX/DX/CLKX control register
SPCR0 .set 0x808043 ; Serial port 0 FSR/DR/CLKR control register
DTX0 .set 0x808048 ; Serial port 0 data transmit register
DRX0 .set 0x80804c ; Serial port 0 data receive register
TGCR0 .set 0x808020 ; Timer 0 global control register
TCNT0 .set 0x808024 ; Timer 0 counter register
TPR0 .set 0x808028 ; Timer 0 period register
The second way to comment your source file is to use an asterisk
in column
1 of your code.
If the asterisk is not in column 1, the assembler assumes it is part of your code
and can generate an error.
A source statement that contains only a comment is valid.
Содержание TMS320C3 Series
Страница 1: ...TMS320C3x DSP Starter Kit User s Guide...
Страница 18: ...1 4...
Страница 28: ...2 10...
Страница 82: ...5 18...
Страница 140: ...Communications Kernel Source Code A 12...
Страница 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 146: ...Schematics B 6...
Страница 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 148: ...Schematics B 8...
Страница 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 150: ...Schematics B 10...
Страница 154: ...B 14...
Страница 160: ...C 6...
Страница 166: ...Index 6...