M100-KP.LBR - Version 2.3 w/ NULMDM.COM, FT.COM, AQM & DQC (+FILTW.COM): - Upgraded from 2.2 April 5, 1986 with addition of NULMDM.COM revised version of FT.COM (originally Phil Wheeler's FLTKP.COM program.) - Upgraded from 2.1 Sept 23, 1985 with additional information about using a Basic POKE command on the Model 100 to remove orphan carriage returns. A program library to transfer text files between a Kaypro & a Model 100 at rates up to 19,200 baud through the serial ports using a null modem cable. Null Modem configuration: DB-25 connector Cable DB-25 connector PROT GND 1---------------1 PROT GND XMTD DATA 2---------------3 RCVD DATA RCVD DATA 3---------------2 XMTD DATA RTS 4 | CTS 5---------------8 RCVD LN DSR 6---------------20 DTR SIGNAL GND 7---------------7 SIGNAL GND RCVD LN 8---------------5 CTS | 4 RTS DTR 20---------------6 DSR (Note: use ribbon cable and plastic snap DB-25 connector on the M100 side so it will fit into port. Pins 4 & 5 are bridged on each side, the rest of the connections run across.) (Note: Model 100 communications parameters should be set to 98N1E,20pps, NULMD.COM or FT.COM should reside on the A: drive of the Kaypro.) Using NULMDM.COM or FT.COM: Call up NULMDM.COM or FT.COM program on the Kaypro, then enter the terminal program on the M100. To transfer a file to the Model 100: Select to send a file from the Kaypro to the M100. Then in the Telecommunications (TELCOM) of the M100 with parameters set to 98N1E,10pps press function key 2 to download the file. A M100 prompt will ask for the name of the program to download. If it is a text file, give this file a .do extension on the M100 side. On the Kaypro, enter the name of the file including the drive it is to be sent from (i.e. B:thisfile.mss). Press a on the M100 to receive the file, and a on the Kaypro to send the file. After transfer, enter function key 8 (BYE) to disconnect the M100 terminal program and call up the menu. The file should be there. On the Kaypro uit the program and return to CPM. To transfer a file to the Kaypro: Select to receive a file from the M100 on the Kaypro. Then on the M100 press function key 3 to upload the file. A M100 prompt will ask for the name of the program to upload. Enter the file name. On the Kaypro, enter the name of the file to receive, including the drive it is to be sent to (i.e. b:thisfile.mss - you may call the file whatever you want to.) After the filename is entered, press a and the drive will whirl. On the M100, at the width question, simply press a and the file will be sent. At the end of the file, when the UP function key designation is no longer hi-lighted, enter a ^Z from the M100 keyboard. This signals to the Kaypro and End of File (EOF) character that will close the file on the Kaypro. Hit a on the Kaypro keyboard, then uit to CPM. The file should now be on the Kaypro disk. Compatability problems between the Kaypro and M100 text files: Before you send a file from the Kaypro to the M100 you should remove all end of line s. Otherwise you will have to do so manually on the M100 file. If using Perfect Writer, call up the text file on the Kaypro. At the beginning of the file enter -R to search and replace all double s - the double carriage returns that separate each paragraph. At the search for prompt enter two s (they will appear as "" on the screen. Hit the key. Replace them with a character you have not used in the text, such as the "^" symbol. Again hit the key. All double s will be replaced with the "^" symbol. Then enter -R to search and replace all single s imbedded at the end of each sentence. At the prompt enter a lone and then at the next prompt enter a lone . This strips the carriage return at the end of the sentences and replaces them with spaces. Now do one final -R and replace all those "^" symbols with a single carriage return. At the first search for prompt enter the "^" symbol, and at the replace prompt enter a single . Each of your paragraphs will now read as a long sentence in Perfect Writer, but on the Model 100 they will appear as proper sentences not impeded by intermediate s. Save this revised file under a new name in Perfect Writer using -X, -W. Then transfer this file to the M100 using FT.COM. Going the other way causes some difficulties as well. Carriage returns from the Model 100 appear as "^M"s (orphan carriage returns) in Perfect Writer. There are three was to overcome the difficulty. The first is to change parameters on the Model 100 before writing a file to the Model 100's memory. To do this enter the basic program and turn off the linefeed feature. This is done with a POKE command. While in the basic program enter: "POKE 63066,0" to get rid of the linefeeds. This will stay in memory until you enter: "POKE 63066,255" to reimplement the linefeeds. (Please note: the POKE command will not effect the performance of your Model 100's wordprocessing program. It just turns off the linefeed feature read by printers.) The other two ways entail replacing "^M"s with full carriage returns after the files have been sent to the Kaypro. One way is to use Perfect Writer's universal search and replace function. Bring up the file to edit and enter -R. Then enter "^Q". This step is important. The control-Q function quotes the next characters you enter into the search for prompt. Nothing will appear when you enter "^Q", but then enter "^M" (the control-M function) and the "^" and the "M" will appear at the prompt line. Enter and the prompt will ask you what to replace the "^M" symbols with. Now enter a followed by the key. Full carriage returns will now be imbedded where the orphan ^Ms once resided. Now go through the text and reformat each paragraph using -Q. Save this file back to disk, and you are ready to format the file for printing. You can also use the program FILTW.COM to replace the ^Ms with full s. Enter FILTW d:filename.ext where d is the drive where the text file to be modified is and filename.ext is the name of the text file you desire to alter. The program will give you a file with all "^M"s changed to s, and a second unaltered file with a .BAK extension. You can then call up the new file using your word processor for further changes and printing. Notes: I am not aware of the origin of the revised NULMDM.COM program. Hillary Bercovici uploaded this program to the BOSKUG board May 3, 1986. FT.COM is actually Phil Wheeler's FLTKP.COM uploaded to the BOSKUG board from Compuserve by Jim Franklin under the name FLTKP.COM. Charlie Bowen was kind enouph to contribute FILTW.COM and further explanation of this file can be found on the BOSKUG board under the name FILTER.LBR. Please forgive the rather cryptic documentation. Files can also be transferred using the Load and Save features on the M100 and a communications program with a buffer capture on the Kaypro. However I have found that with Modem 740 I can only transfer files at 1200 baud. Otherwise I lose characters. On the other hand, using the latter method it is not necessary to use FILTW as the communications program reads orphan carriage returns, those ^M symbols, as full ^M^J carriage returns with line feeds. Let me know if you find any easier shortcuts. -Michael Bartell, BOSKUG Communications 5/05/86