Time stamp VERS:- 01.01 DATE:- 01/07/88 TIME:- 18:54:00 ************************************************************* * * QUICK OVERVIEW: Increment version and insert current date * =============== and time for each assembly or edit run. * ************************************************************* ************************************************************* * * File Tracking Program * by Eric Forbes * c/o Mississauga, Ont. Canada RCP/M System * (416) 826-5394 * * Customized for AMPRO LB (Z80) computers by * Larry Sonderling * January 7, 1988 * ************************************************************* Copyright (c) 1982, E. Forbes; permission granted to use, copy and distribute for non-commercial purposes. This version of the program is written to run as a stand alone COM file. It has been customized for the AMPRO LB (Z-80) computer for those who do not have a hardware real-time clock such as the Kenmore Technologies Z-Time, or SmartClock. Each time a file is edited or assembled the version number can be incremented and the current date and time will be inserted into the first record of the file. This program loads the 1st record from a file and then looks for 'VERS:- ', 'DATE:- ' and 'TIME:- ' When it finds any of the three it will update ONLY that data. Each entry MUST be exactly as shown, upper case characters, colon, minus and space all with the high bit off. After updating, it writes the modified record back to disk to the same place. When creating a new text file, insert 'VERS:- 00.00' and this program will increment the minor number each time you run it If the option 'M' is used, the major number will be incre- mented and the minor zeroed. If the 'N' option is used, the version number will be unchanged. 'M' and 'N' are mutually exclusive. To use the 'DATE:- ' and 'TIME:- ' functions, this program expects to find three consecutive bytes at MONTH and HOUR, in BCD format. E.G. to print the date 07/31/82, the bytes 07H 31H 82H should be available at MONTH, MONTH+1, and MONTH2. This version, which has been customized for the AMPRO LB (Z-80) computers requires BIOS version 3.6 or higher, and the presence of the CTC software clock option, plus the correct jumpers enabling to enable its operation as detailed in the AMPRO hardware reference manual. If you do not have a CTC clock ignore, the 'month' and 'hour' equates. They are both read-only and will only be read if 'DATE:- ' or 'TIME:- ' is found in the 1st record of the file. As a part of the 'TITLE' line each page of a listing will be time stamped. Don't forget enough spaces after time and date. Command examples: ================= timestmp xyz increment minor version number, date & time stamp. timestmp xyz n as above, but leave version number unchanged. timestmp xyz m n INVALID (only 1 option allowed) Source file extension will always default to 'Z80' if not otherwise specified. ****************************************************** * * * May you never again have six " CURRENT " files ! * * * ****************************************************** Eric. Revised by: Larry Sonderling January 7, 1988