Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Philip
Member
Posts: 59 Joined: Thu Mar 06, 2008 11:37 pm
Location: Singapore
Post
by Philip » Fri Mar 07, 2008 9:31 am
i found from the internet the sequence for
switching from real mode to protected mode is like this:
1) setup GDT
2) set PE bit in CR0
3) jmp far
but i still don't know how to code
could anybody show me a sample code please?
Philip
Member
Posts: 59 Joined: Thu Mar 06, 2008 11:37 pm
Location: Singapore
Post
by Philip » Fri Mar 07, 2008 9:49 am
thanks, quite useful
JamesM
Member
Posts: 2935 Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:
Post
by JamesM » Fri Mar 07, 2008 10:05 am
It's working now - not sure what it was but was seemingly temporary
StephanvanSchaik
Member
Posts: 127 Joined: Sat Sep 29, 2007 5:43 pm
Location: Amsterdam, The Netherlands
Post
by StephanvanSchaik » Fri Mar 07, 2008 11:04 am
Philip, why not bother searching around on the osdev.org wiki? There stands everything you need for this.
www.brokenthorn.com goes even more into the thing you want to do.
Regards, Stephan J.R. van Schaik.
Philip
Member
Posts: 59 Joined: Thu Mar 06, 2008 11:37 pm
Location: Singapore
Post
by Philip » Fri Mar 07, 2008 9:31 pm
i found out this file,
it is simply switch to protected mode and switch back to real mode
should be useful for who is getting familiar with protected mode
like me
Attachments
PMODE.ASM
(3.71 KiB) Downloaded 26 times