Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2006, 11:15 AM   #1
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
VESA Video question

Hi there,

I am researching an interesting anomally in the VESA video implementations of different video chipsets. When calling 800X600 resolution at 8 bits/pixel, it would normally have a logical scan width of 800 pixels, but on some PCs it is showing up as 832 pixels! This can, of course, be coded around as the logical scan line length is not the same as the physical length, but...

I am trying to gather stats on what Video chipsets have this anomally.

I have put together a small routine that checks the video chipset for its version (1.2, 2 or 3) etc plus other information such as the screen mode number (usually 0103H).

It implements the VESA call 4F00h to check the VESA version, then asks for screen mode 800 X 600 at 8 bit colour depth. (download from here http://www.marbellacoast.com/800x600.exe). You can also see the source code here: http://www.marbellacoast.com/800x600.bas.

If you want to contribute to my research, have a go with this little executable from a command-line, it will write out to 800X600.txt. If you want to, please post the contents of the text file in this topic.

run it from the commandline as: 800X600.exe /log.

the /log option turns on the text file logging. Of course, if you happen to have a text file in the same directory of that name, it will overwrite it , but I guess that would be highly unlikely!!!

Please also mention whether you saw the test-card (very imporant).

The test card is a series of vertical bars that should show cleanly on the screen with no diagonals or corruption. To quit from the test card, just press a key and the program ends (not that exciting really) but the data it writes to the text file is vital for my research!!

Hopefully this can be run on old as well as new machines.

Many thanks for your help.

vidmaster
vidmaster is offline   Reply With Quote
Old Feb 22nd, 2006, 11:42 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Your source code file "could not be found". I wouldn't download an executable if my brain was completely atrophied.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 23rd, 2006, 2:51 AM   #3
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
Indeed, I made a change to the code before uploading it.

As for trust, I could be an evil nut, but as it happens, I am just a nut. Take a look at the source first. It is pretty simple really. You can always compile it with PB instead of downloading EXE.
vidmaster is offline   Reply With Quote
Old Feb 23rd, 2006, 4:40 AM   #4
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
Quote:
Originally Posted by DaWei
I wouldn't download an executable if my brain was completely atrophied.
Correct. An atrophied brain would be hard-pressed to complete such a task. However, I will leave the code available should your brain undergo an unforeseen hypertrophy.
vidmaster is offline   Reply With Quote
Old Feb 23rd, 2006, 6:05 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
My brain is not atrophied; note the use of the word, IF. IF you do not understand IF constructs, how do you expect to make a working program. You can kiss my ass and take a flying fuck at a rolling doughnut, if you can find any equipment to do so about your person.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 23rd, 2006, 7:43 AM   #6
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
Quote:
Originally Posted by DaWei
My brain is not atrophied; note the use of the word, IF. IF you do not understand IF constructs, how do you expect to make a working program. You can kiss my ass and take a flying fuck at a rolling doughnut, if you can find any equipment to do so about your person.
Correct again, but only to a degree. The IF premise was a context that was correctly maintained in my response to your brain-atrophy scenario. I agreed with you and still do. If your brain has atrophied, the resulting aberration would likely impair you ability to download an executable. It is reasonable to assume from your response quoted above that you wish to express my lack of consideration for the fact that this was a 'premise'. Be assured however that such a misinterpretation has not occurred.

I have reflected on the less unintelligent aspects of the rest of your comment with the sincere desire to extract a valid point. As a result, I have noted that the lack of understanding of IF constructs that may well still exist, appears not to do so on my part.

I am comforted by the wide birth such an accusation makes as it hurtles past me and heads menacingly towards the other poster to this thread - dragging with it the very implications for programming ability you had suggested at its launch. I would suggest you duck.
vidmaster is offline   Reply With Quote
Old Feb 23rd, 2006, 8:05 AM   #7
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
Seem to have cleared out the suckers now.

btw, the first exe link is formatted wrongly, it has an extraneous bracket.

Try this http://www.marbellacoast.com/800x600.exe

Many thanks.
vidmaster is offline   Reply With Quote
Old Feb 23rd, 2006, 8:12 AM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Uh huh. I'm not seeking help, and I'm not asking novices to download my executables. There is no need for ME to duck. I wouldn't download your SOURCE now without a guaranteed contract and a very thorough background check of your so-pristine person. However, if you hang around, you may very well find another taker. Members here like to help when properly encouraged. If you read my original response (presuming you can read and comprehend), you will find there's no insult there, merely a position statement. Your response to that was normal. Your immedialy following post was apparently placed after you decided that declining to download your executable was a mortal insult. My response to that was as you see. Perhaps you should grow up and forego mama's teat before you pretend that you are a peer to ANYONE but your kindergarten classmates.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 23rd, 2006, 10:32 AM   #9
vidmaster
Newbie
 
Join Date: Feb 2006
Posts: 8
Rep Power: 0 vidmaster is on a distinguished road
Quote:
Originally Posted by DaWei
flying fuck...(something about a doughnut)...presuming you can read and comprehend......grow up...forego mama's teat...your kindergarten classmates...There is no need for ME to duck...I'm not seeking help.
Here, otherwise returning back to the thread topic.
vidmaster is offline   Reply With Quote
Old Feb 23rd, 2006, 1:07 PM   #10
Darkhack
Hobbyist Programmer
 
Darkhack's Avatar
 
Join Date: Dec 2005
Location: Kansas City
Posts: 105
Rep Power: 3 Darkhack is on a distinguished road
Send a message via AIM to Darkhack
wait.... I thought VESA was the generic video driver for Linux? Why is this a windows executable????
Darkhack is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:28 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC