Re: [hatari-devel] Hatari clock question

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Sat, 20 Aug 2022 00:33:27 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> On 19.8.2022 23.34, Christian Zietz wrote:
> >> * Bug #2) Machines with no RTC i.e. ST & STE, which were supposed to
> >> initialize their clocks from host, show 2021-07-19, when host date is
> >> 2022-08-19, i.e. their month & year are both off by one.  EmuTOS or
> >> Hatari issue?
> >>
> >>     - When using TOS v2 instead of EmuTOS, date is 1991-11-14  
> > 
> > On machines without RTC, both EmuTOS and Atari TOS initialize the system
> > date to the TOS build date if no valid date is found stored in the IKBD.
> > Since Hatari 2.4 sadly ships with the already one-year-old EmuTOS 1.1.1,
> > you get its build date.  
> 
> I see.
> 
> 
> > We therefore must assume that initializing the
> > IKBD from the host did not work as intended.  
> 
> Hm.  Maybe I just misunderstood something.  Nicolas?

There is a comment in the EmuTOS sources that reads like this:

        /*
         * The IKBD clock powers up with zeros in the month & day
         * fields.  If we find that, we initialize it to the default
         * date/time, just like Atari TOS does.
         */

==> Maybe you've got to set month and day to the current date, too?

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/