Read I/O - Octagon Systems XE–700 Reference Manual

Table of Contents

Advertisement

mov
int
}

Read I/O

Function:
Subfunction:
Purpose:
Calling registers:
Return registers:
Carry flag cleared if successful
Carry flag set if error
Comments:
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov
mov
int
mov
mov
mov
}
dx,0ffffh
17h
efh
02h
To read from an I/O port.
AH
efh
AL
02h
DX
ffffh
AL
Port A data
Ah
Port B data
BL
Port C data
AL
Error code
This function is used to read from the
I/O.
ax,0efoch
dx,0ffffh
17h
aData,al
bData,ah
cData,bl
69

Advertisement

Table of Contents
loading

Table of Contents