32 BIt Flat Real mode

Closed Thread

Join Date: Jan 2006
Posts: 4
Reputation: amitkumar2982 is an unknown quantity at this point 
Solved Threads: 0
amitkumar2982 amitkumar2982 is offline Offline
Newbie Poster

32 BIt Flat Real mode

 
0
  #1
Jan 25th, 2006
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.
Quick reply to this message  
Join Date: Aug 2005
Posts: 15,331
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1453
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: 32 BIt Flat Real mode

 
0
  #2
Jan 25th, 2006
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.
Quick reply to this message  
Join Date: Jan 2006
Posts: 4
Reputation: amitkumar2982 is an unknown quantity at this point 
Solved Threads: 0
amitkumar2982 amitkumar2982 is offline Offline
Newbie Poster

Re: 32 BIt Flat Real mode

 
0
  #3
Jan 27th, 2006
I am actually making an Operating system. That is why DOs extender is of no use to me.

Please advice me accordingly.
Quick reply to this message  
Join Date: Dec 2005
Posts: 5,851
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: 32 BIt Flat Real mode

 
0
  #4
Jan 27th, 2006
Have a long hard read - http://www.nondot.org/sabre/os/articles
Quick reply to this message  
Join Date: Jan 2006
Posts: 4
Reputation: amitkumar2982 is an unknown quantity at this point 
Solved Threads: 0
amitkumar2982 amitkumar2982 is offline Offline
Newbie Poster

Re: 32 BIt Flat Real mode

 
0
  #5
Jan 27th, 2006
Thank you very much for your the links and suggestion but I have already been through that webpage and it is not working.
Quick reply to this message  
Join Date: Jul 2006
Posts: 1
Reputation: perlpower is an unknown quantity at this point 
Solved Threads: 0
perlpower's Avatar
perlpower perlpower is offline Offline
Newbie Poster

Re: 32 BIt Flat Real mode

 
0
  #6
Jul 6th, 2006
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
Last edited by perlpower; Jul 6th, 2006 at 7:11 pm.
There Are 10 types of people in this world those who understand binary and those who don't
Quick reply to this message  
Join Date: Apr 2004
Posts: 4,334
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 234
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: 32 BIt Flat Real mode

 
0
  #7
Jul 6th, 2006
Re: 32 BIt Flat Real mode
Jan 27th 2006, 09:48 AM
Let sleeping threads lie.
Last edited by Dave Sinkula; Jul 6th, 2006 at 8:05 pm.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC