Bank switching in protected mode

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
MR_RM

Bank switching in protected mode

Post by MR_RM »

I'm having trouble with the graphical side of my os.

It is a C/C++ os and i am writing directly to 0xA0000-AFFFF. I have no idea how to change banks without any interrupts. I was thinking that there must be a byte on my card i could write the bank directly to. I've heard of getting VBE_ModeInfoBlock->WinFuncPtr, but that requires an interrupt doesn't it?

i'm a newbie to protected mode, so any help would be greatly appreciated.
carbonBased

RE:Bank switching in protected mode

Post by carbonBased »

Your only portable option is to use VESA 2.0, which does require in interrupt, yes.  You'll need a vm86 handler to call int 0x10 to get the vesa pmode interface (or get the linear frame buffer).

Vesa 3.0 _may_ have a completely protected mode interface - I believe someone has mentioned this - however, I can't confirm this (nor can many people, I would imagine, because Vesa 3.0 is hardly supported, as far as I can tell).

Cheers,
Jeff
Post Reply