home *** CD-ROM | disk | FTP | other *** search
- TCLOCK reads the system clock and sets the internal clock
- in a WYSE-60 terminal. The correct time is then displayed
- on the terminals status line. The program reads standard
- Real Time Clocks (CP/M+, ZDOS, and DateStamper) and provides
- for a user implemented non-standard RTC interface. An example
- of a user clock interface is included.
-
- In addition to setting the terminal clock, the program also
- prints the Date and Time on the screen. You may wish to delete
- or modify this feature. Deletion is simply a matter of commenting
- out two lines near the end of the code in TCLOCK.Z80.
-
- The code that sends the command to set the terminal clock is at
- the very end of the source. This function occupies the terminal
- for a significant time compared to normal baud rates, during
- which the terminal is not accepting data for display. For that
- reason, there should be no programed output to the terminal
- following the time set function unless an appropriate delay is
- included. 50 to 100 milliseconds delay is probably adequate.
-
- Other terminals may also have an internal clock which can be set.
- Such functions usually involve an ESCape sequence similar to the
- one at the label setterm: in TCLOCK. Just change the data at
- that label to adapt the time function to another terminal.
-
- TCLOCK is written with a 'boilerplate' ZCPR3x header which includes
- provision for Type 3/4 implementation and for Configuration data.
- Don't look for configuration data; there is none.
-
- The source for TCLOCK is in three modules:
- TCLOCK.Z80 is the main module
- GTOSD.Z80 contains the standard RTC functions
- BIOCLK.Z80 contains a user-written RTC read routine.
-
- To produce TCLOCK.COM, assemble the three modules to .REL files
- using ZMAC, or an SLR assembler, or M80. Do NOT change the names
- of the GTOSD and BIOCLK modules without also changing the same
- names in the .INCLUDE statements in TCLOCK.Z80.
-
- The TCLOCK.COM file is produced by linking the three .REL files
- as follows:
-
- LINK TCLOCK
-
- where LINK may be ZML or one of the SLR or Microsoft linkers.
- Note that Z3LIB and SYSLIB must be present. No link list beyond
- that shown is needed because all required link modules are
- specified in the .INCLUDE statements at the beginning of TCLOCK.
-