LONGEVEN - Forcing Long-Word alignment

Syntax
  LONGEVEN
  
  
Synonym

None

Description

This directive forces the next instruction to the next long-word address relative to the start of the section. LONGEVEN is an abbreviation for ALIGN 4.

Example

See the following listing for an example where LONGEVEN aligns the next instruction to have its location counter to be a multiple of four (bytes).

Listing: Forcing Long Word Alignment

    2    2   000000 01                     dcb.b 1,1
              ; location counter is not a multiple of 4; three filling

              ; bytes are required.

    3    3   000001 0000 00                longeven

    4    4   000004 0002 0002              dcb.w 2,2

              ; location counter is already a multiple of 4; no filling

              ; bytes are required.

    5    5                                 longeven

    6    6   000008 0202                   dcb.b 2,2

    7    7    ; following is for text section

    8    8                     s27         SECTION 27

    9    9   000000 9D                     nop

              ; location counter is not a multiple of 4; three filling

              ; bytes are required.

   10   10   000001 0000 00                longeven

   11   11   000004 9D                     nop