b
Code:
mrjbom wrote:
Can I boot into VESA mode?
Well, if you say that you start your computer and instantly you have a video mode, then not. But if you say by setting it up with grub or your own bootloader, then yes.
mrjbom wrote:
How do I do this with GRUB?
For grub, it depends what multiboot specification you use. If multiboot one, you'll need to add the 1 << 2 flag, and then below the checksum, you'll need to pass the options for the flag, which are:
Code:
dd 0
dd 0
dd 0
dd 0
dd 0
Those are for other flags, which you can see in the mboot specification 1.
Then you have 4 options more. The first one, will indicate grub if it haves to use graphics mode or text mode. put
Code:
dd 1
for text mode, and
Code:
dd 0
for graphics mode. The next will indicate the width of the video mode, in case of
Code:
dd 0
, that means no preference to you. The same goes to the next option, but with the width. and the last option, is the bpp(bits per pixel), wich an zero means no preference(note that all the last 4 options have to be with "dd" and then the value.)
For multiboot 2, you need to declare a separate header wich you'll need to include. The header needs to be declared like this:
Code:
dw 5
dw 0
dd 20
And the last three as dd, wich will declare the width, height and bpp. I strongly recommend you to read the specification that i gave you.
btw
http://www.ctyme.com/intr/int.htm there you have a page with all the interrupts. in 0x10, search for svga, and you'll have what you can do with the bios int 0x10.