home *** CD-ROM | disk | FTP | other *** search
-
- * Maxon C++
- *
- * Library-Modul "stream_out"
- *
- * Jens Gelhar 31.08.93, 16.04.94
-
- xdef op__leftshift__ostream__TPCc,op__leftshift__ostream__Tc
- xdef put__ostream__Tc,write__ostream__TPCci
-
- xref __Writefile
-
- write__ostream__TPCci: ; Parameter: ostream&, const char*, int
- movem.l d2-d3/a2-a3/a6,-(a7)
- movem.l 5*4+4(a7),d1-d3
- move.l d1,a0
- bsr.b putti
- movem.l (a7)+,d2-d3/a2-a3/a6
- move.l 4(a7),d0
- rts
-
- putti: ; ostream a0:
- move.l (a0),a0 ; _filebufclass
- move.l (a0),a0 ; stream
- jmp __Writefile
-
- op__leftshift__ostream__TPCc: ; Parameter: ostream&, const char*
- movem.l d1-d3/a1-a3/a6,-(a7)
- movem.l 7*4+4(a7),a0/a1
- move.l a1,d2
- beq.b null
- moveq #0,d3
- count: addq.w #1,d3
- beq.b null
- tst.b (a1)+
- bne.b count
- subq.l #1,d3
- bsr.b putti
- null: movem.l (a7)+,d1-d3/a1-a3/a6
- move.l 4(a7),d0
- rts
-
-
- op__leftshift__ostream__Tc: ; Parameter: ostream&, char
- put__ostream__Tc:
- clr.w -(a7)
- move.b 2+4+4(a7),(a7)
- move.l a7,-(a7)
- move.l 4+2+4(a7),-(a7)
- bsr.b op__leftshift__ostream__TPCc
- lea 10(a7),a7
- rts
-
- end
-
-