Fans of the “I LOVE LUCY” television series may remember when Lucy Ricardo wrote her first novel – “Real Gone with the Wind”. Her publisher wanted to use it in a text book on “How to Write a Novel”. However, to Lucy’s disappointment, it was to be used as an example of what NOT to do! Well, I hope I do better than Lucy. Here is my first attempt at writing an article for the TS1000 and Byte-Back’s MD-2 Modem.
After playing with 16 to 64K ZCOMM’s programmable characters, I was fortunate to find the 2 sets of POKEs that convert ASCII to T/S CODE and vice versa. Those familiar with ZCOMM for the MD-2 modem know that certain characters are not available to you. You can reprogram CONTROL J and M, but nothing shows up on your screen. While using COMPUSERVE, I noticed that I wasn’t getting the exclamation point, or any character to substitute for it. Sure, I could live without the “!”, but text looked wrong, if not confusing. Also, the “%”, “&”, and CONTROL symbol (the upside down “V”) were all missing. I was disappointed that ZCOMM didn’t give me some substitute, but I imagine it is for a good reason, perhaps for uploading and downloading programs. My concerns here are just for text.
The following table shows what to POKE to give those missing characters. (An inverse character or graphic symbol is my substitute.) It just so happens that both the 2K and 16-64K versions have values in the same consecutive order, but at different starting addresses.
ZCOMM CHANGES FOR MD-2 MODEM 2K 16K - 64K OLD NEW ADDRESS ADDRESS # # 17250 17774 64 33 17351 17875 10 64 17370 17894 13 37 17417 17941 255 12 17421 17945 255 134 17422 17946 255 149 17448 17972 12 151 17478 18002 255 148
% is now graphic 134 (two small squares).
& is now the inverse plus sign.
! is now the sterling symbol.
@ is now the inverse asterisk.
Cursor down sends the @ symbol.
Graphics M (CONTROL M) sends the % sign.
Other ASCII characters can be programmed into unused CONTROL characters.
For 2K, CONTROL A to Z are addresses 17358 to 17383.
For 16K – 64K, CONTROL A to Z are addresses 17882 to 17907.
So, for example, with 16K to 64K ZCOMM, if PRINT PEEK 17945 gives you 255, then POKE 17945, 134 and so on. You need only to check what was the original POKE to see if we are dealing with the same version of ZCOMM.
One last note, the inverse equal sign is now the CONTROL symbol or up arrow on some keyboards (ASCII 94). Unless you reprogram an unused control character, you can only receive the equivalent of the CONTROL symbol and the ampersand (&).
Another interesting thing ZCOMM does is to subtract a value of 32 from any incomming ASCII value over 95. So if you are sent ASCII value 126, ZCOMM changes it to 94. So the “tilde” is also interpreted as the control symbol. (Sometimes the tilde is used as a designation of “approximately” and used for other purposes I am not familiar with.) That subtraction of 32 converts all lowercase ASCII codes to uppercase codes (or values). So, consult an ASCII conversion chart and check for those double meaning characters.
If you have a version of ZCOMM that is different from mine, you may be able to find those POKEs provided the software is written in the same style. I did the following in order to find the POKEs that did the code conversions: LOAD ZCOMM but don’t RUN it.
Type in the following lines:
100 for I=17000 TO 18999
110 PRINT PEEK I, I
120 NEXT I
Then enter GOTO 100 and wait for these numbers: 65, 66, 67, 68, 69, etc., all the way to 90. You will have found the section of ZCOMM that converts T/S code to ASCII. Twenty-six POKEs above that address where 65 appeared will be your starting position.
If all goes well, everything may be in the same order as the previous table shows. Once you have located the starting position, change 17000 to that value, allowing for approx. 250 repetitions. And change PRINT to LPRINT. Enter FAST mode and your printer should be singing. After you have tested your finds and settled on the subtle changes you may want, reLOAD ZCOMM, make the POKEs, and SAVE it. (Of course, you make the changes and SAVE it before RUNning it.)
The other problem with ZCOMM is that it uploads text in a 32 column format, with trailing spaces to fill out the right margin to 32 col. This is a problem with CompuServe when you wish to upload text for FAX or Postal letter. The other problem is that ZCOMM sends 3 carriage returns between ZCOMM pages, and at the start of an upload, it sends 2. With no help from CompuServe, I found a way to reformat text to 80 columms for a professional looking result. There are some little known EDIT commands that allow you to “get around” ZCOMM’s shortcommings. If someone familiar with machine language programming knows a way to stop these extra carriage returns, please let me know.
You can compose your text, off line, in a manner that allows for quick and easy editing. Allow yourself to experiment until you find a method that works for you. The example is worth a thousand words! The address is at the end of this article.
The first thing you must do is not to exceed 32 keystrokes per line when entering text. ZCOMM considers your backspaces as characters; you’ll see them if you exit to BASIC after you finish text entry. The backspaces are those grey boxes. If you exceed 32 keystrokes, what you see on your screen will be broken up and spill over to the next line. It’s not the worst thing, but when you are paying top dollar for a service like CompuServe, it is best not to have to make a correction online.
Since CompuServe’s text editor doesn’t leave 2 spaces after punctuation when it reformats text, you may want to hold that space with an “*” to be replaced with a space after reformatting. You can use any symbol (character) that ZCOMM will recognize when uploading text as an indent character, or as a space preserver. Always leave one blank line between paragraphs and between lines that you want to remain in the original format. You will skip over the address and date when you use the reformatting command. Otherwise, it will loose its placement. ZCOMM will only recognize regular characters, not the ones you reprogrammed. So, for example, the graphic symbol that represents the per cent sign will not be uploaded. (You can send it while online.) ZCOMM WILL recognize the sterling as an “!” when uploaded.
Upload your text while in the LINE EDIT mode because it allows you to delete multiple lines in one command. So, after selecting DELETE LINE(S) from the menu, do the following at the prompt: 1,2,26-28,48-50, 72-74, 96-98, until you have included all the blank lines you wish to to delete. The blank lines ZCOMM sends are always in the same place and order. Then file your text as a draft copy. This is important. Otherwise, reformatting will not be correct. CompuServe maintains the original line order, for some unknown reason, until it is SAVEd as a file. Also, if you mess up the text with the editing commands, you can /ABORT and start over, without having to re-upload and delete lines.
Now, enter “SET EDIT NOLINE” and choose the menu number for using a file, the one you just saved on CompuServe. (You will be asked to name the file initially, and you can retrieve it, of course with the same name. I always use DRAFT as the name at this point. If I want to save it permanently, I give it a new name at the end of that session.)
Enter the following commands at the start of a new line. Remember, an “X” is used for these examples to designate a space. You, of course, will substitute a space.
/T,(GC/XX//) This command removes most of the trailing spaces that can screw up reformatting.
/POS8,RM80,(FP) This command reformats your document to 80 col. The RM stands for right margin 80 col., or any width can be substituted. The FP stands for fill paragraph. The ( )repeat the FP for the entire document. POS 8 tells the editor to start at line number 8.
/T,(GC/XX/X/) This changes any place where there are 2 spaces together to one space. (The extra space can happen on a line with an odd number of characters. In the first command, we only removed spaces in pairs.)
/T,(GC/*/X/) This changes the asterisks to spaces.
/T,(GC/+/XXXXXXXXXXXXXXXXXX/)
This indents your designated line the number of spaces you specify.
All these commands seem like a lot to do? IT IS! But you can get it down to about 10 min. per document, and that ain’t bad. CompuServe has a Basic Rate for $7.95 per month. It doesn’t cover all areas, but it does cover the Mail, News and Encyclopedia. For one month’s worth of unlimited time, you can get the hang of it. (That’s unlimitied time in selected areas.) If you have a modem and T/S 1000 just taking up space, it is worth a try. I almost gave up on it all until I found the FP command in a question and answer section of CompuServe. I wasn’t made to feel very welcomed at one point because people with machines that send a mixed case character set consider all caps as shouting. Also, there is snobbery in computerland, unfortunately. I only had wished that I had discovered the T/S line back when it came out, not just two years ago. Any feedback is welcomed.
P. S. If anyone knows of word processing software which is compatible with ZCOMM, please let me know.
[SEE THE BYTE-BACK CATALOG ELSEWHERE IN THIS ISSUE IF YOU WISH TO PURCHASE THIS MODEM AND SOFTWARE!]