I am trying to write code to enter protected mode in intel x86
processors (Pentium II, III etc.)
Could you please tell me how do I go about defining the GDT and LDT in
MASM? I want to generate the table contents and determine the location
of the GDT.
If you could write show a snippet of code, it will be appreciated.
Thanks
You can determine the location of the GDT yourself, (by default, its
at 0). The limit of the GDT upon reboot or reset is 0FFFFh, so you may
not have to make any changes.
Use the statement LGDT to loat the GDTR to point to the Base of the
GDT.
The syntax of LGDT is LGDT descriptor, where descriptor is 48 bits
long.
naught...@yahoo.com (Craig Joyce) wrote in message news:<7e5f4e39.02012...@posting.google.com>...