Solved

VESA/MODE 12h Graphics

Posted on 1997-08-07
2
484 Views
Last Modified: 2012-08-13
Help! Is there an easier way of programming 640x480x16/640x480x256 graphics then unchaining
the bitplanes? It means that working in 16 bits is extremely fiddly and it's so SLOW, even when written in BASM.
Perhaps DMAs might help!?
0
Comment
Question by:DaveJ080797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
nils pipenbrinck earned 200 total points
ID: 1215403
No,

Since you work in a realmode enviroment you have no chances to use the new linear frame buffer function of new vga-cards.

The only option you have is to use VESA. Ther're a lot of good vesa libraries on the net, and I'm sure you'll be able to find one.

Basically the only thing you have to do is, to set the graphic mode. If you want to access your frame-buffer you have to do some math:

 for 640x480x256 your image is 307200 bytes in size.

the video segment 0xa000 is only 64k in size. If you know want to access any part of the video memory above the first 64k you have to tell the vesa to use another bank of the video memory. (a simple call or interrupt.. whatever you prefear).

Vesa isn't that slow.. If your graphic is to slow it's your code, not the vesa-stuff.


Hope this helps you...

  Nils Pipenbrinck

0
 

Author Comment

by:DaveJ080797
ID: 1215404
Dave's brother liked the answer anyway.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question