home *** CD-ROM | disk | FTP | other *** search
- 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
-