Int17 Calls To Read User Switch; Int17 Calls To Read Bios Version - Octagon Systems XE–700 Reference Manual

Table of Contents

Advertisement

managers cannot be used in CONFIG.SYS.
3. At the DOS prompt for the "C" drive type phlash <enter>.
The utility will display a progress screen and tell you when the process is done. You
may need to push the reset button or cycle the power on the system to boot from
the updated BIOS.

INT17 calls to read user switch

The INT17 functions provide an easy method to implement software routines
according to whether or not a user switch is On.
Function:
Sub-Function:
Purpose:
Calling Registers:
Return Registers:
Carry flag set if error
Comments:
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
unsigned char aData;
asm {
if (aData & 1)
printf("U1 switch is ON\n");

INT17 calls to read BIOS version

The INT17 functions provide the version number of the currently-installed BIOS.
Function:
Sub-Function:
Purpose:
Calling Registers:
Return Registers:
90
0fbh
0bh
To read user switch
AH
AL
DX
Carry flag cleared if successful
AL
AL
This function shall be used to read the user
switch
MOV AX, 0fb0bh
MOV DX, 0ffffh
INT 17h
MOV aData, AL
}
0fbh
00h
To obtain the version number of the INT 17 BIOS
extension
AH
AL
DX
Carry flag cleared if successful
AL
0fbh
0bh
0ffffh
Switch data
bit 0 user switch 1. 1=on, 0=off
Error code
0fbh
00h
0ffffh
Major version number (e.g. Version 2.10

Advertisement

Table of Contents
loading

Table of Contents