I'm developing a hobby OS ,I want to draw something in vga mode when OS is in protected mode. I'm using the multiboot2 to guide my OS to step in and I setup the VGA as 1024 X 768 X 32 ,then I paint the whole screen like this :
memset ((void *) 0xA0000,0x0F,1024 * 768 * 4);
but encounted an exception,I found that VGA buffer address starts at 0xA00000 but ends at 0xB0000 ,totally 64K, the whole 1024 * 768 * 32 screen need rather than the 64K buffer.
So,How to fill the whole screent ? Any help would be appreciated ...