ALIGN

The ALIGN function returns the value of the location counter aligned on a boundary specified by the value of alignValue. The alignValue must be a power of two.

Prototype

  ALIGN(alignValue)

  

  

Note that ALIGN does not update the location counter; it only performs arithmetic. To update the location counter, use an assignment such as:

Example

  . = ALIGN(0x10);    #update location counter to 16 

                      #byte alignment