> Hello all,
>
> > Research in the MILC learned me, that the clockchip uses two nibbles for
> > storing the date. The max value stored is &H99, this is decimal 155,
> > and 1980+155 = 2135. So the clockchip gives the correct date until 2135
> > (Doubt if I make it till then ..) It's only the software ...
>
> AFAIK, the clockchip uses BCD for storing its info, so &H99 means decimal
> 99, not 155...
Yeah.
Read your docs a little more careful.
You know what BCD is, do you? Storing a decimal value in hexadecimal form,
so #09 + #01 = #10
(where # means Hex).
The Z80 has even got a special instruction for this.
~Grauw
--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
email me: [EMAIL PROTECTED] or ICQ: 10196372
visit the Datax homepage at http://datax.cjb.net/
MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****