INT17 calls to read user switches
The INT17 functions provide an easy method to implement software routines
according to whether or not a user switch is On.
Function:
0fbh
Sub-Function:
0bh
Purpose:
To read user jumper
Calling Registers:
AH
0fbh
AL
0bh
DX
0ffffh
Return Registers:
AL
Jumper data
bit 0 user jumper 1. 1=on, 0=off
Carry flag set if error
AL
Error
code
Comments:
This function shall be used to read the user
switches
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
unsigned char aData;
asm {
MOV
AX, 0fb0bh
MOV
DX, 0ffffh
INT
17h
MOV
aData, AL
}
if (aData & 1)
printf(“U1 switch is ON\n”);
91
Содержание 5266
Страница 18: ...Figure 2 1 5266 component diagram top 18 ...
Страница 19: ...Figure 2 2 5266 component diagram bottom 19 ...
Страница 20: ...Figure 2 3 5266 dimensions inches 20 ...
Страница 21: ...Figure 2 4 5266 dimensions mm 21 ...