Page 1 of 1
Example Vesa code in pure c
Posted: Fri Sep 16, 2005 9:28 am
by BoxesOs
i am starter in os development.and i write kernel in c with many asm.But i dont like asm.How i can write vesa driver in c.I search all of this forum.but i dont answer.i wait your hel :-[
Re:Example Vesa code in pure c
Posted: Fri Sep 16, 2005 5:34 pm
by Crazed123
You can't write a VESA driver in pure C unless you use the Protected Mode Interface, which isn't always fully supported.
I may be wrong, but that's what I know.
And please write correctly.
Re:Example Vesa code in pure c
Posted: Sun Sep 18, 2005 4:36 am
by Pype.Clicker
the main problem is that VESA interface is defined in terms of registers passing, so with most C compilers, you'll have no choice but using inline assembly to call the interrupt, etc.
I suggest you check the implementation of V86/VESA from OSLib: that's where i took inspiration & code from.