[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple Pascal 1.3 - how does the Filer Date command work?
david@cs.uow.edu.au (David E A Wilson) writes:
>I have a Smartwatch in my //e and would like to add a startup program to my
>Pascal system to set the date. Can anyone explain exactly what the Date command
>does (in detail). I assume it writes to the system disk but it should, I think,
>keep it in memory somewhere (but where?)
Well, I wrote a little program to search memory and it managed to find where
Pascal v1.3 (128k) keeps the current date. It is in $B85A..$B85B in the
following format:
| B85B | B85A |
| Year | Day | Month |
7bits 5bits 4bits
This is the format the following Pascal definition gives:
daterec = packed record of
month : 0..12;
day : 0..31;
year : 0..100 (* 100 is for temp files *)
end;
--
David Wilson +61 42 213802 voice, +61 42 213262 fax
Dept Comp Sci, Uni of Wollongong david@cs.uow.edu.au