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
16 .constructor initsystime
18 .import _get_tv, _get_ostype
21 ;----------------------------------------------------------------------------
41 lda CIA1_TOD10 ; Dummy read to unfreeze
46 ; dec = (((BCD>>4)*10) + (BCD&0xf))
62 ;----------------------------------------------------------------------------
63 ; Constructor that writes to the 1/10 sec register of the TOD to kick it
64 ; into action. If this is not done, the clock hangs. We will read the register
65 ; and write it again, ignoring a possible change in between.
85 ;----------------------------------------------------------------------------
86 ; TM struct with date set to 1970-01-01