mov
dx,0ffffh
int
17h
}
Read I/O
Function: efh
Subfunction: 02h
Purpose:
To read from an I/O port.
Calling registers:
AH
efh
AL
02h
DX
ffffh
Return registers:
AL
Port A data
Ah
Port B data
BL
Port C data
Carry flag cleared if successful
Carry flag set if error
AL
Error
code
Comments:
This function is used to read from the
I/O.
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov
ax,0efoch
mov
dx,0ffffh
int
17h
mov
aData,al
mov
bData,ah
mov
cData,bl
}
68
Содержание XE-800
Страница 18: ...Figure 2 1 XE 800 SBC component diagram top 18 ...
Страница 19: ...Figure 2 2 XE 800 SBC component diagram bottom 19 ...
Страница 20: ...Figure 2 3 XE 800 SBC dimensions 20 ...
Страница 89: ...MOV AX 0fb0bh MOV DX 0ffffh INT 17h MOV aData AL if aData 1 printf U1 jumper is ON n 89 ...