Example Vesa code in pure c

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
BoxesOs

Example Vesa code in pure c

Post 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 :-[
Crazed123

Re:Example Vesa code in pure c

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Example Vesa code in pure c

Post 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.
Post Reply