real mode-switch for graphics

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ohboy

real mode-switch for graphics

Post by ohboy »

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?
User avatar
Pype.Clicker
Member
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

Post by Pype.Clicker »

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 ...
ohboy

Re:real mode-switch for graphics

Post by ohboy »

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.
DennisCGc

Re:real mode-switch for graphics

Post by DennisCGc »

ohboy 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.
Here you have: http://my.execpc.com/~geezer/osd/graphics/modes.c
Post Reply