home *** CD-ROM | disk | FTP | other *** search
-
- * Maxon C++ Library:
- * Modul "time"
- * Jens Gelhar 28.05.92
-
- xdef _time,time__PUi
-
- xref _DOSBase
-
- DateStamp = -192
-
- ; time_t ist LW mit komprimiertem Datestamp:
- ; 0 - 16 sec.
- ; 17 - 31 days
-
- _time:
- time__PUi:
- movem.l d1-d3/a6,-(a7)
- move.l _DOSBase,a6
- lea -12(a7),a7
- move.l a7,d1
- jsr DateStamp(a6)
- move.l (a7)+,d0 ; Days
- moveq #17,d1
- asl.l d1,d0
- move.l (a7)+,d1 ; Minutes
- mulu #60,d1
- or.l d1,d0
- move.l (a7)+,d1 ; Ticks
- divu #50,d1
- ext.l d1
- add.l d1,d0
- movem.l (a7)+,d1-d3
- tst.l 4+4(a7)
- beq.b t1
- move.l 4+4(a7),a6
- move.l d0,(a6)
- t1 move.l (a7)+,a6
- rts
-
- end
-