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
SPCX0
SPCR0
DTX0
DRX0
TGCR0
TCNT0
TPR0
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.
.set
0x808040
; Serial port 0 global control register
.set
0x808042
; Serial port 0 FSX/DX/CLKX control register
.set
0x808043
; Serial port 0 FSR/DR/CLKR control register
.set
0x808048
; Serial port 0 data transmit register
.set
0x80804c
; Serial port 0 data receive register
.set
0x808020
; Timer 0 global control register
.set
0x808024
; Timer 0 counter register
.set
0x808028
; Timer 0 period register
Creating DSK Assembler Source Files
Using the DSK Assembler
5-7
Need help?
Do you have a question about the TMS320C3 Series and is the answer not in the manual?