Re: [hatari-devel] Hatari clock question |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari clock question
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sat, 20 Aug 2022 09:17:48 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1660987076; bh=lO4pxoxc8tI3TBE28Pop9vmmhjnvztpLZVhuPtHInYk=; h=Date:From:To:Subject:From; b=lzPy0A6RWV5kXZCEt/eLgRnKyxTyf+mN0GmEob4UHQVzqHSpID3dvv4gZ84LM26Pe fIyMT4t03XudZRsXLy2zlEym/3mV19T/M/kN/YIyS5uDn5Gtda9+xcKYdsQyz59sSp iNwiKVBRb595eV0IG51pJjqWq+zH7CFsETnnoNXbUxwhIY6frxPpSaJfwwhWU3tvBR xDAQ9rMmvOqEAnViSGWieSgoDxAwUB2eGeG/NeWoUnmQwcoEB9aLrHvRsWC4WFta1A VFMHOdI1uII9whMnZV2xrJ8ucf/FNM+/OKSLQOrhMmF72+Uc5n77Q640m/mg5JeGhw Xt+QQ4M4rgXFA==
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