home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / modem / byepc300.arc / BYEXLIB.ARC / DTR.ASM < prev    next >
Assembly Source File  |  1987-10-25  |  905b  |  36 lines

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    void _bye_dtr(flag)
  5. ;
  6. ;   Parms:    flag = 1    DTR/CTS line ON
  7. ;        flag = 0    DTR/CTS line OFF
  8. ;
  9. ;   Purpose:    Toggle the DTR line on the modem to hangup. If the
  10. ;        carrier detect status is enabled, the system will
  11. ;        hangup and re-boot if this is called with dtr off.
  12. ;        The function 'set_cd()' should be used to prevent
  13. ;        this is needed.
  14. ;
  15. ;   Return:    void
  16. ;---------------------------------------------------------------------------
  17. ;
  18.            PUBLIC __bye_dtr
  19.  
  20. __bye_dtr      PROC
  21.  
  22.            push bp            ;standard 'C' function entry
  23.            mov  bp,sp
  24.  
  25.            mov  ax,ARG1        ;dtr state in AL
  26.            mov  ah,2        ;AH=2 for set dtr
  27.            int  BYE_VECT
  28.  
  29.            mov  sp,bp        ;standard 'C' exit
  30.            pop  bp
  31.            ret
  32.  
  33. __bye_dtr      ENDP
  34.            END
  35.  
  36.