Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Address Functions
◄Up► ◄Contents► ◄Index► ◄Back►
─────Address Functions──────────────────────────────────────────────────────
LOCNEAR, LOCFAR, and LOC return the machine address of
the variable passed.
The following list shows how the address is returned for different
types of arguments:
Argument Return Value
Expression, A temporary variable is created
function call, to hold the argument or its result. The
or constant address of the temporary variable is
then returned.
All other arguments The machine address of the argument is
returned.
LOCNEAR can only be used with NEAR procedures and with objects
in the default data segment. LOC returns either a near or
a far pointer, depending on the memory model used to compile.
-♦-