Previous: Function 0007 - Set Segment Base Address To the Table of Content Next: Function 0009 - Set Descriptor Access Rights

- 7.2.7 -
PMODE/W MSDOS Extender
PMODE/W Supported DPMI INT 31h functions

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.


Previous: Function 0007 - Set Segment Base Address To the Table of Content Next: Function 0009 - Set Descriptor Access Rights
Function 0007 - Set Segment Base Address Table of Content Function 0009 - Set Descriptor Access Rights

- 7.2.7 -