home *** CD-ROM | disk | FTP | other *** search
-
- * Maxon C++:
- *
- * Library-Modul "stream_int"
- *
- * Jens Gelhar 22.04.92, 15.04.94
-
- xdef op__leftshift__ostream__Ti,op__leftshift__ostream__TUi
- xdef op__leftshift__ostream__Tj,op__leftshift__ostream__TUj
- xdef op__leftshift__ostream__TSc,op__leftshift__ostream__TUc
-
- xref _inttostr,_uinttostr,op__leftshift__ostream__TPCc
-
- op__leftshift__ostream__Tj:
- op__leftshift__ostream__Ti: ; Stack-Parameter: ostream&, int
- move.l 4(a7),a0 ; ostream
- lea -50-4(a7),a7
- move.l a0,-(a7)
- move.w #10,-(a7)
- move.l (a0),a0 ; ios
- move.b 4(a0),d0
- cmp.b #8,d0
- beq.b olioct
- cmp.b #16,d0
- bne.b olidec
- olioct move.b d0,1(a7)
- olidec pea 2+8(a7)
- move.l 6+58+4+4(a7),-(a7)
- jsr _inttostr
- lea 10(a7),a7
- move.l d0,4(a7)
- jsr op__leftshift__ostream__TPCc
- lea 50+8(a7),a7
- move.l 4(a7),d0
- rts
-
- op__leftshift__ostream__TUj:
- op__leftshift__ostream__TUi: ; Stack-Parameter: ostream&, int
- 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.s oluoct
- cmp.b #16,d0
- bne.s oludec
- oluoct move.b d0,1(a7)
- oludec pea 2+8(a7)
- move.l 6+58+8+4(a7),-(a7)
- jsr _uinttostr
- lea 10(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__TSc:
- move.b 8(a7),d0
- ext.w d0
- ext.l d0
- move.l d0,-(a7)
- move.l 8(a7),-(a7)
- bsr op__leftshift__ostream__Ti
- addq.l #8,a7
- rts
-
- op__leftshift__ostream__TUc:
- moveq #0,d0
- move.b 8(a7),d0
- move.l d0,-(a7)
- move.l 8(a7),-(a7)
- bsr.s op__leftshift__ostream__TUi
- addq.l #8,a7
- rts
-
- end
-