I work on a toy OS and use grub as my bootloader. While trying to use VGA recently, I found that I could not use hardware interrupts. I discovered this because I was immersed in grub protected mode.
Does anyone know how to return to real mode without getting rid of grub?
If you use GRUB as a bootloader, you can use intcall (as indicated in the COMBOOT API ) to invoke the BIOS function int 0x10 in your case to access VESA VBE .
intcall
But this will not help if you need to access the hardware VGA registers.
do you mean writeport (value, $ 3c9)?
>mov 03c9,AH >out value,AL
or similar in INTEL asm (NASM)
3c9 3C8 IIRC - VGA registers.