There are a number of things that were provided for in Tasword Two that are not mentioned in the documentation that was sent with it, most of which I will later explain. Before I do that, I can give a rough outline of the layout of the machine code. I don’t know enough about machine code to really give a good explanation of what all the parts do.
At address 33280 to 52480 is stored the text you enter and SAVE. [64 columns X 300 lines equals 19200. WONDER WHAT THE 2304 BITES BETWEEN 52480 AND 54724 ARE DOING? ED.] When Tasword is loaded in and initialized, it is loaded with spaces (CODE 32). This I have checked out and found it to be so. This also explains why I can now do something that I thought might be possible to do.
Using the margin setting function, it is possible to get a two column printout like we see in the newsletter. To do this properly, you must know the exact number of lines that can be printed on a page. The way to do this is to move the cursor to column 30 or 31 and set the right hand margin with extended “D” key. You then return the cursor to the beginning of the line. Then start typing in the text. When you get to the line that is be the last line on the page, you cancel the margin setting (You may want to use the right justify by typing a word and then erasing it.). After cancelling the margin setting, you can then move the cursor to column 33 or 34 and set the left margin with the extended “A” key. After doing that, you return the cursor to the first line and continue typing in your text until you get down to the bottom line of you first column. Should your text require more than one page, you can go through the procedure described above again. You save the text in the two column form and load it back later in the two column form. When printed out on paper, it will be printed in the two column form.
I prefer to use the zeal disassembler because it prints out the address and mnemonics in decimal. It has a few flaws in it, but so do others. None of them is able to distinguish stored numbers or letters from machine code. When I see a section of code that doesn’t seem to look right, I enter a short loop program to print the characters of the numbers stored in the addresses in the area. Through this system I have found that the help pages are stored at 54784 to 57955.
I presume address 57956 to 58052 is the printer driver. This presumption is based on a LarKen version of Tasword 2 that was given to me by Bob Swoger. The LarKen system is used with the AERCO printer interface. The AERCO printer interface uses different ports than the Tasman. Numbers were POKEd in addresses in that area to change ports as the original Tasword was written for the Tasman interface.
Immediately following that section I find a translation table for the printer. Some printers do not print the English pound sign and the original Tasword was set to print the number sign (#). The address for the translation of the English pound sign is 58117. My original printer was a Memotech DMX80(Panasonic KXP 1090). I saw an English pound sign at code 129. I poked that number into address 58117 and got the printer to print the English pound sign although it was in Italics. Because the printhead of the Memotech went bad on me and because a replacement head would have cost me $125 I bought an Epson at less than $75 more. However I could no longer print the English pound sign.
Checking through the addresses, I found the character generator storage area at 60929. I marked off 61888 as the end of the generator. I may be wrong on both of these addresses as the disassembly print looks like the generator below and above the addresses. The characters generated are for a 64 column screen.
There are provisions in the MC for changing PAPER and INK colors and for setting BORDER colors. The numbers to be POKEd into the controlling addresses are ATTRibute codes. In the listings below, I will show the codes as the letter “C”. The method of obtaining the ATTRibute code is to multiply the PAPER color desired by 8 and add the INK color. The addresses to be poked were in articles by Bill Ferrebee in the Jan/Feb 1987 issue of Time Designs, by Duncan R. Teague in the July/Aug 1987 issue of Time Designs, and in the June 1988 issue of our own NITE-TIMES NEWS. The NITE-TIMES NEWS article was credited to John Lambert and Data Expansion and was stated as originating in the May 1985 issue of Sinclair User Magazine. The most detailed article was Duncan R. Teague’s.
Duncan first lists the addresses to poke for the text area.
POKE 58512,54
POKE 58513,C
POKE 58521,54
POKE 58522,c
Next is the addresses for the left and right margins.
POKE 58508,54
POKE 58509,C
POKE 58517,54
POKE 58518,C
The C should be for a contrasting color in the margin so it can be seen.
Next is the addresses for the bottom two lines. C can be the same as the text area or whatever colors you desire.
POKE 59993,C (top)
POKE 64570,c (bottom)
Now we come to the BORDER colors. The variable B shown can be any one of the color numbers from 0 to 7.
POKE 64516,B (64-column)
POKE 60641,B (32-column)
At first, the (32-column) puzzled me. Then I realized that, when you switched to the MENU, you were in the 32 column mode.
If an attribute code is 64 to 127, the BRIGHT is turned on. Over 127 the FLASH is turned on. I forget just where the FLASH is turned off, but there are higher attribute numbers. I seem to recall seeing a complete listing of the numbers and their effect but I can’t find it now.
Bill Ferrebee added a facility for editing the HELP pages. To do this, one has to relocate the HELP pages(one at a time) down to the text file starting at 33280. Once the HELP page is in the text file, you can move the cursor to the position you want changed and type the change. Once you have completed the change, you have to relocate the HELP page to its original location. Why change the HELP pages? In my case I changed the action caused by the 1 to 8 graphics to ones I preferred instead of Tasword’s original setup.
Bill Ferrebee used a BASIC loop to accomplish the transfer. As a result, it takes a little time to accomplish the transfers. I tried looking for a routine to accomplish it in machine code but could not find one that looked like it would do it. I did find a few LDIR routines but, the HL and DE addresses didn’t match what I needed. I also suspect that there is a routine in the code that transfers the text down into the display file for reading it on the screen.
I’ve searched through the BASIC program to find anything that looks like the functions performed by the SYMBOL SHIFT keys, but, I can find nothing. These must be performed by the machine code.
I feel I must make a last comment about the Japanese printer makers. I have an Epson printer. There is a set of DIP switches that can be set for different language fonts. If these three switches are set ON, the printer will print the U.S. font. If the middle switch is set OFF, the printer prints the British font. The only difference is that the number sign will print the English pound sign. This is an awful waste of memory. Although the U.S. and the British use different terms for some items our alphabets are the same. In word processors, we both have need to use the number sign, the dollar sign, and the English pound sign.