[hatari-devel] Mega ST clock

Eero Tamminen oak at helsinkinet.fi
Wed Apr 20 23:24:03 CEST 2011


Hi,

On keskiviikko 20 huhtikuu 2011, Thomas Huth wrote:
> Am Wed, 20 Apr 2011 17:15:26 +0200
> schrieb Vincent Rivière <vincent.riviere at freesbee.fr>:
> > 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.

Also according to GEMDOS Fdatime() documentation, the year is expressed as
an offset from 1980...

(Same calculation happens in gemdos.c)


	- Eero



More information about the hatari-devel mailing list