Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <bios.h>
    unsigned short _bios_equiplist( void );

Description:
    The _bios_equiplist function uses INT 0x11 to determine what hardware
    and peripherals are installed on the machine.

Returns:
    The _bios_equiplist function returns a set of bits indicating what is
    currently installed on the machine.  Those bits are defined as follows:

    Bit     Meaning

bit 0
    Set to 1 if system boots from disk

bit 1
    Set to 1 if a math coprocessor is installed

bits 2-3
    Indicates motherboard RAM size

bits 4-5
    Initial video mode

bits 6-7
    Number of diskette drives

bit 8
    Set to 1 if machine does not have DMA

bits 9-11
    Number of serial ports

bit 12
    Set to 1 if a game port is attached

bit 13
    Set to 1 if a serial printer is attached

bits 14-15
    Number of parallel printers installed


Example:
    #include <stdio.h>
    #include <bios.h>

    void main()
      {
        unsigned short equipment;

        equipment = _bios_equiplist();
        printf( "Equipment flags = 0x%4.4X\n", equipment );
      }

Classification:
    BIOS

Systems:
    DOS, Windows, Win386

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