What are the Video Card's Ports and How do I use them.

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
ThatGuy22
Posts: 9
Joined: Thu Dec 16, 2010 11:22 am

What are the Video Card's Ports and How do I use them.

Post by ThatGuy22 »

My goal of this is to switch the Graphics Card's Video memory pointer and to change the resolution of the screen while only using ports and not DOS interrupts.
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: What are the Video Card's Ports and How do I use them.

Post by Combuster »

VGA Hardware. That doesn't get you sane resolutions beyond 640x480 though

But even the regular bios interrupts don't come from DOS so you can use them anywhere from real mode :wink:
"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
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: What are the Video Card's Ports and How do I use them.

Post by Chandra »

Combuster wrote:VGA Hardware. That doesn't get you sane resolutions beyond 640x480 though
True. To implement high resolution using ports, you need to write custom drivers for each graphics card. But this is truely a nightmare as much of the graphics card available are not well documented. So far I have been able to find some documents regarding ATI, S3 and few others (that too for limited cards only) so if you find something new, I too would be interested.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Post Reply