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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    int _bye_settimeon(mins)
  5. ;
  6. ;   Parms:    int mins; --> max time in minutes (0-255, 0=Unlimited)
  7. ;
  8. ;   Purpose:    Sets the timeout for the amount of time allowed on
  9. ;        the system for the caller online.
  10. ;
  11. ;   Return:    void
  12. ;---------------------------------------------------------------------------
  13. ;
  14.            PUBLIC __bye_settimeon
  15.  
  16. __bye_settimeon PROC
  17.  
  18.            push bp            ;standard 'C' function entry
  19.            mov  bp,sp
  20.  
  21.            mov  ax,ARG1        ;max time on in AL
  22.            mov  ah,17        ;AH=17 for set time on
  23.            int  BYE_VECT
  24.  
  25.            mov  sp,bp        ;standard 'C' exit
  26.            pop  bp
  27.            ret
  28.  
  29. __bye_settimeon ENDP
  30.            END
  31.  
  32.