Category : C Source Code
Archive   : BYEPC300.ZIP
Filename : DTR.ASM

 
Output of file : DTR.ASM contained in archive : BYEPC300.ZIP
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



  3 Responses to “Category : C Source Code
Archive   : BYEPC300.ZIP
Filename : DTR.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/