In Real Mode, we can switch between Video Modes using INT 0x10
In protected mode there is any way to do this or have I to use VMode?
Switch Video Mode int PMode
- AlfaOmega08
- Member
- Posts: 226
- Joined: Wed Nov 07, 2007 12:15 pm
- Location: Italy
you have to write the drivers for the video card or standard (vga, svga, etc..).
you might want to consider switching video modes in real-mode then just writing to the buffers in pmode.
you might want to consider switching video modes in real-mode then just writing to the buffers in pmode.
Website: https://joscor.com
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
I have written a demo to show how to go to realmode from pmode and back, for mode switching (in this case vesa and text mode).
See here: http://www.dex4u.com/demos/VesaDemo.zip
Note: this demo need vesa2.
Also its possible to switch vga modes from pmode, without using BIOS
See here: http://bos.asmhackers.net/docs/vga_without_bios/
See here: http://www.dex4u.com/demos/VesaDemo.zip
Note: this demo need vesa2.
Also its possible to switch vga modes from pmode, without using BIOS
See here: http://bos.asmhackers.net/docs/vga_without_bios/
- AlfaOmega08
- Member
- Posts: 226
- Joined: Wed Nov 07, 2007 12:15 pm
- Location: Italy
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
os.hacker64 wrote:I believe after reading these posts that I will add switching back to real mode into my kernel so that I can set vesa modes.
EDIT: Is there an interface like VGA for XGA? This sounds weird to me, but you get my point.
Kanu Operating System
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7
Working on:Paging and Multitasking
BURN /\/\1(40$0|=7