home *** CD-ROM | disk | FTP | other *** search
-
- ; Himpelsoft C++ Projekt
- ; Library-Modul "putstr"
- ; Jens Gelhar 19.03.93, 15.12.94
-
- xdef _puts,puts__PCc
- xdef _fputs,fputs__PCcP06stream
-
- xref _std__out,__Writefile
-
- _puts:
- puts__PCc:
- movem.l d2/d3/a6,-(a7)
- pea _std__out
- move.l 4+3*4+4(a7),-(a7)
- bsr.b _fputs
- ; Linefeed schreiben
- addq.l #4,a7
- move.l (a7)+,a0
- move.l #lfstr,d2
- moveq #1,d3
- tst.l d0
- bmi.b .err
- jsr __Writefile
- .err movem.l (a7)+,d2/d3/a6
- rts
-
- _fputs:
- fputs__PCcP06stream: ; Stack-Parameter: char*, stream*
- movem.l d2/d3/a6,-(a7)
- move.l 3*4+4(a7),d2 ; Zeiger auf String
- move.l d2,a0
- moveq #-1,d3
- count: addq.l #1,d3
- tst.b (a0)+
- bne.b count
- move.l 3*4+8(a7),a0
- jsr __Writefile
- movem.l (a7)+,d2/d3/a6
- rts
-
- lfstr: dc.b 10,0
-
- end
-