Put the printer in data dump mode and then RUN the program. Remember to press the ON LINE button to make the
For example, in the line below, which is the first line of the printout of the test program run on a
The data dumping capability can help you debug a program quick- ly. Appendix A will help you translate the hex codes to ASCII equivalents.
Coding SolutionsOnce you’ve determined that a code creates problems for your printing, either by trial and error or by using the data dumping capability of the
Because each computer system deals with ASCII codes differently, it is impossible to provide solutions for all potential problems in one appendix. We can, however, point out generic problems and suggest ways to handle them.
There are four common approaches. First, you may be able to buy an alternative printer interface card for your system. This is the best solution for
The second approach is to use commercially available software that is specifically designed to overcome these coding problems. Consult your computer dealer or computer publications to see if a program for your computer system is available.
The third approach consists of avoiding the software that is changing the codes. On most computers you can send each code directly to the printer port. This bypasses the BASIC interpreter and avoids the interface.