Jump to content
xisto Community
Sign in to follow this  

A Couple Questions About Protected Mode

Recommended Posts

Hello all. I've been programming in Assembly for about 4 years now but I still have yes to fully understand protected mode. I've read a lot of tutorials on it and even the intel docs on it and read a lot of examples too, but I still have a couple questions I need to get answered in order for me to start using it. My first question is, what is the purpose of overlapping segments? I've read in tutorials that you can overlap segments; does this mean that if you overlap a code segment and a data segment that the overlapped part then becomes a code and data segment? I think that is the answer but it sorta seems like it defeats the whole purpose of protected mode. Or perhaps this means that when you are using that segment it can be part of a segment but ignores the other segments descriptor?My second question is, the segment after the null segment in the GDT or LDT, is that considered segment zero or segment one?My third and final question is this, what is the point of an LDT. I know its the same as a GDT, but the GDT gives you 8192 segments to work with. I've read its used by applications, but how? I have yet to find an example that truly explains it.Thanks for your help.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.