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
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.