home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!munnari.oz.au!metro!cs.uow.edu.au!david
- From: david@cs.uow.edu.au (David E A Wilson)
- Subject: Re: Apple Pascal 1.3 - how does the Filer Date command work?
- Message-ID: <1993Jan21.221755.29815@cs.uow.edu.au>
- Organization: Dept of Computer Science, Wollongong University, Australia
- References: <1993Jan16.054739.21612@cs.uow.edu.au>
- Date: Thu, 21 Jan 1993 22:17:55 GMT
- Lines: 24
-
- 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
-