Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

defining GDT and LDT in MASM

2 views
Skip to first unread message

Craig Joyce

unread,
Jan 21, 2002, 3:30:46 PM1/21/02
to
Hi! I am using MASM 6.15 (or close).

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

Ozone Radical

unread,
Jan 24, 2002, 6:57:25 PM1/24/02
to
I like your E-mail ID, so here's some info:

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>...

0 new messages