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

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    int _bye_putc(c)
  5. ;
  6. ;   Parms:    int c;          character to send
  7. ;
  8. ;   Purpose:    Send the character to the modem via BYE-PC. Note
  9. ;        that if nulls are in effect that these will not be
  10. ;        sent a line feed character. The user must handle any
  11. ;        nulls that are needed by 'get_nulls()'.
  12. ;
  13. ;   Return:    EOF = timeout error
  14. ;         0  = Tx ok
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_putc
  18.  
  19. __bye_putc     PROC
  20.  
  21.            push bp            ;standard 'C' function entry
  22.            mov  bp,sp
  23.  
  24.            mov  ax,ARG1        ;char to tx in AL
  25.            mov  ah,1        ;AH=1 for putc
  26.            int  BYE_VECT
  27.  
  28.            mov  sp,bp        ;standard 'C' exit
  29.            pop  bp
  30.            ret
  31.  
  32. __bye_putc     ENDP
  33.            END
  34.  
  35.