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>create code segment alias descriptor</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        Create Code Segment Alias Descriptor


                 This function  will create  a data  descriptor that has
                 the same  base and  limit as the specified code segment
                 descriptor.

            To Call

                 AX = 000Ah
                 BX = Code segment selector

            Returns

                 If function was successful:
                 Carry flag is clear.
                 AX = New data selector

                 If function was not successful:
                 Carry flag is set.

            Programmer's Notes

                 o    This function  will fail if the selector specified
                      in BX is not a code segment or is invalid.
                 o    Use the Free LDT Descriptor function to deallocate
                      the alias descriptor.
                 o    The code  segment alias  descriptor will not track
                      changes to  the code  descriptor.  In other words,
                      if an  alias descriptor  is created,  and then the
                      base or  limit of the code segment is changed, the
                      alias descriptor's base or limit would not change.

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