Download Print this page

HP Vectra Technical Reference Manual page 240

Hide thumbs Also See for Vectra:

Advertisement

On Exit:
AH
=
Line status (see table 7.5)
Normal Completion Full Transfer:
AL
=
last byte read
ex
=
Number of bytes transferred successfully
ES:DI
=
Base of data buffer
Normal Completion Terminate Character Detected:
AL
=
last byte read (terminate byte)
ex
=
Number of bytes transferred successfully
ES:DI
=
Base of data buffer
Error Completion (bit 7 of AH register non-zero):
AL
=
0, the null byte
ex
=
Number of bytes transferred successfully
ES:DI
=
pointer to next byte to be transferred
Registers Altered:
AX,
ex,
DI, ES
Example:
INJUFFER
DB
512 OUP (20H)
END_BUFFER:
START:
MOV AX, seg IN_BUFFER
,. set pointer
to
string
MOV ES,AX
LEA
01, offset INJUFFER
,
MOV AX, F14_TRMJUFFER
,. (AX
=
6F04H)
MOV CX, ENOJUFFER-INJUFFER
,. length of character
,. string
MOV OX,
0
,. Port
0
specification
INT
INT_SERIAL
,. Call serial driver
,. (lNT 14H)
TEST
AH, 10000000B
,. test for errors
JNZ
short ERRORJUT_STRING
CMP
AL, BL
,. lower bound?
JL
NOTJETWEEN
CMP
AL, BH
,. upper bound?
,.
JG
NOTJETWEEN
NOTJETWEEN:
Serial and Parrallel I/O
231

Advertisement

loading
Need help?

Need help?

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

Questions and answers