INT 14H
;AH = 0E0h
INSTALL CHECK
;OUT: AX = 3E3EH
;AH = 0E1H
COMINIT PROC FAR
;IN: AL = PORT NO, 1=COM1, 2=COM2, 3=COM3, 4=COM4
; CX:DX = BAUD RATE ; MAX VALUE IS 1C200H
;OUT: AH=0 INIT OK
; AH=0FFH INIT ERROR
; DESTROY CX, DX
;AH = 0E2H
COMCLOSE PROC FAR
;OUT: AX = 0
;AH = 0E3H
CONNECT PROC FAR
;OUT: AH=0 AL=0FDH CONNECTED AS SERVER
; AL=0FEH CONNECTED AS CLIENT
; AH=0FFH ERROR
;AH = 0E4H
SENDDATA PROC FAR
;IN: DS:SI -> USER DATA
; CX = USER DATA LENGTH
;OUT: AH=0 SUCCEED SEND DATA
; AH=0FFH ERROR
;AH = 0E5H
RECEDATA PROC FAR
;IN: ES:DI -> BUFFER TO ACCEPT DATA
; CX = BUFFER LENGTH
;OUT: AH=0
; CX=RECEIVED DATA LENGTH ; SUCCEED SEND DATA
; AH=0FFH ERROR
|