Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>_bios_equiplist</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_bios_equiplist
   Note - This function is not available when using OS/2.

Usage

   #include <bios.h>
   int _bios_equiplist(void);

Description


   The function _bios_equiplist executes a BIOS interrupt 0x11, the
   equipment determination routine.

Example 

   #include <bios.h>
   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       unsigned equipment;

       equipment = _bios_equiplist();
       if (equipment & 0x0c)
           printf("Game adaptor installed\n");
       else
           printf("No Game adaptor installed\n");
       return EXIT_SUCCESS;

   }

Return Value

   An integer containing the following information as a bit pattern.

       Bit No      Meaning
       -------     -------------------------------------------
       15,14       the number of printers attached
       13          not used
       12          1 if a game adaptor is attached
       11,10,9     the number of serial (RS232) ports
       8           not used
       7,6         the number of diskette drives (maximum 4)
       5,4         the initial video mode:
                     00    not used
                     01    40x25 color
                     10    80x25 color
                     11    monochrome
       3,2         planar ram size (11 = 64k which is normal)

       1           not used
       0           set if there are any diskette drives

See Also

   BIOS package,     _bios_keybrd,   _bios_memsize,   _bios_printer,
   _bios_serialcom,  _bios_disk



See Also: _bios_keybrd _bios_memsize _bios_printer _bios_serialcom _bios_disk

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson