222
Section 3: Assembler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
DC — Generate Integer / Floating-Point Data
Syntax
DC[
.size] operand [, operand ] . . .
Description
size
Specifies the size and type of the data. The legal size qualifiers
are shown below; the default is
W
.
B
Byte Integer (1 byte)
W
Word Integer (2 bytes)
L
Long-word Integer (4 bytes)
S
TI BCD floating point (10 bytes)
D
TI BCD floating point (10 bytes)
X
Extended-precision Real (not supported)
P
Packed decimal Real (not supported)
operand
Specifies either an integer or floating-point value. Forward
references are not allowed when specifying floating-point data.
The DC directive can be used to generate both integer and floating-point data.
The values of the specified operands are placed in succession beginning at the
current location in the current section. Word alignment of the data is forced
except when
size is
B
. For additional information, see section 3.3.6.2 Character
Constants.
Examples
DC.B 'abcd'
; 6162 6364
DC.L $FF<<24
; FF00 0000
DC.D 2.71828182846
; 4000 2718 2818 2846 0000
Each of the above examples is shown with the sequence of words (in
hexadecimal) that it generates.