Re: [hatari-devel] Hatari clock question

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


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?


> PS: RTC in TT and Falcon:
> https://git.tuxfamily.org/hatari/hatari.git/tree/src/ioMemTabTT.c#n153
> https://git.tuxfamily.org/hatari/hatari.git/tree/src/ioMemTabFalcon.c#n358

:facepalm:

Thanks, I completely forgot that on TT / Falcon, RTC is in NVRAM, not a separate thing emulated by rtc.c.

Uwe, I've now added similar "--rtc-year" support also for NVRAM RTC.


	- Eero



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