home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff390.lzh
/
SetClock
/
SetClock.doc
< prev
next >
Wrap
Text File
|
1990-10-23
|
3KB
|
40 lines
Initially, I wrote this utility to replace the program supplied by Spirit
Technology to set the hardware clock on the memory expansion board in my
Amiga 1000. The utility supplied by Spirit to set the hardware clock on
their board required that both the date and time be supplied on the command
line in a very precise format that I could never remember. A utility to
simply transfer the time from the AmigaDOS system clock to the Spirit
hardware clock would be much easier to use since the CLI "Date" command has
an extremely flexible format. When I first decided to write such a utility,
I wasn't aware that such a utility was standard equipment on the Amiga 500
and 2000.
I wrote the first version of this utility shortly after Pat Quaid's
implementation of Pascal became available on Fred Fish disk #183. I started
to put a disk together to send to Fred, but never did. Not too long ago, I
acquired an Amiga 2000 and learned how the CLI "SetClock" command works.
Shortly after acquiring the 2000, I got a newer version of PCQ Pascal
directly from Pat Quaid. That version is the one that appears on Fred Fish
disk #339. I decided to get off my duff and submit this collection of files
to Fred for two reasons. First, there might still be people in the Amiga
community who still own a 1000 and would find this to be a useful utility.
Secondly, I am a great fan of the Pascal language and think that Pascal is
an ideal language for writing this kind of program.
The utility has only been tested in a CLI environment. To set the
AmigaDOS system clock from the Spirit hardware clock on their memory
expansion board, enter "SetClock load". To set the Spirit hardware clock
from the AmigaDOS system clock, first set the date and time to the correct
value by using the CLI "Date" command. Then, enter "SetClock save".
This documentation file should be accompanied by the Pascal and assembler
source files. The Pascal source file is named "SetClock.pas" and should be
in the sub-directory named Examples. The assembler source file is named
"RWSClock.asm". The file named "SetClock.mak" is a CLI script file that can
be used to re-compile SetClock, provided you have all the files that were on
Fred Fish disk #339.
The Include directory contains four Pascal include files. The one named
"ExecStdIO.i" is one that is NOT on FF disk #339. The "Ports.i" and
"TimerDevice.i" files contain changes that I had to make to get SetClock to
compile without error. I've also included a version of "Intuition.i" that
corrects a problem that caused a compilation error on the sample program
named "Moire.p", on FF disk #339.