User’s Manual MCUez HC12 Assembler
166 Assembler Directives MOTOROLA
Assembler Directives
8.4 ALIGN — Align Location CounterSyntax: ALIGN <n>
Description: This directive forces the next instruction to a boundary that is a
multiple of <n>, relativeto the start of the section. The value of
<n> must be a positive number between 1 and 32,767. The
ALIGN directive can force alignment to any size. The filling
bytes inserted for alignment purposes are initialized with \0.
ALIGN can be used in code or data sections.
Example: The following example aligns the HEX label to a location,
which is a multiple of 16 (in this case, location 00010 hex).
000000 4849 4748 DC.B "HIGH"
000004 0000 0000 ALIGN 16
000008 0000 0000
00000C 0000 0000
000010 007F HEX: DC.W 127 ; HEX is allocated on
; an address which is
; a multiple of 16.