ADDROFF directive

Syntax

[ADDROFF,n]

Similar to [SIZEOF]

Causes the base address of the next defined object to be adjusted.

For example, if there is a word value defined:

1USERMSG1 DS.W 1 ;[User Message,,,,r,,,,H,]

A 8bit alias of the 2nd byte may be added:

1USERMSG1 DS.W 1 ;[User Message,,,,r,,,,H,]
2;[SIZEOF,1][ADDROFF,1][User Message B2,,,,r,,,,H,]

Following use of the ADDROFF override to create an object, the override is reset. The override also does not survive until the next source code definition (e.g. the next DS.B).