SPRUI03E June 2015 – January 2023
Each line in a TMS320C6000 assembly input file can be empty, a comment, an assembler directive, a macro invocation, or an assembly instruction.
Assembly language source statements can contain five ordered fields (label, mnemonic, unit specifier, operand list, and comment). The general syntax for source statements is as follows:
[label[:]] [||] [[ register ]] mnemonic [unit specifier] [operand list][;comment] |
A label can only be associated with the first instruction in an execute packet (a group of instructions that is to be executed in parallel).
Following are examples of source statements:
two .set 2 ; Symbol Two = 2
Label: MVK two,A2 ; Move 2 into register A2
.word 016h ; Initialize a word with 016h
There is no limit on characters per source statement. Each statement is one logical line of the input file. Use a backslash (\) to indicate continuation of the same instruction/directive across multiple lines.
Follow these guidelines:
A mnemonic cannot begin in column 1 or it will be interpreted as a label. Mnemonic opcodes and assembler directive names without the . prefix are valid label names. Remember to always use whitespace before the mnemonic, or the assembler will think the identifier is a new label definition.
The following sections describe each of the fields.