In-built Functions
The following in-built functions operate in a single address expression
operand:
SEG
Returns the segment or selector portion
of an address that resolves to either a &segment:offset or #selector:offset
form.
OFF
Returns
the offset of an address the resolves to either a &segment:offset
or #selector:offset form.
BY
Returns
one byte from an address location.
WO
Returns
one word from an address location.
DW
Returns
one double word from an address location.
POI
Returns one double word far pointer (selector:offset
or segment:offset address) from an address location. The low order word
returned is treated as the offset. The high order word returned is treated
as a selector or segment based depending on the default addressing mode.
See the D command for more information.
PORT
Returns one
byte from an 8-bit I/O port address.
WPROT
Returns
one word from a 16-bit I/O port address.
Example:
DD %(dw(%7abcde0+10))
Display the storage whose linear address is at location %7abcdf0.
[Back: Unary Operators]
[Next: Address Separators and Address Expressions]