Page 1 of 1
Graphics in long mode
Posted: Sat Jun 11, 2005 11:56 am
by zyp
I'm just wondering, isn't there a sensible way to do graphics in long mode, since V8086 mode aren't aviable?
This goes for protected mode aswell, isn't it a standard way to do graphics without dropping to realmode or using V8086?
The graphics-system shouldn't need any special support from the kernel, like dropping from long to protected mode.
Re:Graphics in long mode
Posted: Sat Jun 11, 2005 12:57 pm
by AR
No it doesn't need special support by dropping back to real mode, it's just we hoobyists have trouble getting nVidia and ATi to provide drivers for our OS'. Proper drivers will manipulate the IO Address space and memory mapped registers directly, if you would rather not write a driver for every card then you'll most likely have to at least drop back to 32bit protected mode to use V8086. Someone else will know more though.
Sanik also has a mini-emulator for realmode code that you might be able to find by searching the forums.
Re:Graphics in long mode
Posted: Sat Jun 11, 2005 2:30 pm
by zyp
Can it emulate real mode bios calls then? If not, the point of using real mode for real mode bios calls are gone.
Or if it's possible to emulate real mode bios calls, then you don't need an emulator, it should be enough to implement the emulation of the bios call.
Re:Graphics in long mode
Posted: Sat Jun 11, 2005 2:35 pm
by AR
I'm not exactly sure what you are talking about. Sanik's program is like Bochs, it emulates the CPU state and parses the instructions except that when it accesses IO ports they fall through onto the real IO ports. (At least that's what I got from the topic)
If you are referring to emulating the VESA BIOS by writing something that does the same thing, the VESA BIOS is onboard the Video card and is different for every card.
Re:Graphics in long mode
Posted: Sat Jun 11, 2005 4:39 pm
by mystran
zyp wrote:
Can it emulate real mode bios calls then? If not, the point of using real mode for real mode bios calls are gone.
Or if it's possible to emulate real mode bios calls, then you don't need an emulator, it should be enough to implement the emulation of the bios call.
If I'm not mistaken, Sanik's emulator is specifically aimed at supporting sufficient subset of the realmode to run the BIOS calls.
Re:Graphics in long mode
Posted: Sat Jun 25, 2005 12:43 pm
by viral
I dont know will this help to you.... but u should see it... its modes.c file which can init graphics in different vga modes.
Re:Graphics in long mode
Posted: Tue Jun 28, 2005 1:20 am
by srg_13
If you are using C, you can try
this
It can change to an int 13h graphics mode without using the BIOS.
-Stephen
Re:Graphics in long mode
Posted: Tue Jun 28, 2005 7:07 am
by mystran
The VM86 mode most definitely isn't about VGA-class modes. Switching to those (as long as you have VGA-compatible videocard) is easy, and documented in about ten thousand places around the net.
Even many oldschool intros/demos did that directly, because they wanted access to so called "modeX" (which there are several) which BIOS wouldn't provide for them.
The whole problem with drivers started when people wanted to get bigger resolutions that VGA could provide. So the VBE standard was born, that defines the BIOS interfaces that a video card must provide. So basicly, the video-card would have a small amount of ROM (the VGA-BIOS) which would work as a basic driver. The only problem being, that the whole stuff works in realmode.
The other thing that happened was Microsoft Windows, and so people won't care (other than us hobbyists) that the VBE standard still sucks.
Re:Graphics in long mode
Posted: Tue Jun 28, 2005 7:32 am
by Pype.Clicker
well, there still exists the "SNAP" alternative from SciTech, but i don't know too much how free it makes you. Iirc, they at least use some COM/OLE stuff ... don't know too much about licensing, either.