Example:
STRING
DB
END_STRING:
START:
'Hello'
MOV AX, seg STRING
MOV ES, AX
MOV
01,
offset STRING
MOV AX, F14_PUT_BUFFER
MOV CX, ENO_STRING-STRING
MOV OX,
0
INT
INT_SERIAL
TEST
AH, 10000000B
JNZ
short ERROR__PUT_STRING
; set pointer to string
,
; (AX
=
6F02H)
,. length
of
character
,. string
,. Port
0
specification
,. Call serial driver
; (lNT 14H)
,. test for errors
This function reads characters into the specified data buffer until the buffer is full or a timeout
occurs. 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.
On Entry:
AX
=
F14_GET_BUFFER (6F03H)
CX
=
maximum buffer size
DX
=
Port number (0, 1, 2, 3)
ES:DI
=
Pointer to a data buffer
On Exit:
AH
=
Line status (see table 7.5)
Normal Completion:
AL
=
last byte read
ex
=
Number of bytes transferred successfully
ES:OI
=
Base of data buffer
Error Completion (bit 7 of AH register non-zero):
AL
=
0, the null byte
CX
=
Number of bytes transferred successfully
ES:OI
=
pointer to next byte to be transferred
Registers Altered:
AX,
ex,
01, ES
Serial and Parrallell/O
229
Need help?
Do you have a question about the Vectra and is the answer not in the manual?
Questions and answers