Solved

VESA/MODE 12h Graphics

Posted on 1997-08-07
2
451 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now