2 ; Stefan Haubenthal, 27.7.2009
4 ; time_t _systime (void);
5 ; /* Similar to time(), but:
7 ; * - Does not take the additional pointer
8 ; * - Does not set errno when returning -1
15 .constructor initsystime
19 ;----------------------------------------------------------------------------
39 lda CIA1_TOD10 ; Dummy read to unfreeze
44 ; dec = (((BCD>>4)*10) + (BCD&0xf))
60 ;----------------------------------------------------------------------------
61 ; Constructor that writes to the 1/10 sec register of the TOD to kick it
62 ; into action. If this is not done, the clock hangs. We will read the register
63 ; and write it again, ignoring a possible change in between.
74 ;----------------------------------------------------------------------------
75 ; TM struct with date set to 1970-01-01