VGA programming without interrupt

Programming, for all ages and all languages.
Post Reply
rents85
Posts: 1
Joined: Mon Jul 11, 2011 11:12 am

VGA programming without interrupt

Post 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
User avatar
Combuster
Member
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

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
LegendDairy
Member
Member
Posts: 52
Joined: Sat Nov 06, 2010 10:42 am
Location: Antwerp (Belgium)

Re: VGA programming without interrupt

Post 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
User avatar
LegendDairy
Member
Member
Posts: 52
Joined: Sat Nov 06, 2010 10:42 am
Location: Antwerp (Belgium)

Re: VGA programming without interrupt

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