<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Fri, 09 Dec 2011 08:45:26 +0100
From   : rick@... (Rick Murray)
Subject: BeebEm query

On 09/12/2011 07:03, jgh@... wrote:

> Is there a reason for BeebEm to subtract 20 from the year
> returned by the host system? In sysvia.ccp there is:

Yes. Y2K, BIOS quirks, etc.


> unsigned char RTCY2KAdjust=1;
> ...
> CMOSRAM[9] = BCD((CurTime->tm_year)-(RTCY2KAdjust ? 20 : 0));
                                                    ^^^^^^^^^
This is a short-form "if ... then". There ought to be a way to disable 
the RTC adjustment.


Hang on... did you read the <@&*#!> manual?

<clicky><clicky>

--8<--------
   RTC Y2K Adjust On/Off - When enabled the Master 128 real time clock
                           is adjusted by 20 years to allow for the Y2K
                           issues in the MOS.
--8<--------

It's a config option. And it is documented. And it is turn-offable.


So long as your MOS is good for Y2K, turn it off, have sane times.


Best wishes,

Rick.

-- 
Rick Murray, eeePC901 & ADSL WiFI'd into it, all ETLAs!
BBC B: DNFS, 2 x 5.25" floppies, EPROM prog, Acorn TTX
E01S FileStore, A3000/A5000/RiscPC/various PCs/blahblah...
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>