[comp.sys.ibm.pc] Problems with autodetection of Hercules adaptors.

mk@suadb.dsv.su.se (Magnus Karlson) (08/31/89)

I have previusly saved some code from the net that pretends (?) to
be able to detect the kind of display adapter you have in the system.

The code has said to been based on the Microsoft book "Guide to ibm...."
but there seems to be some problems regarding hercules cards so if
someone that has the book please could tell me the right way i would be
very gratefull.

Both examples i have behave a litel different when they have isolated
the bits 7,6 and 5 of the status port (3ba)
Both say AND <status>,70H     == 0  Ordinary hercules adapter
    1)   cmp <status>,10h           hgc plus
    2)   and <status>,10h     == 10 hgc plus
all others Incolor

When testing this, results for the old hercules adapter i have located
are incorect 1) says it is a HGC plus and 2) that it is a Incolor adapter!

Is the card i have incorrect or the algorithm???

By the way, the incolor adaptor were never any big i sweden, acctually i
have not located any adaptor in my soroundings, could someone please
tell me a litel about it's features?

Thankfull for a quick answer

	Magnus Karlson