include vmm.inc
VMMCall _SelectorMapFlat, <VM, Selector, flags>
cmp eax, 0FFFFFFFFh ; 0FFFFFFFFh if error
je error
mov [Address], eax ; base address of selector
Returns the base linear address of segment identified by the specified GDT or LDT selector. Uses EAX, ECX, EDX, and Flags.
The address mapper uses this service to convert pointers, consisting of selector and offset pairs, to flat-model linear addresses suitable for use as parameters for the _LinMapIntoV86 service.
This service ignores the high 16 bits of the Selector parameter; the 80386 CPU often sets these bits to somewhat random values when doubleword operations are performed on segment registers.
_LinMapIntoV86