4.9.1 Align Directive
The ALIGN
directive aligns whatever is following, data
storage or code etc., to the specified offset boundary within the current psect. The
boundary is specified as a number of bytes following the directive.
For example, to align output to a 2-byte (even) address within a psect, the following could be used.
ALIGN 2
Note that what follows will only begin on an even absolute address if the psect begins on an even address; i.e., alignment is done within the current psect. See 4.9.47.16 Reloc Flag for psect alignment.
The ALIGN
directive can also be used to ensure that a
psect’s length is a multiple of a certain number. For example, if the above
ALIGN
directive was placed at the end of a psect, the psect would have
a length that was always an even number of bytes long.