DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   32 BIt Flat Real mode (http://www.daniweb.com/forums/thread38649.html)

amitkumar2982 Jan 25th, 2006 4:09 am
32 BIt Flat Real mode
 
Hey Guys,

Please help me. I have been trying to code this from the past 2 years.

I wish to code the Flat real mode by switching to Protected mode and then switch back to the real mode. I want to do this on a P4 1.8GHz Machine with a Intel 845GVSR mother board. I also wish to do this without using the DOS memory managers(Himem.sys or others).

The code made by me halt the machine. Please provide me some alternative to do this. Please I am desparate. Please let me know the code either in C or in Nasm.

Ancient Dragon Jan 25th, 2006 8:55 am
Re: 32 BIt Flat Real mode
 
you can't use flat memory model in real mode because segmentation is different. You can use a dos extender, such as Pharlap, that switches back and forth between real and protected mode, but your flat memory model program runs in protected mode, not real mode. The dos extender switches to real mode in order to service real mode interrupts, such as incoming data on serial ports and network cards.

10 years ago there were several brands of dos extenders, but I don't know if any of them exist today.

amitkumar2982 Jan 27th, 2006 6:50 am
Re: 32 BIt Flat Real mode
 
I am actually making an Operating system. That is why DOs extender is of no use to me.

Please advice me accordingly.

Salem Jan 27th, 2006 11:01 am
Re: 32 BIt Flat Real mode
 
Have a long hard read - http://www.nondot.org/sabre/os/articles

amitkumar2982 Jan 27th, 2006 11:48 am
Re: 32 BIt Flat Real mode
 
Thank you very much for your the links and suggestion but I have already been through that webpage and it is not working.

perlpower Jul 6th, 2006 7:09 pm
Re: 32 BIt Flat Real mode
 
Try this link it includes asembly code on how to swap into flat real mode (aka. unreal mode)

http://www.assembly.happycodings.com/code54.html

I have not tried it out myself but i will be eventuly. Same as you i am writing an operating system. The Curent name of it is Pelos.
I am going to use this code cause my current plan is that programs are loded into memory.

perlpower
PELOSĀ©
Poke Execute Lowlevel Operating System

Dave Sinkula Jul 6th, 2006 8:04 pm
Re: 32 BIt Flat Real mode
 
Quote:

Re: 32 BIt Flat Real mode
Jan 27th 2006, 09:48 AM
Let sleeping threads lie.


All times are GMT -4. The time now is 10:25 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC