Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>biosequip() check equipment</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
biosequip()              Check Equipment

 #include   <bios.h>

 int        biosequip(void);

    biosequip() uses BIOS interrupt 0x11 to return an integer describing
    the equipment connected to the system.

    Returns:    A collection of bit-sized fields:

                bit 15   Numbers of printers
                bit 14   Numbers of printers
                bit 13   Not used
                bit 12   Game I/O attached
                bit 11   Number of RS232 ports
                bit 8    Not used
                bit 7    Number of diskettes
                bit 6    Number of diskettes
                    00 = 1 drive
                    01 = 2 drives
                    10 = 3 drives
                    11 = 4 drives, only if bit 0 is 1

                bit 5    Initial
                bit 4    Video mode
                    00 = Unused
                    01 = 40x25 BW with color card
                    10 = 80x25 BW with color card
                    11 = 80x25 BW with mono card

                bit 3    Motherboard
                bit 2    RAM size
                    00 = 16K
                    01 = 32K
                    10 = 48K
                    11 = 64K

                bit 1    Floating-point coprocessor
                bit 0    Boot from diskette

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