/************************************************************************/ /* Get Feature bits from the external register */ /************************************************************************/ read_feature() { int feature; feature = read_register(0x3C2); /* Get external register*/ feature = feature & 0x60; /* Mask feature bits off*/ printf("\nFeature bits are %x hex",feature);/* Print the value */ }