- 7.2.7. -
Table of Contents
7. PMODE/W MSDOS Extender
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.7. Function 0008 - Set Segment Limit
7.2.7. Function 0008 - Set Segment
Limit
PMODE/W API
This function Sets the limit field in the descriptor for the specified segment.
In:
AX = 0008h
BX = selector
CX:DX = 32bit segment limit
Out:
if successful:
carry flag clear
if failed:
carry flag set
Notes:
The value supplied to the function in CX:DX is the byte length of the segment-1.
Segment limits greater than or equal to 1M must be page aligned. That is, they
must have the low 12 bits set.
This function has an implicit effect on the "G" bit in the segment's
descriptor. Client programs must use the LSL instruction to query the limit for
a descriptor.
Under DPMI 1.0/VCPI/XMS/raw, any segment register which contains the selector
specified in register BX will be reloaded. DPMI 0.9 may do this, but it is not
guaranteed. We hope you have enough sense not to try to modify your current CS
or SS descriptor.
- 7.2.7. -