Syntax
expression 1 [ expression 2 ]
Description
The index operator indicates addition with a scale factor. It is similar to the addition operator. expression 1 can be any expression which has array type. expression 2 must be a constant expression. The assembler multiplies expression 2 by the size of the array element type and adds it to expression 1.
Example
ARR DV LONG[4] ; an array of four 32-bit values W3 EQU ARR[3] ; set W4 to the address ARR + 3*(SIZE LONG) ; which is ARR+12