What are "VGA-compatible boards and VGA-compatible modes"?
Posted: Wed Jul 27, 2022 7:43 am
I have just switched to VGA graphics mode in 16 bit mode using mov ah, 0x00, mov al, 0x13 and int 0x10. And I went to 32 bit mode.
Now I want to draw stuff on the screen, and I found a documentation saying there is these few methods:
Now I want to draw stuff on the screen, and I found a documentation saying there is these few methods:
I am choosing the first one (cuz it looks like the easiest), so I am wondering what are "VGA-compatible video boards and VGA-compatible video modes"? And am I choosing the best method?
- Use protected-mode code to program the VGA directly, without using the BIOS. This works only with VGA-compatible video boards and VGA-compatible video modes.
- Add a virtual 8086 mode monitor (VMM) to your OS. Call the BIOS mode-set interrupt in virtual 8086 mode.
- Switch from pmode to real mode, call the BIOS mode-set interrupt in real mode, then return to pmode.
- Write a protected-mode driver specifically for the SVGA chip used in your video board. Someone else who wants to use your OS must have the same video board (or they must write a new driver for their own video board).
- Call VBE 3.x BIOS functions in 16-bit protected mode. Few video cards support VBE 3.x.