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 show how to do this for byte, word, and doubleword arrays.
MASM expression | Debugger expression |
---|---|
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) |