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.
Bank switching in protected mode
RE:Bank switching in protected mode
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
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