Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Dos Protected Mode Interface - <b>set descriptor</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        Set Descriptor


                 This function  copies an eight byte buffer into the LDT
                 entry for a specified descriptor.

            To Call

                 AX = 000Ch
                 BX = Selector
                 ES:(E)DI =  Pointer to  an 8 byte  buffer that contains
                      descriptor

            Returns

                 If function was successful:
                 Carry flag is clear.

                 If function was not successful:
                 Carry flag is set.

            Programmer's Notes

                 o    This function  will fail if the selector specified
                      in BX is invalid.
                 o    Your program  should only  modify descriptors that
                      were   allocated    through   the   Allocate   LDT
                      Descriptors function.
                 o    32-bit programs  must use  ES:EDI to  point to the
                      buffer.  16-bit programs should use ES:DI.
                 o    The type byte (byte 5) follows the same format and
                      restrictions as  the access  rights/type parameter
                      (in CL)  to Set  Descriptor Access  Rights.    The
                      extended type  byte  (byte  6)  follows  the  same
                      format and  restrictions as  the  extended  access
                      rights/type parameter  (in CH)  to Set  Descriptor
                      Access Rights, except the limit field may have any
                      value,  except   the  low  order  4  bits  (marked
                      "reserved") are  used to  set the  upper 4 bits of
                      the descriptor's limit.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson