Examples

Number STRUC
  One  DB 1
  Two  DW 2
Number ENDS

  ; The following line is only allowed in MASM 5.10 mode (OPTION OLDSTRUCTS)

  MOV AX,[BX].Two       ; BX points to a "Number", get the "Two" entry

  ; In other modes, "Two" is private to the "Number" structure type, so
  ; one of the following methods are required:

  MOV AX,(Number PTR [BX]).Two         ; Explicit override
  MOV AX,[BX] + Number.Two             ; Fully qualified reference
  ASSUME BX:Number                     ; Associate BX with "Number"
  MOV AX,[BX].Two                      ;   then original syntax is allowed


[Back: Constraints]
[Next: Unary Arithmetic Expression]