| | |
32 BIt Flat Real mode
![]() |
•
•
Join Date: Jan 2006
Posts: 4
Reputation:
Solved Threads: 0
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.
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.
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.
10 years ago there were several brands of dos extenders, but I don't know if any of them exist today.
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
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
•
•
•
•
Re: 32 BIt Flat Real mode
Jan 27th 2006, 09:48 AM
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
![]() |
Similar Threads
- Help needed for a project concerning protected mode (Assembly)
- 32 BIt Flat Real mode (Community Introductions)
Other Threads in the C Forum
- Previous Thread: Currency Converter
- Next Thread: help for c program
| Thread Tools | Search this Thread |
adobe ansi api array asterisks binarysearch calculate centimeter changingto char convert copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory fflush file fork forloop frequency givemetehcodez global grade gtkgcurlcompiling hacking highest histogram homework i/o inches infiniteloop input interest iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate looping loopinsideloop. lowest match meter microsoft mysql number open opendocumentformat openwebfoundation owf pattern pdf performance posix power probleminc process program programming pyramidusingturboccodes radix read recv repetition research reversing scanf scheduling segmentationfault send sequential socket socketprograming socketprogramming stack standard string suggestions systemcall threads turboc unix user variable voidmain() wab win32api windows.h windowsapi





