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
VGA programming without interrupt
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: VGA programming without interrupt
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?
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?
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: VGA programming without interrupt
Lolrents85 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
http://stackoverflow.com/questions/6653 ... -registers
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: VGA programming without interrupt
Lolrents85 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
http://stackoverflow.com/questions/6653 ... -registers
EDIT:
Dude serious?
http://www.gamedev.net/topic/606056-vga-programming/
All 3 started at the same hour...