
.byte, .int., .long, .word
Initialize a 32-bit Integer
6-16
Syntax
.byte
value
1
[
,..., value
n
]
.int
value
1
[
,..., value
n
]
.long
value
1
[, ... ,
value
n
]
.word
value
1
[
, ... , value
n
]
Description
These directives place one or more values into the current section.
-
The .byte directive places 8-bit values into consecutive words in the cur-
rent section. The
value must be an expression that evaluates to a number
within –128 and 127. The upper 24 bits are 0.
-
The .int directive places 16-bit values into consecutive words in the cur-
rent section. The
value must be an expression that evaluates to a number
within the range of –32768 and 32767. The upper 16 bits are always 0.
-
The .long and .word directives place 32-bit values into consecutive words
in the current section. The
value is an expression that the assembler eval-
uates and treats as a 32-bit signed number.
A
value must be absolute. You can use as many values as fit on a single line
(80 characters). If you use a label, it points to the first word that is initialized.
Example 1
Here is an example of these directives.
.word
’A’, ’B’, ’C’, 1, 0x1234, 0320C31h
.int
111b, 1<<4
.long
0x87654321, 1<<31
.byte
0x20, ’A’, ’B’, ’C’
.hword
32765,l –32768, –2, 2
Summary of Contents for TMS320C3 Series
Page 1: ...TMS320C3x DSP Starter Kit User s Guide...
Page 18: ...1 4...
Page 28: ...2 10...
Page 82: ...5 18...
Page 140: ...Communications Kernel Source Code A 12...
Page 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 146: ...Schematics B 6...
Page 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 148: ...Schematics B 8...
Page 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Page 150: ...Schematics B 10...
Page 154: ...B 14...
Page 160: ...C 6...
Page 166: ...Index 6...