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.
PTR
◄Operator Summary► ◄Summary► ◄Example►
──────────────────────────────────────────────────────────────────────────────
Syntax: type PTR expression
Treats expression as having the specified type. Used with forward
references to define explicitly what size or distance a reference has.
Also used to enable instructions to access variables that would
otherwise generate errors.
The PTR keyword can also appear in the argument list of a PROC
statement, to indicate that the parameter is a pointer variable.
type For memory operands, can be BYTE, WORD, DWORD, QWORD,
TBYTE. For labels, can be NEAR, FAR, or PROC.
expression Any operand.
See Also: TYPE, THIS
-♦-