home *** CD-ROM | disk | FTP | other *** search
-
-
- Most of the system configuration details are stored in bytes
- 0000:0410h and 0000:0411h. The settings of various bits
- represent what is present.
-
- 0000:0410h
-
- 76543210
- PP-G-SS-
-
- Bits 6 and 7 hold the number of parallel ports installed
- (0-3).
-
- Bit 4 is set if the games adaptor is installed (IBM
- joystick)
-
- Bits 1 and 2 hold the number of serial ports (0-3)
-
-
- 0000:0411h
-
- 76543210
- -DVV--M-
-
- Bit 6 is set if a second floppy diskette drive is installed
-
- Bits 4 and 5 indicate the default monitor mode
-
- 01 CGA in 40 column mode
- 10 CGA in 80 column mode
- 11 IBM Monochrome display
-
- Bit 1 is set if a math coprocessor is installed
-
- The above can also equivalent to INT 11h with AH returning
- byte 0000:0410h and AL returning 0000:0411h.
-
-
-
- 0000:0413h and 0000:0414h contain the ammount of RAM
- present. Equivalent to INT 12h with AX containing the RAM
- size in Kb.
-
-
-
- 0000:0475h contains the number of fixed disks installed
- (0-2)
-
-
-
- 0000:417h contains the keyboard status. A bit is set if the
- corresponding key is depressed or locked on eg Caps, Num or
- Scroll
-
- 76543210
- IUNSACLR
-
- I - Insert
- U - Caps Lock
- N - Num Lock
- S - Scroll Lock
- A - Alt
- C - Control
- L - Left Shift
- R - Right Shift
-
-
-
- The computer type is stored in the BIOS ROM at FFFF:000Eh.
- The value indicates the machine type :
-
- FFh : PC
- FEh : XT or PC Portable
- FDh : PC Jnr
- FCh : AT
-
- However whilst the 1512 correctly states it is a PC, on some
- other clones this will return either the wrong type, or just
- an untranslatable number. In practice, this location is not
- really useful.
-
-
-
- The version of DOS is obtained by INT 21h with AH set to 30h
- before calling. On return, AL containes the major version
- and AH the minor eg 0003 is DOS 3.00
-