home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
modem
/
byepc300.arc
/
BYEXLIB.ARC
/
DTR.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-10-25
|
905b
|
36 lines
INCLUDE MODEL.INC
;
;---------------------------------------------------------------------------
; Function: void _bye_dtr(flag)
;
; Parms: flag = 1 DTR/CTS line ON
; flag = 0 DTR/CTS line OFF
;
; Purpose: Toggle the DTR line on the modem to hangup. If the
; carrier detect status is enabled, the system will
; hangup and re-boot if this is called with dtr off.
; The function 'set_cd()' should be used to prevent
; this is needed.
;
; Return: void
;---------------------------------------------------------------------------
;
PUBLIC __bye_dtr
__bye_dtr PROC
push bp ;standard 'C' function entry
mov bp,sp
mov ax,ARG1 ;dtr state in AL
mov ah,2 ;AH=2 for set dtr
int BYE_VECT
mov sp,bp ;standard 'C' exit
pop bp
ret
__bye_dtr ENDP
END