MASK
and WIDTH
.
EQ
, GE
, GT
, LE
, LT
, and NE
.
OFFSET
, SEGMENT
, and segment override.
HIGH
, HIGHWORD
, LENGTH
, LOW
, LOWWORD
, PTR
, SHORT
, SIZE
, THIS
, and TYPE
.
OFFSET
Operator
OFFSET
operator returns the offset of a data label.
The offset represents the distance, in bytes, of the label from the beginning of the data segment.
mov ax, X+2 |
mov ax, [OFFSET X + 2] |
|
.data X SDWORD 12345678h .code mov eax, 0 mov ax, X+2 call WriteHex |
.data X SDWORD 12345678h .code mov eax, 0 mov ebx, OFFSET X + 2 mov ax, [ebx] call WriteHex |
.data X SDWORD 12345678h .code mov eax, 0 mov ebx, OFFSET X mov ax, [ebx + 2] call WriteHex |
Output | Output | Output |