Page 1 of 1
VGA programming without interrupt
Posted: Mon Jul 11, 2011 11:15 am
by rents85
Hi! I want to develop a VGA graphics driver (for Linux(Ubuntu)) with support for the basic primitives such as putpixel, drawline, fillrect and bitblt. I want to do it in protected mode.
I´ve been googling for a week and the following four links are the best I have found:
http://www.brackeen....vga/basics.html
http://www.cs.ucla.e...are/ibm-vga.txt
http://bos.asmhacker...sing%20bios.htm
Unfortunately, the first one uses a BIOS call so I cannot use it. The second link has lots of information on the VGA registers but no examples showing how to make them work together. The third example is a example to switch in 13h mode but i've tried it and nothing happened. Can you guys give me a hint? Thanks in advance!
--Vincenzo
Re: VGA programming without interrupt
Posted: Mon Jul 11, 2011 12:02 pm
by Combuster
Please doublecheck your contents when you post - none of the links work.
That said, Ubuntu normally comes up with a GUI, which has the effect on many video cards that VGA code breaks or gets ignored altogether. Are you using gnome? Are you using a framebuffer console? Were any of the two enabled when you ran your code? Were any of the two enabled between a (re)boot and running your code?
Re: VGA programming without interrupt
Posted: Mon Jul 11, 2011 1:18 pm
by LegendDairy
rents85 wrote:Hi! I want to develop a VGA graphics driver (for Linux(Ubuntu)) with support for the basic primitives such as putpixel, drawline, fillrect and bitblt. I want to do it in protected mode.
I´ve been googling for a week and the following four links are the best I have found:
http://www.brackeen....vga/basics.html
http://www.cs.ucla.e...are/ibm-vga.txt
http://bos.asmhacker...sing%20bios.htm
Unfortunately, the first one uses a BIOS call so I cannot use it. The second link has lots of information on the VGA registers but no examples showing how to make them work together. The third example is a example to switch in 13h mode but i've tried it and nothing happened. Can you guys give me a hint? Thanks in advance!
--Vincenzo
Lol
http://stackoverflow.com/questions/6653 ... -registers
Re: VGA programming without interrupt
Posted: Mon Jul 11, 2011 1:21 pm
by LegendDairy
rents85 wrote:Hi! I want to develop a VGA graphics driver (for Linux(Ubuntu)) with support for the basic primitives such as putpixel, drawline, fillrect and bitblt. I want to do it in protected mode.
I´ve been googling for a week and the following four links are the best I have found:
http://www.brackeen....vga/basics.html
http://www.cs.ucla.e...are/ibm-vga.txt
http://bos.asmhacker...sing%20bios.htm
Unfortunately, the first one uses a BIOS call so I cannot use it. The second link has lots of information on the VGA registers but no examples showing how to make them work together. The third example is a example to switch in 13h mode but i've tried it and nothing happened. Can you guys give me a hint? Thanks in advance!
--Vincenzo
Lol
http://stackoverflow.com/questions/6653 ... -registers
EDIT:
Dude serious?
http://www.gamedev.net/topic/606056-vga-programming/
All 3 started at the same hour...