What if I switch to real mode from 32 bit protected mode and back when I want to call BIOS interrupts? Everything would stop, but that's not really a problem because I'm going to use it to switch graphic modes. (and who do that all the time?)
I've considered using v86, but I think this way, switching to real mode, is more straight forward.
What are the pros and cons in this method?
real mode-switch for graphics
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:real mode-switch for graphics
you'll have to make sure the real mode code do not interfere with pending IO operations from 32 bits drivers ... which may be quite tedious to ensure ...
Re:real mode-switch for graphics
Okey.. I think I'll throw this in the paper bin and use v86.
But, to start with, I know there's a VERY good tutorial about programming the VGA directly through ports. (with source code).
If anyone knows where it is (i've lost the link due to formatting) I would be glad if you posted it.
But, to start with, I know there's a VERY good tutorial about programming the VGA directly through ports. (with source code).
If anyone knows where it is (i've lost the link due to formatting) I would be glad if you posted it.
Re:real mode-switch for graphics
Here you have: http://my.execpc.com/~geezer/osd/graphics/modes.cohboy wrote: Okey.. I think I'll throw this in the paper bin and use v86.
But, to start with, I know there's a VERY good tutorial about programming the VGA directly through ports. (with source code).
If anyone knows where it is (i've lost the link due to formatting) I would be glad if you posted it.