home *** CD-ROM | disk | FTP | other *** search
- CGCLOCK.COM
-
- Version 1.6
-
- A real time clock display for color/graphics
- display. Adapted from CLOCK.ASM found on one of
- the PC-Bulletin Board Systems in Chicago, Illinois.
-
- Source available from Dan O'Brien upon request via message on GENE PLANTZ's
- PC-Bulletin Board System in Chicago, Illinois or write to Dan O'Brien
- utilizing the following address:
-
- Mr. Dan M. O'Brien
- 646 Jonquil Avenue
- Lisle, Illinois 60532
-
- Allows any color for time by patching color value using DEBUG. Look for
-
- "Color value of time display="
-
- and set byte follow "=" to BASIC color value. Currently set to YELLOW
- (color number is 14 decimal).
-
- Displays time in human format, not computer, i.e., AM/PM format, not
- 24-hour military time.
-
- To enable military time (24-hour format) display, patch using DEBUG and
- debug the statement that says:
-
- "Military time=N"
-
- from "N" to "Y".
-
- Also beeps the speaker every quarter hour. To disable beeping on the
- quarter hour, patch using DEBUG and debug the statement that says:
-
- "Beep=Y"
-
- from "Y" to "N".
-
- Timer display is refreshed every N tics as defined by a patchable area;
- patch using DEBUG. Look for
-
- "Timer tics before time display refresh="
-
- and the value after the "=" is binary 4. Patch to higher or lower value
- as you wish to lengthen or shorten interval between refreshes. Tics occur
- 18.5 times a second, and after 4 (default) the display is refreshed with
- the time. This keeps overhead of running CGCLOCK to about 4 percent.
-
- To start CGCLOCK just enter "CGCLOCK".
-
- To toggle off and on enter "CGCLOCK" repeatedly.
-
- NOTES:
-
- 1. Uses user timer exit int 1Ch for timer display.
- 2. Defines int 60h to toggle time off and on.
- 3. Displays time without annoying "snow"! Technique from PC-Technical
- Journal Premier Issue.
- 4. Developed under DOS 2.0. Not tested under DOS 1.1 but should work.
-
- Adapted from CGCLOCK.ASM by Daniel M. O'Brien - 9 July 83 (Version 1.0)
-
- 1) Meaningful labels added.
- 2) Made to work on color/graphics.
- 3) Use user timer exit int 1ch instead of 08h directly - slows down
- disk drives, also allows BASIC to gain direct control of timer.
- And use int 60h instead of 44h (44h defined by DOS 2.0)!
- 4) Allows patching of time display color using DEBUG (Version 1.1).
- 5) Meaningful comments added.
- 6) Included salutation.
-
- DMO - 10 July 83 (Version 1.2)
- 7) Beep on quarter hour and allowed patching on or off.
- 8) 12 hour clock with AM and PM indicator and allow patching for
- military time.
-
- DMO - 21 July 83 (Version 1.3)
- 9) Keep counter and update screen only after specified tics count.
- Currently set to 4 which yields an overhead of about 4 percent.
- If set to 1, i.e., update every clock tic, then CGCLOCK has a
- overhead of about 20 percent.
-
- DMO - 31 July 83 (Version 1.4)
- 10) Move some temporary data areas below init routine for less
- resident space requirements.
-
- DMO - 12 September 83 (Version 1.5)
- 11) Try different algorithm to stuff display into memory to reduce
- possible interference with BASIC display to terminal.
- 12) Fix bug whereby BX was not being saved and restored when BEEP occurred.
- 13) Fix bug whereby direction flag not set causing stray characters on
- display.
- 14) Speedup entry and exit when not time to display.
-
- DMO - 29 December 83 (Version 1.6)
- 15) Do not disable interrupts for beeper - just disable entry to CGCLOCK.
- 16) Also use private stack area to prevent stack overflow.
-
- Future work
- 1) date
- 2) alarm clock
- 3) any suggestions?