Compatibility With the TMS320C1x/C2x/C2xx/C5x Assembler Directives
4-7
Assembler Directives
4.2
Compatibility With the TMS320C1x/C2x/C2xx/C5x Assembler Directives
This section explains how the TMS320C54x assembler directives differ from
the TMS320C1x/C2x/C2xx/C5x assembler directives.
-
The ’C54x .long and .float directives place the
most significant word of the
value at the lower address, while the ’C1x/C2x/C2xx/C5x assembler direc-
tives place the
least significant word at the lower address. Also, the ’C54x
.long and .float directives automatically align the SPC on an even word
boundary, while the ’C1x/C2x/C2xx/C5x assembler directives do not.
-
Without arguments, the ’C54x and the ’C1x/C2x/C2xx/C5x assemblers
both align the SPC at the next 128-word boundary. However, the ’C54x
.align directive also accepts a constant argument, which must be a power
of 2, and this argument causes alignment of the SPC on that word bound-
ary. The .align directive for the ’C1x/C2x/C2xx/C5x assembler does not
accept this constant argument.
-
The .field directive for the ’C54x packs fields into words starting at the
most
significant bit of the word. The ’C1x/C2x/C2xx/C5x assembler .field direc-
tive places fields into words starting at the
least significant bit of the word.
-
The .field directive for the ’C54x handles values of 1 to 32 bits, contrasted
with the ’C1x/C2x/C2xx/C5x assembler which handles values of 1 to 16
bits. With the ’C54x assembler, objects that are 16 bits or larger start on
a word boundary and are placed with the most significant bits at the lower
address.
-
The ’C54x .bss and .usect directives have an additional
flag called the
alignment flag which specifies alignment on an even word boundary. The
’C1x/C2x/C2xx/C5x .bss and .usect directives do not use this flag.
-
The .string directive for the ’C54x initializes one character per word, unlike
the ’C1x/C2x/C2xx/C5x assembler .string, which packs two characters
per word. The new .pstring directive packs two characters per word, as the
former .string did.
-
The following directives are new with the ’C54x assembler and are not
supported by the ’C1x/C2x/C2xx/C5x assembler:
Directive
Usage
.xfloat
Same as .float without automatic alignment
.xlong
Same as .long without automatic alignment
.pstring
Same as .string, but packs two chars/word
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......