GRUB not setting VESA mode
Posted: Wed Jul 13, 2016 11:33 am
Hi , Here is my code:
I'm using GRUB 0.97, do somebody now why it's not changing the video mode ?
Code: Select all
MBALIGN equ 1<<0 ; Align flag
MEMINFO equ 1<<1 ; Memory info flag, so GRUB will give us the memory info in MB structure.
VBE_MODE equ 1<<2 ; VBE mode flag. Grub will set it for us and provide info about it.
FLAGS equ MBALIGN | MEMINFO | VBE_MODE ; Flags
MAGIC equ 0x1BADB002 ; Multiboot magic number.
CHECKSUM equ -(MAGIC + FLAGS) ; Multiboot checksum
align 4 ; 4-byte aligned code/data goes after that line.
; Put all our settings there.
dd MAGIC ; Magic number, so GRUB will know that we're not going to kill him
dd FLAGS ; Flags that we're set
dd CHECKSUM ; Checksum
dd 0, 0, 0, 0, 0 ; Unneeded now.
dd 0 ; Set graphics mode
dd 1024, 768, 32 ; WxHxD screen resolution