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

  1. @node biosequip, bios
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <bios.h>
  6.  
  7. int biosequip(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. 1111 1100 0000 0000
  17. 5432 1098 7654 3210  Meaning
  18.  
  19. ---- ---- ---- ---X  1 = disk drive(s) installed
  20. ---- ---- ---- --X-  1 = math coprocessor installed
  21. ---- ---- ---- XX--  System memory 00=16k 01=32k 10=48k 11=64k (non PS/2)
  22. ---- ---- ---- -X--  1 = pointing device installed (PS/2)
  23. ---- ---- ---- X---  not used on PS/2
  24. ---- ---- --XX ----  initial video mode: 01=CO40 10=CO80 11=MONO
  25. ---- ---- XX-- ----  disk drives 00=1 01=2 10=3 11=4 (zero if bit 1=0)
  26. ---- ---X ---- ----  1 = no DMA available
  27. ---- XXX- ---- ----  number of serial ports installed (000=0 001=1 etc)
  28. ---X ---- ---- ----  1 = game port adapter installed
  29. --X- ---- ---- ----  1 = internal modem installed (PS/2)
  30. --X- ---- ---- ----  1 = serial printer attached (non PS/2)
  31. XX-- ---- ---- ----  number of printers installed (00=0 01=1 10=2 11=3)
  32. @end example
  33.  
  34. @subheading Return Value
  35.  
  36. The equipment word.
  37.  
  38. @subheading Example
  39.  
  40. @example
  41. if (biosequip() & 0xc000)
  42.   do_printing();
  43. @end example
  44.  
  45.