#ALIGN metastatement  

Purpose

Align the next instruction to a boundary.

Syntax

#ALIGN boundary

Remarks

The #ALIGN metastatement is primarily used by advanced assembler programmers to gain ultimate efficiency from critical code sections.

#ALIGN is used to round up the instruction location to a power of two address.  The boundary parameter shown must be a power of two, in the range of 2 through 256.

PowerBASIC inserts NOP instructions into the code section to bring the instruction location up to the desired address.  If the instruction location is already at a multiple of boundary, #ALIGN has no effect.

See also

#OPTIMIZE, ASM, TIX