◄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 ♦