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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    void _bye_rxflush()
  5. ;
  6. ;   Parms:    void
  7. ;
  8. ;   Purpose:    Removes characters waiting in the Rx-queue and
  9. ;        resets the Rx-character counter to 0. This is
  10. ;        used to reset after a buffer overflow and before
  11. ;        starting any data transfers to remove any trash
  12. ;        from the Rx-queue.
  13. ;
  14. ;   Return:    void
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_rxflush
  18.  
  19. __bye_rxflush  PROC
  20.  
  21.            mov  ah,5        ;AH=5 for rx flush
  22.            int  BYE_VECT
  23.            ret
  24.  
  25. __bye_rxflush  ENDP
  26.            END
  27.  
  28.