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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    int _bye_rxsize()
  5. ;
  6. ;   Parms:    void
  7. ;
  8. ;   Purpose:    Test for characters waiting in the Rx-queue and
  9. ;        returns the number of characters in the queue. If
  10. ;        'size' is > 0 and '__bye_getch()' returns and EOF,
  11. ;        a buffer overflow occured and 'rx_flush' must be
  12. ;        called to reset counts.
  13. ;
  14. ;   Return:    Returns the number of characters in the Rx-queue
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_rxsize
  18.  
  19. __bye_rxsize   PROC
  20.  
  21.            mov  ah,6        ;AH=6 for get rx size
  22.            int  BYE_VECT
  23.            ret
  24.  
  25. __bye_rxsize   ENDP
  26.            END
  27.  
  28.