Section 3: Assembler
169
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
.align — Align Location Counter
Syntax
.align { 1 | 2 | 4 | 8 }
Description
The .align directive aligns the current section’s location counter to the nearest
multiple of the specified byte count. Any required padding is filled with the current
fill value (see .opt fillval).
Example
.align 2
.word 0x4000
.ascii — Generate Integer Data (Byte)
Syntax
.ascii
operand [, operand ] . . .
Description
operand
Specifies an integer expression.
The .ascii directive generates byte integer data. The values of the specified
operands are placed in successive bytes beginning at the current location in the
current section. This directive is a synonym for the .byte directive. For additional
information, see section 3.3.6.2 Character Constants.
Examples
.ascii "Hello!\0"
; 4865 6c6c 6f21 00
.ascii 'a'
; 61
.ascii %1111,017,15,0xf
; 0f0f 0f0f
.ascii 16 * 4 + 3
; 43
Each of the above examples is shown with the code sequence (in hexadecimal)
that it generates.