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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    int _bye_stdin(flag)
  5. ;
  6. ;   Parms:    flag = 1 Chars from modem merged with stdin
  7. ;        flag = 0 Chars from modem not merged with stdin
  8. ;
  9. ;   Purpose:    This is used to temporarily toggle the input from
  10. ;        the remote station on/off. The rx-queue is still active
  11. ;        and continues to collect data while modem is not
  12. ;        being merged.
  13. ;
  14. ;   Return:    void
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_stdin
  18.  
  19. __bye_stdin    PROC
  20.  
  21.            push bp            ;standard 'C' function entry
  22.            mov  bp,sp
  23.  
  24.            mov  ax,ARG1        ;stdin state in AL
  25.            mov  ah,9        ;AH=9 for set stdin mode
  26.            int  BYE_VECT
  27.  
  28.            mov  sp,bp        ;standard 'C' exit
  29.            pop  bp
  30.            ret
  31.  
  32. __bye_stdin    ENDP
  33.            END
  34.  
  35.