Array and Structure Elements

Prefix an array name with the address-of operator (&) and add the desired offset. The offset can be an expression, number, register name, or variable.

The following examples (using byte, word, and doubleword arrays) show how to do this.

MASM Expression CodeView Equivalents

String[12] BY &String+12 *(&String+12)
aWords[bx+di] WO &aWords+bx+di *(unsigned*)(&aWords+bx+di)
aDWords[bx+4] DW &aDWords+bx+4 *(unsigned long*)(&aDWords+bx+4)