This file describes how PRNMOD.BA is used to set up PRINT.CO for your printer. CONTROL CODES: Any character from A-Z except C,I,J,M,P,W,X,Y, and Z can be set up as a user defined control sequence. I,J,M,Z are used by M100 and C,P,W,X,Y by PRINT. In addition, each character actually stands for two codes. VERY IMPORTANT: A user defined control character embedded in a text file MUST be followed by a + sign or a - sign! You won't crash the program if you don't do that, but you may get strange results. Most user defined codes will be for Bold Print On/Off, Underline On/Off, etc. That's the reason for the +/- following the control character. However, PRINT won't mind if a ^A+ is totally different from a ^A- (it's permissible to leave a + or - undefined). This should give you maximum flexibility to tailor PRINT to your needs. CONTROL SEQUENCE STORAGE: The program stores the control sequences in the following manner: First, the control character itself. Next, the control sequence for + Next, a 255 to indicate the end of the + sequence. Next, the control sequence for - Last, a 255 to indicate the end of the - sequence. The pattern repeats for each control character that you define. After the last control sequence, an extra 255 is added to end the table. Here's what a simple table would look like: Addrs Code Description 59900 1 Code for ^A 59901 27 ^A+ = 27,87 59902 87 59903 255 End of ^A+ 59904 27 ^A- = 27,38 59905 38 59906 255 End of ^A- 59907 19 Code for ^S 59908 255 ^S+ is not used 59909 27 ^S- = 27,31,9 59910 31 59911 9 59912 255 End of ^S- 59913 255 End of Control Code Table Fortunately, you don't need to understand any of this to set up your copy of PRINT. Download PRNMOD.BA and you will have a program that will ask you for your control sequences and then store them in the proper format. PRINT has set aside 60 storage locations for Control codes starting at 59900. To see if 60 bytes is enough for all your control sequences, do this: 1. A = number of user-defined control characters. 2. Multiply A*3 3. Count all the numbers used in all your control sequences 4. Add results from #2 with results from #3 5. Add #1 to results from #4 If you come up with 60 bytes or less, then you are OK. Otherwise, you need to edit line 20 of PRNMOD.BA and change I=59900 to a lower address. FONT SPECIFICATIONS: One of the user options in PRINT.CO is [F]ont Code. The Font code can be any integer from 1-254. You can select any code that is meaningful to you, I use characters/inch. Set-up is similar to the Control codes, a sample look at the memory would be: Addrs Code Description 59960 10 Font Code #10 59961 27 Sequence is 27,45,0 59962 45 59963 0 59964 255 End of Sequence 59965 12 Font Code #12 59966 27 Sequence is 27,31,13 59967 31 59968 13 59969 255 End of Sequence 59970 255 End of Font Table PRINT has set aside 40 storage locations for Font codes starting at 59960. To see if 40 bytes is enough for all your font sequences, do this: 1. Multipy the number of codes by 2 2. Add the total count (not the sum of the numbers) of your sequence numbers. 3. Add 1 If you come up with 40 bytes or less, then you are OK. Otherwise, you need to edit line 20 in PRNMOD.BA and change J=59960 to a lower address. You may also have to change I=59900 to a lower number if you change J. NOTE: PRNMOD.BA allows you to inspect the status of all stored Control sequences and Font codes as well as installing them, it also allows you to input new ones. You cannot overwrite PRINT.CO, the Control codes won't overwrite the Font codes and vice versa. If you should exceed the storage space by mistake you will lose all your input and have to type it in again so now is the time to dust off your Printer Manual and review your Control sequences and Font codes. [End of file]