[hatari-devel] Mega ST clock

Thomas Huth huth at users.berlios.de
Wed Apr 20 20:43:59 CEST 2011


Am Wed, 20 Apr 2011 17:15:26 +0200
schrieb Vincent Rivière <vincent.riviere at freesbee.fr>:

> Hello.
> 
> I'm currently fixing EmuTOS which has various bugs related to the
> clock. Now I work on the Mega ST clock.
> 
> I notice that Hatari returns the year 31 for 2011. By looking at
> Hatari sources, I see:
> 
> src/rtc.c, function Rtc_YearTens_ReadByte():
> IoMem[0xfffc39] = (SystemTime->tm_year - 80) / 10;
> 
> Is that 80 offset something official ?

It's at least documented this way in the german "Atari ST-STE-TT
Profibuch" ... which was the best german documentation about the Ataris
back in the good old days, so I assume that should be correct.

 Thomas



More information about the hatari-devel mailing list