Keil Logo

EVEN Assembler Statement

Arguments
EVEN
Description

The EVEN statement sets the location counter to the next even address (if the current location counter is odd). This can be used to ensure that the next statement is aligned on a word boundary. The assembler creates a 1-byte gap if necessary.

The content of the gap byte is undefined.
Example
D_ABS   SECTION DATA PUBLIC 'DRAM'
  V1    DSB     1
  V2    DSW     1    ; Alignment Warning will be Generated
  V3    DSB     1
        EVEN
  V4    DSW     1
D_ABS   ENDS

D_BIT   SECTION DATA BITADDRESSABLE
  WRD1  DSW     1
  BRD1  DSB     1
        EVEN
  WRD2  DSW     1
D_BIT   ENDS

        END
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.