Instructions
5-4
5.4
Instructions
Assembly code instructions are either directives or mnemonics:
-
Assembler directives are commands for the assembler (asm6x) that
control the assembly process or define the data structures (constants and
variables) in the assembly language program. All assembler directives
begin with a period, as shown in the partial list in Table 5–1. See the
TMS320C6000 Assembly Language Tools User’s Guide for a complete
list of directives.
-
Processor mnemonics are the actual microprocessor instructions that
execute at runtime and perform the operations in the program. Processor
mnemonics must begin in column 2 or greater. For more information about
processor mnemonics, see the
TMS320C6000 CPU and Instruction Set
User’s Guide.
Figure 5–4 shows the position of the instruction in a line of assembly code.
Figure 5–4. Instructions in Assembly Code
label:
[condition]
instruction
unit
operands ; comments
parallel bars
Table 5–1. Selected TMS320C6x Directives
Directives
Description
.sect “
name ”
Creates section of information (data or code)
.double
value
Reserve two consecutive 32 bits (64 bits) in memory and
fill with double-precision (64-bit) IEEE floating-point rep-
resentation of specified value
.float
value
Reserve 32 bits in memory and fill with single-precision
(32-bit) IEEE floating-point representation of specified
value
.int
value
.long
value
.word
value
Reserve 32 bits in memory and fill with specified value
.short
value
.half
value
Reserve 16 bits in memory and fill with specified value
.byte
value
Reserve 8 bits in memory and fill with specified value
See the
TMS320C6000 Assembly Language Tools User’s Guide for a com-
plete list of directives.