Download Print this page

HP Vectra Technical Reference Manual page 239

Hide thumbs Also See for Vectra:

Advertisement

Example:
IN--.-BUFFER
DB
512 OUP (20H)
ENO--.-BUFFER:
START:
MOV AX, seg IN--.-BUFFER
MOV ES, AX
LEA
01, offset IN_BUFFER
MOV AX, F14_GET--.-BUFFER
MOV CX, ENO--.-BUFFER-IN--.-BUFFER
MOV OX, 0
INT
INT-3ERIAL
TEST
AH, 10000000B
JNZ
short ERROR_PUT_STRING
" set pointer
to
string
,
,. (AX
=
6F03H)
,. length of character
,. string
,. Port 0 specification
,. Call serial driver (lNT 14H)
,. test for errors
This function will read characters into the specified data buffer until anyone of the following
three conditions occurs:
The data buffer is filled with characters.
A character is read which is between the upper bound and the lower bound, inclusive.
An error or timeout condition is encountered.
For each byte, the signal DATA-TERMINAL-READY is enabled in the modem control register
indicating to the remote device that data can be sent. The modem status register signal
DATA-SET-READY and the line status register signal DATA-READY are polled until a data byte is
available to read or the timeout count has expired. After the data byte is read it is inspected to
see if it lies between the two boundary bytes. If the byte is in between the two bytes then the
transfer is terminated. This function is useful for transferring logical records.
On Entry:
AX
=
F14_TRM_BUFFER (6F04H)
BL
=
lower bound of termination character
BH
=
upper bound of termination character
ex
=
maximum buffer size
DX
=
Port number (0, 1, 2, 3)
ES:DI
=
Pointer to a data buffer
230
Serial and Parrallel I/O

Advertisement

loading
Need help?

Need help?

Do you have a question about the Vectra and is the answer not in the manual?

Subscribe to Our Youtube Channel