home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / bios / b_equip.txh < prev    next >
Encoding:
Text File  |  1995-10-09  |  1.1 KB  |  45 lines

  1. @node _bios_equiplist, bios
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <bios.h>
  6.  
  7. unsigned _bios_equiplist(void)
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function returns the equipment word from BIOS request 0x11.  The
  13. bits correspond to the following values:
  14.  
  15. @example
  16. Bits  Meaning
  17. 0     True (1) if disk drive(s) installed
  18. 1     True (1) if math coprocessor installed
  19. 2-3   System RAM in 16K blocks (16-64K)
  20. 4-5   Initial video mode:
  21.            00 = Reserved
  22.            01 = 40 x 25 color
  23.            10 = 80 x 25 color
  24.            11 = 80 x 25 monochrome
  25. 6-7   Number of floppy-disk drives installed
  26.       (00 = 1, 01 = 2, etc.)
  27. 8     False (0) if and only if a Direct Memory Access (DMA)
  28.       chip is installed
  29. 9-11  Number of RS232 serial ports installed
  30. 12    True (1) if and only if a game adapter is installed
  31. 13    True (1) if and only if an internal modem is installed
  32. 14-15 Number of printers installed
  33. @end example
  34.  
  35. @subheading Return Value
  36.  
  37. The equipment word.
  38.  
  39. @subheading Example
  40.  
  41. @example
  42. if ( _bios_equip() & 0xc000 )
  43.   do_printing();
  44. @end example
  45.