Page 1 of 1

LGDT Instruction

Posted: Wed Nov 21, 2007 12:29 pm
by crazygray
Would someone clarify how to use the lgdt instruction because I am having problems with it in my code.

Posted: Wed Nov 21, 2007 12:34 pm
by neon
LGDT is just used to load the address of the GDT base pointer into the GDTR register.

If you like, post your current code and error information and we may be able to spot the problem.

Posted: Wed Nov 21, 2007 1:02 pm
by crazygray
Never mind It was a stupid mistake. :oops: I fixed it though. :D :D

Posted: Wed Nov 21, 2007 6:58 pm
by iammisc
You do realize that you've asked two questions now both of which you have found the answer to by just thinking.

Next time try asking questions *after* trying to fix it by yourself.

Posted: Wed Nov 21, 2007 7:27 pm
by crazygray
I do that all the time actually If I say the question out loud it comes to me easier.

Posted: Wed Nov 21, 2007 10:45 pm
by LordMage
So your saying it out loud in type??? Just kidding, I have the same problem. I find a lot of answers that have been bugging my for hours by asking a stupid question.