home *** CD-ROM | disk | FTP | other *** search
- include compiler.inc
-
- ttl FPUTS, 1.04, 08-28-86, clr
-
-
- ;---------------------------------------------------------------;
- ; ;
- ; #include "stdio.h" ;
- ; ;
- ; fputs (bfr, strm) char * bfr; FILE * strm; ;
- ; { while (*bfr) ;
- ; fputc (*bfr++, strm); ;
- ; } ;
- ; ;
- ;---------------------------------------------------------------;
-
- dseg
- extrn _ftb:byte
-
- cseg
-
- xtfs <fputc,$strhand>
-
- procdef fputs, <<bfr, ptr>, <strm, ptr>>
-
- pushreg
- pushds
-
- ldptr si,bfr
- fps1:
- cld
- lodsb
- or al,al
- jz fps2
-
- callit fputc,<<strm,ptr>,<ax,reg>>
- jmp fps1
-
- fps2: pret
-
- pend fputs
-
- finish
-
- end
-