home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / asm_kit / outcb.asm < prev    next >
Assembly Source File  |  1985-06-21  |  640b  |  20 lines

  1. ;ROUTINE TO HANDLE OUTPUT FROM A CIRCULAR BUFFER
  2. ;
  3. outcbuff      proc     far
  4. ;
  5. ;check for enough characters in the buffer
  6.               cmp      guage,blksize   ;any characters?
  7.               jl       outcbuffexit    ;exit if no characters
  8. ;
  9. empty the buffer
  10.               call     comoff          ;hold the comm line
  11.               call     flushit         ;flush the buffer
  12.               jc       outcbuffret     ;error?
  13. ;
  14. outcbuffexit:
  15.               clc      ;clear carry - no exception
  16. outcbuffret:
  17.               ret
  18. ;
  19. outbuff       endp
  20.