Re: VGA: only part of screen
Posted: Mon Oct 26, 2015 2:44 am
Hi,
You can find more information about VBE (and the "VBE mode information structure") here; especially links to the VBE specification itself near the bottom of that page.
I'd highly recommend reading that VBE specification; because you're going to need to know a whole bunch of stuff about pixel formats/masks/shifts, addressing, "bytes between lines", etc.
Cheers,
Brendan
GRUB/multi-boot just gives you the same data it got from VBE. More specifically, you're looking for the "VBE mode information structure" defined by VESA. A pointer to this is given to you in multi-boot's "boot information structure".Awe2K wrote:Ok, now I've got my mboot->vbe_mode bit 14 set, how do I know linear address then, or where are framebuffer segments located?
You can find more information about VBE (and the "VBE mode information structure") here; especially links to the VBE specification itself near the bottom of that page.
I'd highly recommend reading that VBE specification; because you're going to need to know a whole bunch of stuff about pixel formats/masks/shifts, addressing, "bytes between lines", etc.
Cheers,
Brendan