home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / prt / prnmod.do < prev    next >
Text File  |  2006-10-19  |  4KB  |  104 lines

  1. This file describes how PRNMOD.BA is used to set up PRINT.CO for your printer.
  2.  
  3. CONTROL CODES:
  4.  
  5. Any character from A-Z except C,I,J,M,P,W,X,Y, and Z can be set up as a user
  6. defined control sequence. I,J,M,Z are used by M100 and C,P,W,X,Y by PRINT. In
  7. addition, each character actually stands for two codes.
  8.  
  9. VERY IMPORTANT: A user defined control character embedded in a text file MUST be
  10. followed by a + sign or a - sign! You won't crash the program if you don't do
  11. that, but you may get strange results.
  12.  
  13. Most user defined codes will be for Bold Print On/Off, Underline On/Off, etc.
  14. That's the reason for the +/- following the control character. However, PRINT
  15. won't mind if a ^A+ is totally different from a ^A- (it's permissible to leave
  16. a + or - undefined). This should give you maximum flexibility to tailor PRINT
  17. to your needs.
  18.  
  19. CONTROL SEQUENCE STORAGE:
  20.  
  21. The program stores the control sequences in the following manner:
  22.  
  23. First, the control character itself.
  24. Next, the control sequence for +
  25. Next, a 255 to indicate the end of the + sequence.
  26. Next, the control sequence for -
  27. Last, a 255 to indicate the end of the - sequence.
  28.  
  29. The pattern repeats for each control character that you define. After the last
  30. control sequence, an extra 255 is added to end the table. Here's what a simple
  31. table would look like:
  32.  
  33. Addrs  Code  Description
  34. 59900    1   Code for ^A
  35. 59901   27   ^A+ = 27,87
  36. 59902   87
  37. 59903  255   End of ^A+
  38. 59904   27   ^A- = 27,38
  39. 59905   38
  40. 59906  255   End of ^A-
  41. 59907   19   Code for ^S
  42. 59908  255   ^S+ is not used
  43. 59909   27   ^S- = 27,31,9
  44. 59910   31
  45. 59911    9
  46. 59912  255   End of ^S-
  47. 59913  255   End of Control Code Table
  48.  
  49. Fortunately, you don't need to understand any of this to set up your copy of
  50. PRINT. Download PRNMOD.BA and you will have a program that will ask you for
  51. your control sequences and then store them in the proper format.
  52.  
  53. PRINT has set aside 60 storage locations for Control codes starting at 59900.
  54. To see if 60 bytes is enough for all your control sequences, do this:
  55.  
  56. 1.  A = number of user-defined control characters.
  57. 2.  Multiply A*3
  58. 3.  Count all the numbers used in all your control sequences
  59. 4.  Add results from #2 with results from #3
  60. 5.  Add #1 to results from #4
  61.  
  62. If you come up with 60 bytes or less, then you are OK. Otherwise, you need to
  63. edit line 20 of PRNMOD.BA and change I=59900 to a lower address.
  64.  
  65. FONT SPECIFICATIONS:
  66.  
  67. One of the user options in PRINT.CO is [F]ont Code. The Font code can be any
  68. integer from 1-254. You can select any code that is meaningful to you, I use
  69. characters/inch. Set-up is similar to the Control codes, a sample look at the
  70. memory would be:
  71.  
  72. Addrs  Code  Description
  73. 59960   10   Font Code #10
  74. 59961   27   Sequence is 27,45,0
  75. 59962   45
  76. 59963    0
  77. 59964  255   End of Sequence
  78. 59965   12   Font Code #12
  79. 59966   27   Sequence is 27,31,13
  80. 59967   31
  81. 59968   13
  82. 59969  255   End of Sequence
  83. 59970  255   End of Font Table
  84.  
  85. PRINT has set aside 40 storage locations for Font codes starting at 59960.
  86. To see if 40 bytes is enough for all your font sequences, do this:
  87.  
  88. 1.  Multipy the number of codes by 2
  89. 2.  Add the total count (not the sum of the numbers) of your sequence numbers.
  90. 3.  Add 1
  91.  
  92. If you come up with 40 bytes or less, then you are OK. Otherwise, you need to
  93. edit line 20 in PRNMOD.BA and change J=59960 to a lower address. You may also
  94. have to change I=59900 to a lower number if you change J.
  95.  
  96. NOTE: PRNMOD.BA allows you to inspect the status of all stored Control sequences
  97. and Font codes as well as installing them, it also allows you to input new ones.
  98. You cannot overwrite PRINT.CO, the Control codes won't overwrite the Font codes
  99. and vice versa. If you should exceed the storage space by mistake you will lose
  100. all your input and have to type it in again so now is the time to dust off your
  101. Printer Manual and review your Control sequences and Font codes.
  102.  
  103. [End of file]
  104.