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++ Language Reference - _bios_equiplist http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   _bios_equiplist

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

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

   Example
   main()
   {
   unsigned equipment;

        equipment = _bios_equiplist();

        if(equipment & 0x0c)
             printf("Game adaptor installed\n");
        else
             printf("No Game adaptor installed\n");
   }

   Return Value
   The   return  value  is  an  integer  which  contains  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 _bioskey _bios_memsize _bios_printer _bios_serialcom _bios_disk

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