MDCLCK13.LBR This library contains (I hope!) the necessary information to build, install and use a Real-Time Clock for all Morrow MicroDecision computers that have the 40 pin internal I/O expansion connector. This should include all rev. 2 MD2 and MD3s (those with a Centronics printer port) and all the Hard drive MDs (MD5, 11, 16 and 34). It runs fine on my rev. 2 MD3 and my MD5. This library contains the following files: -3/31/87 A 0k date file. -OSNES.NZT Notes by John Osnes on his super neat programs CLOCKOUT and SETCLOCK which he has so kindly let me include. These are examples of how really good assembly language programs should be written. John also modified CADPRINT so that Okidata ML92 and 93 printers can be used. Thanks John. -READ.MZ This file. BNKBIOS3.DZF A editor script file for SSED.COM that will generate a new BNKBIOS3.MAC file from your old BNKBIOS3.MAC (revision 2.0) file to enable the time get function under CPM3. BYERTC.IZS The insert for using this clock with the BYE5 series of RCP/M programs. CADPRINT.AZM This is the source file for CADPRINT.COM. CADPRINT will print the schematic for the clock circuit on an EPSON (or compatible) or Okidata ML92/93 printers. There are equates in the front (EPSON and OKI92) in hopes that other people will add the necessary code for other printers. The peculiar EPSON code in the file is surrounded by IF EPSON .... ENDIF ;EPSON. If some brave soul were to incorporate say an CITOH then he would add CITOH EQU YES and changethe EPSON to EPSON EQU NO and the OKI92 to OKI92 EQU NO. Then he would have to add the appropriate CITOH code in the proper places surrounded by an IF CITOH .... ENDIF ;CITOH. I hope that various people will take the time to develop and enter the proper code for many printers, since I plan on using this program in the future for other hardware articles. If you do develop support code for other printers, send me a copy either by mail or via the MOR BBS. I will check it out as far as I can and then incorporate it into the next revision of CADPRINT. Thanks. 1 CADPRINT.CZM This program will print a schematic of the clock on an EPSON compatible printer. It expects to see the data files PRT.PG0 through PRT.PG8 on the default disk. These data files are created by COCOCAD.BAS, a public domain schematic drawing program for the Radio Shack Color Computer. A very nice piece of work. CPM3CLCK.ZZZ Instructions for modifying the BIOS for the MD-HD machines to enable the CPM3 clock support. Only partial at the moment since it will only read the clock for CPM3 functions. The clock must still be set using one of the programs in the library. Still with this change you can enable the automatic time stamping in CPM3. MDCLOCK.WZ A NewWord file of an article for MOR about this clock. Contains a lot of the details about the workings and history of it. PARTS.LZT Parts list for the clock. Total Cost = $18.69 PRT.PZ0 The data files for CADPRINT. Contains the through schematic. All must be present (unsqueezed) on PRT.PZ8 the default disk for CADPRINT to run. READTIME.AZM Programs to read and display the clock written in READTIME.BZS 8080 assembly language, MicroSoft BASIC, MIX 'C' READTIME.CZ and Turbo Pascal 3.0. READTIME.COM is the READTIME.CZM assembled version of READTIME.ASM. The programs READTIME.PZS will clear the screen and display the day of the week, date and time continuously until a key is pressed on the keyboard. The Turbo Pascal version is a little stubborn and you may have to press several times to get it to exit. I am not particularly proud of these programs (especially the 'C' and Pascal versions) since they are a rather brute force approach to the problem, but they work and demonstrate what is necessary to read the clock. They are pretty well commented. Maybe someone else will write some more elegant programs. SETTIME.AZM 8080 assembly language, MicroSoft BASIC, MIX 'C' SETTIME.BZS and Turbo Pascal 3.0 programs for setting the SETTIME.CZ clock. SETTIME.COM is the assembled version of SETTIME.CZM SETTIME.ASM. The programs will prompt for each SETTIME.PZS value and display the current value. A by itself will use the current value. Since the clock is capable of either 24 or 12 hour time and understands about leap years, these values are also requested. A final prompt asks for a return to start the clock. Setting the clock ALWAYS sets the seconds to zero, so remember to give yourself 2 a little cushion when entering the minutes. Again, I am not proud of these programs, but they do work and demonstrate how to set the clock. CLOCKOUT.AZM Super neat programs by John Osnes for setting and CLOCKOUT.COM reading the clock. The SETCLOCK.COM file is set SETCLOCK.AZM for MDT60/70 terminals. You might need to change SETCLOCK.CZM it for your particular terminal. See -OSNES.NOT for instructions. These programs are more general purpose than are mine and can be used with other clocks. Thes are great examples of truly good assembly language programming and are well worth studying. SSED.CZM Simple, Stupid EDitor. Will take your BNKBIOS3.MAC (revision 2.0) file and create a new BNKBIOS3.MAC file with the clock support using the BNKBIOS3.DIF editor script file. UNCR.COM Uncruncher for uncrunching those files with a ?Z? extension. Mike Allen 400J Summer Wind Way Glen Burnie, MD 21061 (301) 768-1721 3/31/87 3