<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 03 Jul 2005 12:14:24 +0100
From   : jgh@... (Jonathan Graham Harston)
Subject: Re: Sprow- 'tricking' the MOS on a Master 128

"BeebMaster" <beebmaster@...> wrote:
> There are various "millennium bug" fixes for the Master available on the
> internet but the best method I found is to have a short ROM image which
> intercepts OSWORD and then checks for an OSWORD 14 and then overwrites
> "19" in the output string with "20".
or, when *your program* calls OSWORD, overwrite "19" with "20".
My prefered method is to actually write the code that calls OSWORD
correctly!
  Call OSWORD
  year%=1900+?X%-100*(?X%<81)
 
correctly reads the time with the year ranging from 1981 to 2080.
 
> Personally I prefer the good old twentieth-century date although the
> problem is even worse when it comes to Econet as generally dates after
> 1996 are not accepted!
 
Again, the result of lazy programmers refusing to call the API correctly.
 
  Call FSOp
  year%=X%?5 DIV 16+(X%?4 AND&E0) DIV 2
  date%=X%?5 AND 15
  month%=X%?4 AND 31
 
correctly reads NetFS style dates with the year ranging from 1981 to 2108.
 
-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
Prospective Parliamentary Candidate for Sheffield Brightside
Sheffield Boundary Review at http://mdfs.net/User/JGH/Docs/Politics/ParlReview
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>