home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGC.ZIP / PROGC004.C < prev    next >
Text File  |  1988-04-10  |  525b  |  13 lines

  1.  
  2. /************************************************************************/
  3. /* Get Feature bits from the external register                          */
  4. /************************************************************************/
  5.  
  6. read_feature()
  7.         {
  8.         int     feature;
  9.         feature = read_register(0x3C2);         /* Get external register*/
  10.         feature = feature & 0x60;               /* Mask feature bits off*/
  11.         printf("\nFeature bits are %x hex",feature);/* Print the value  */
  12.         }
  13.