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: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 19 Aug 2022 10:52:12 +0200
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1660899132; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=FQjGvdEPyqm/ykZOeFibLqbbO8hmk391DSmmXC52QOQ=; b=EB/blLBPjaIKzJTi/0eiMBnPnWGY1TVm+zTUgNHMFumFO5Q6otG7D/t2CZmZzfCrE/ h5CjoRwOmkZXqVL9zlfgvm/1qFRhDfRI6L2wgbMpgth5noGPwOIuisbnAwlp+ntDe50R BIVsHlO2+lxiPcb9hvm2GzEOZOacK69UcnGRMgTcMbj8hwJtYoZiu5/TWxYsZKOA6T/I Q8LWSVIN9RZDll2hHXheEP6ZNv7apo0uUDRb1bpdGME2w2JWjPlG/dAjMq8kq/o4CovF MyKKrRTJEXW3OS/AUzGRKNB8s03yppL9O6SUrqzhUtA0F8m8uhXhbEhcms3FGxTtZyLq W5Gw==
Hi,
Thank you, but this does not seem to work. With --rtc-year 1990 the TT
emulation (XCONTROL) still shows 2022 as the year. When passing an illegal
value the error message refers to the wrong option, i.e --cpuclock instead
of --rtc-year:
rror while parsing argument "199" for option "--cpuclock":
Invalid RTC year
Best regards
Uwe
> Hi,
>
> On 17.8.2022 19.58, Uwe Seimet wrote:
> >>> I was thinking about potential problems in the future, when the date (the
> >>> year in particular) value increases. I have already seen such problems on
> >>> old Macs, where some applications fail to process current year values.
> >>
> >> I think best option to work around that would be to add "RTC year"
> >> option (e.g. "--rtc-year 1990"). Hatari would then internally offset
> >> year from gettimeofday() with suitable amount.
> >
> > Yes, just dealing with the year should be sufficient.
> >
> >> What would be suitable minimum year accepted by such option, should it
> >> be TOS version, or machine type specific, or would e.g. 1985 work as
> >> minimum for everything?
> >
> > 1980 is the base year for the Settime() XBIOS call, so it should IMO be the
> > minimum for everything.
>
> I pushed support for this.
>
>
> - Eero
>
>