/***********************************************************************\ * * Checks to see if a Cirrus Logic chipset is present. * * Useful to double check the Trident query. * * You should also move the VESA detection to the head of the list. * \***********************************************************************/ #include void main () { char result; asm { mov AL, 0x27 mov DX, 0x03D4 out DX, AL inc DX in AL, DX mov result, AL } if (result & 0x80) printf ("\nCirrus Logic 54xx chipset found."); else printf ("\nNot a Cirrus Logic card."); }