Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
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.
Client_Ptr_Flat
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
Client_Ptr_Flat LinAddr, Segment, Offset
 
The Client_Ptr_Flat macro converts the specified segment:offset or
selector:offset pair into a linear address.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
LinAddr    Specifies the 32-bit register to receive the linear address.
 
Segment    Specifies the client segment register containing the segment
           address or selector to convert.
 
Offset     Specifies the register containing the address offset to convert.
           If this optional parameter is not given, the macro converts the
           address using address offset 0.
 
Return Value
 
The register specified by LinAddr contains the linear address. The register
contains -1 if the specified selector is invalid.
 
Example
 
This example converts the address Client_DS:Client_DX and places the
corresponding linear address in the EAX register.
 
Client_Ptr_Flat eax, DS, DX
 
See Also
 
Map_Flat