http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Video hardware detection?



Hey guys/girls!

I have another question about the Hercules: How do I distinguish between a
Hercules and MDA adapter? (I mean, using software :-) )

Basically, I'm reading from ports 0x3b0 through 0x3b8, and if I get any
value between those that aren't 0xff, then I assume a HGA/MDA is
installed, but how do I know which one? Since, AFAIK anyway, it isn't
possible to do graphics on an MDA, but it is definitely possible on a
Hercules. Now, just to be polite, I wouldn't want my game to crash on a
system with an MDA adapter, I'd rather write a friendly message to
b000:xxxx instead :-).

Hope somebody can help me out here? BTW Is my detection routine okay? It's
just something I thought up, since AFAIK if an adapter isn't installed,
it's ports read out 0xff all the way, but somebody correct me if I'm
wrong, please.

Caio,

Lionel

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html