Vesa

Reply

Join Date: Oct 2007
Posts: 19
Reputation: sgk26p10p07 is an unknown quantity at this point 
Solved Threads: 1
sgk26p10p07 sgk26p10p07 is offline Offline
Newbie Poster

Vesa

 
0
  #1
Oct 29th, 2007
Im coding on vesa mode 116h, i knw its properties like banks windows and resolution, my only problem is that i dont knw how to switch banks and dont know what the windows refer to. I also want help on the vesa service that provides the pointer to bank switch code and window code. And also, when i create a program using vesa functions must i pay the vesa committee?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,979
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 220
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Vesa

 
0
  #2
Oct 29th, 2007
You need to find yourself a good reference. I recommend Ferraro's Programmer's Guide to the EGA and VGA Cards. It's a bit out of date but all the info you need is there.

To set a bank use something like:
  1. mov ax, 4F05 ; VESA function:
  2. mov bh, 0 ; set bank window
  3. mov bl, wnum ; window number (0 or 1)
  4. mov dx, bnum ; bank number (depends on granularity)
  5. int 10h
The bank number is of course dependent on your card's granularity, which you must look up with the appropriate function.

The window is simply the part of video memory accessed when you read or write to the host's video access memory. Many SVGAs have the ability to do "single" or "dual" mode access. That is to say, you can have a different part of video memory addressed when reading and writing. I think that all SGVA cards can do single window access, but I'm not sure about that. (It is another thing that you should set-up in your initialization).

If all this went over your head, you need to get a good reference and read it hard.

Hope this helps.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,979
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 220
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Vesa

 
0
  #3
Oct 29th, 2007
Oh yeah, you don't have to pay VESA anything to use the functions. Now if you download software from them or attempt to duplicate their code or specification that may be different...

The whole point of VESA was to provide a single standard for interfacing with an SVGA. Before VESA organized, if you wrote a program or game or anything that used SVGA features you had to provide a driver for every type of SVGA card you could imagine your user having. Remember all those old DOS games that came in 2K of files and had 15K of drivers?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 19
Reputation: sgk26p10p07 is an unknown quantity at this point 
Solved Threads: 1
sgk26p10p07 sgk26p10p07 is offline Offline
Newbie Poster

Re: Vesa

 
0
  #4
Oct 30th, 2007
Now what about the service giving me a direct pointer to the bank switch code so that i can call it using a far pointer? My book doesnt have that
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,979
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 220
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Vesa

 
0
  #5
Oct 30th, 2007
I honestly don't remember that much about it... and you can google the info just as well as I can.
You have to gather information about video capabilities and single/dual window addressing before doing anything anyway... The table of function pointers is stored in the same place as far as I recall...
I don't think there is any advantage to using a far ptr function over an interrupt function.

Alas.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum


Views: 1818 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC