DOS/32 Advanced DOS Extender - Programmer's Reference

2.06 - DPMI function 0007h - Set Segment Base Address

Sets the 32-bit linear base address field in the descriptor table for the specified segment.


In: AX = 0007h
BX = selector
CX:DX = 32-bit linear base address of segment

if successful:
CF clear

if failed:
CF set
AX = error code

8022h - invalid selector
8025h - invalid linear address (changing the base would cause the descriptor to reference a linear address range outside that allowed for DPMI clients)


a) DOS/32 Advanced DPMI and DPMI 1.0 hosts will automatically reload any segment register which contains the selector specified in register BX.


Copyright Supernar Systems, Ltd. 1996-2005
All Rights Reserved.