Category : C Source Code
Archive   : BYEPC300.ZIP
Filename : PUTC.ASM

 
Output of file : PUTC.ASM contained in archive : BYEPC300.ZIP
INCLUDE MODEL.INC
;
;---------------------------------------------------------------------------
; Function: int _bye_putc(c)
;
; Parms: int c; character to send
;
; Purpose: Send the character to the modem via BYE-PC. Note
; that if nulls are in effect that these will not be
; sent a line feed character. The user must handle any
; nulls that are needed by 'get_nulls()'.
;
; Return: EOF = timeout error
; 0 = Tx ok
;---------------------------------------------------------------------------
;
PUBLIC __bye_putc

__bye_putc PROC

push bp ;standard 'C' function entry
mov bp,sp

mov ax,ARG1 ;char to tx in AL
mov ah,1 ;AH=1 for putc
int BYE_VECT

mov sp,bp ;standard 'C' exit
pop bp
ret

__bye_putc ENDP
END



  3 Responses to “Category : C Source Code
Archive   : BYEPC300.ZIP
Filename : PUTC.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/