<<< Specifying Operand Size | Index | Scaling Factors >>> |
The assembler allows a variety of syntaxes for indirect memory operands.
However, all registers must be inside brackets.
Each register can be enclosed in its own pair of brackets, or in the same pair of brackets separated by a plus operator (+).
The following variations are legal and assemble the same way:
mov ax, table[bx][di] mov ax, table[di][bx] mov ax, table[bx+di] mov ax, [table+bx+di] mov ax, [bx][di]+table
All of these statements move the value in table indexed by BX+DI into AX.
<<< Specifying Operand Size | Index | Scaling Factors >>> |