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.