Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am working on a small hobby OS (with nasm assembler and c++).
I already have programmed some text on the screen and I have made some other small things.
I basicly want to switch the processor to 16 bit(real) mode to access some bios interrupts.
I already have read some on this site link
but I still dont quite understand how to do the switch.

What I have tried:

I've read a lot of books
I've browsed the web(but no success)
I've read intel manual(little bit unclear)
Posted
Updated 18-Feb-21 8:04am

1 solution

As far as I know, todays processors, at least Intel's, start up in Real Mode at power on. Once out of Real Mode, there was no way to switch the processor back to Real Mode without resetting the processor.
 
Share this answer
 
Comments
merano99 19-Feb-21 19:49pm    
Every x86 Prozessor starts in Real-Mode. The use of BIOS-Interrups works and you dont need to switch. Why is ist nessarary to switch?
After switching to Protected Mode you can emulate the Real Mode by switching to Virtual 8086 Mode to access BIOS-Interrups. From Protected Mode you have to Reset the CPU to come back to Real-Mode.

Perhaps this is usefull:
https://stackoverflow.com/questions/59894016/switch-from-protected-mode-to-real-mode
Dave Kreskowiak 19-Feb-21 19:51pm    
Perhaps you should be replying to the OP instead of me? That way, the OP gets a notification you posted something.
MrProgrammer12 20-Feb-21 12:50pm    
thank you for the help guys, im gonna have a look at virtual 8086 mode.
:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900