<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Fri, 09 Dec 2011 06:03:41 +0000
From   : jgh@... (jgh@...)
Subject: BeebEm query

I've had a look around for a discussion forum/list/etc for BeebEm
development, but couldn't find anything (other than an empty
SourceForge forum), so I'm asking here:

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

unsigned char RTCY2KAdjust=1;
...
CMOSRAM[9] = BCD((CurTime->tm_year)-(RTCY2KAdjust ? 20 : 0));

This results, on my PC with the host time set to 08-Dec-2011
with OSWORD 14 returning 08-Dec-1991. Testing confirms this
is consistant, setting the host time to 08-Dec-1995 results
in OSWORD 14 returning 08-Dec-1975 !

(I noticed BeebEm 3.0, which I've been using to test some
IDE tools, was subtracting 10 from the year. I fixed that
by tracking down the relevant 'sub dl,#10' and poking it
to 'sub dl,#0'.)

JGH
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>