home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
desktop
/
alarm91.arj
/
ALARM.DOC
< prev
next >
Wrap
Text File
|
1991-06-18
|
5KB
|
142 lines
Alarm Clock
-----------
91/6/11
Copyright 1991 Julian Byrne
Electrical and Computer Systems Engineering Department
Monash University, Clayton, Victoria, 3168, Australia
Internet: julian.byrne@monash.edu.au
Introduction
------------
These PC programs (ALARM.EXE and CLOCK.COM) allow hundreds of alarms to be set
years in the future. They're designed to conveniently and reliably remind you
about events such as anniversaries, appointments, birthdays, holidays and
knockoff time. They're also designed to be unobtrusive; once installed they
will only be visible when an alarm is triggered or needs to be set - unlike
some other programs they do not need to be manually checked every day.
CLOCK.COM is a small memory resident program. ALARM.EXE is a normal program
which is used to control CLOCK.COM.
These programs are freeware. You may copy and use them. You may not sell them.
Usual disclaimers apply.
Installation
------------
1. Put the files ALARM.EXE, CLOCK.COM and ALARM.DAT onto your boot disk.
2. Put these lines at the start of the AUTOEXEC.BAT file on your boot disk:
CLOCK
ALARM
If these lines are placed after any SET or PATH command then CLOCK will
occupy more memory than is necessary.
3. [Optional] Place the line "COUNTRY = ?" in your CONFIG.SYS file where "?"
is your country code, normally your country's international phone dialling
(ISD) prefix. This defines the format that MSDOS and ALARM will use to
display dates and times.
4. Reset your computer. The alarm file, normally ALARM.DAT, will be stored
in the same directory as ALARM.EXE. If an environment variable "ALARM"
is defined then it is assumed to be the name of the file where the alarms
will be stored.
Setting an alarm
----------------
alarm set
Use arrow keys, digit keys, and Enter key to select:
1. The date and time you want the alarm to go off.
The day of the week of the alarm is displayed for verification.
2. The interval you want the alarm to repeat at. eg. daily or weekly (7 days).
A repeat interval of all zeroes means don't repeat.
3. The tune you want to play when the alarm goes off.
4. The message you want displayed when the alarm is silenced.
Any alarms that come due while ALARM is running are ignored until it exits.
Silencing an alarm
------------------
alarm
When you run ALARM it does these things:
1. Load the alarm file.
2. Turn off any alarm currently audible.
3. Act on command given by the user, in this case none.
4. Display any alarms which have become due, updating repeating alarms,
and the current date and time.
6. Place on file any changes, saving the old alarm file in a backup,
normally ALARM.BAK.
7. Ready the next alarm to sound.
Cancelling a pending alarm
--------------------------
alarm reset
Use the up/down arrow, Home/End and digit keys to select the alarm you want
to discard and then press the Enter key. This is not used to clear an alarm
which is already audible, but one which would've sounded in the future.
List all pending alarms
-----------------------
alarm list
The current date and time is included in the list so you can see how close the
alarms are. This listing can be redirected to file ("ALARM LIST > ALARM.LST")
if needed.
Edit alarm tunes
----------------
alarm edit
Use the arrow and digit keys to modify existing tunes, or create a new tune if
you aren't happy with the selection of noises/tunes provided. The tune
currently being editted is played so that you can hear what you've done. All
tunes created are stored in the alarm file. One new tune can be created for
each run. The tunes supplied were done by ear. No guarantees as to their
correctness or musical enjoyment! :^)
Technical details
-----------------
CLOCK is a 352 byte memory resident program which counts timer interrupts
(There are 18.2/second on the PC) and plays a tune when a count is reached.
ALARM calculates how many timer interrupts there are between the current time
and the next due alarm, and sets CLOCK accordingly, together with the tune
selected by the user. When CLOCK starts playing it's tune the user runs ALARM,
which lists all alarms which have come due since the last time ALARM was run.
ALARM then configures CLOCK for the next one.
CLOCK uses the hardware clock tick interrupt vector (08H) rather than the BIOS
provided clock tick vector (1CH) as some programs are badly behaved when
taking over the BIOS vector and stop CLOCK from working correctly.
Microsoft Windows Users
-----------------------
CLOCK should be invoked before Windows is started. ALARM can be made
convenient to use by creating a separate PIF file and icon for each type of
ALARM invocation (eg. ALARM SET, ALARM RESET etc.). The mouse can then be used
to set and reset alarms. Specifying windowed, not fullscreen, operation means
that the program will better fit into the Windows environment. Make sure that
there is never more than one copy of CLOCK and ALARM running simultaneously.
Limits
------
992 pending alarms.
99 different alarm tunes.
52 notes and rests in an alarm tune.
32 characters in an alarm message and tune name.