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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    void _bye_setcd(flag)
  5. ;
  6. ;   Parms:    flag = 0    carrier check disabled
  7. ;        flag = 1    carrier check enabled
  8. ;
  9. ;   Purpose:    Sets a flag in BYE-PC to ignore carrier detect
  10. ;        status. This is used before writing to a file to
  11. ;        prevent warm booting while writing to disk in the
  12. ;        event carrier is lost during a disk write.
  13. ;
  14. ;   Return:    void
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_setcd
  18.  
  19. __bye_setcd    PROC
  20.  
  21.            push bp            ;standard 'C' function entry
  22.            mov  bp,sp
  23.  
  24.            mov  ax,ARG1        ;cd check state in AL
  25.            mov  ah,4        ;AH=4 for set CD check
  26.            int  BYE_VECT
  27.  
  28.            mov  sp,bp        ;standard 'C' exit
  29.            pop  bp
  30.            ret
  31.  
  32. __bye_setcd    ENDP
  33.            END
  34.  
  35.