[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time entry patch for AW3.0 exist?



In article <2s4s7s$3ma@hermes.unt.edu>,
Phillip "Ty" Young <tyoung@jove.acs.unt.edu> wrote:
> I have an Apple //c+ with NO clock card (memory, yes, but no clock) in 
> the amount of 1 meg of RAM.  Every now and then, though, it's nice to be 
> able to refer to the TIME I wrote a document, as well as the date...is 
> there a patch for AW 3.0 that allows the user to enter time in, as he/she 
> does the date, upon startup?

I'm not aware of one.  I haven't used TimeOut UltraMacros, but I'm
pretty sure it supports a memory poke operation.  All you'd have to do
is poke the desired time into the appropriate locations on the ProDOS
global page.

You could also do this from BASIC, assuming AppleWorks doesn't zero
out the time on startup.

The appropriate locations are 49042 ($BF92) for the minutes and 49043
($BF93) for the hours.  The hours value ranges from 0 to 23, and the
minutes from 0 to 59.

For example, the following dead simple program will ask you for the
time and poke it into ProDOS's global page.  You can easily add a
command to make it launch AppleWorks.

10 PRINT "Enter the time": PRINT
20 INPUT "Hours? ";H: IF H < 0 OR H > 23 THEN GOTO 20
30 INPUT "Minutes? ";M: IF M < 0 OR M > 59 THEN GOTO 30
40 POKE 49042,M: POKE 49043,H
-- 
David Empson
dempson@actrix.gen.nz
Snail mail: P.O. Box 27-103, Wellington, New Zealand