home *** CD-ROM | disk | FTP | other *** search
- *
- * Maxon C++:
- *
- * Library-Modul "stream_longint"
- *
- * Jens Gelhar 22.04.92, 16.04.94
- *
-
- xdef op__leftshift__ostream__Tl,op__leftshift__ostream__TUl
-
- xref _vlongtostr,_uvlongtostr,op__leftshift__ostream__TPCc
-
- op__leftshift__ostream__Tl: ; Stack-Parameter: ostream&, long long
- move.l a0,-(a7)
- move.l 8(a7),a0
- lea -54(a7),a7
- move.l a0,-(a7)
- move.w #10,-(a7)
- move.l (a0),a0
- move.b 4(a0),d0
- cmp.b #8,d0
- beq.b tl1
- cmp.b #16,d0
- bne.b tl2
- tl1 move.b d0,1(a7)
- tl2 pea 2+8(a7)
- move.l 6+58+8+8(a7),-(a7)
- move.l 6+58+8+8(a7),-(a7)
- jsr _vlongtostr
- lea 14(a7),a7
- move.l d0,4(a7)
- jsr op__leftshift__ostream__TPCc
- lea 50+8(a7),a7
- move.l (a7)+,a0
- move.l 4(a7),d0
- rts
-
- op__leftshift__ostream__TUl: ; Stack-Parameter: ostream&, unsigned long long
- move.l a0,-(a7)
- move.l 8(a7),a0
- lea -50-4(a7),a7
- move.l a0,-(a7)
- move.w #10,-(a7)
- move.l (a0),a0
- move.b 4(a0),d0
- cmp.b #8,d0
- beq.b tul1
- cmp.b #16,d0
- bne.b tul2
- tul1 move.b d0,1(a7)
- tul2 pea 2+8(a7)
- move.l 6+58+8+8(a7),-(a7)
- move.l 6+58+8+8(a7),-(a7)
- jsr _uvlongtostr
- lea 14(a7),a7
- move.l d0,4(a7)
- jsr op__leftshift__ostream__TPCc
- lea 50+8(a7),a7
- move.l (a7)+,a0
- move.l 4(a7),d0
- rts
-
- end
-