Therefore, if you run the following BASIC program while your LQ
is in the hex dump mode, you get the printout below it. The printer
will print all but the last line and then stop. Press the ON LINE button
to print the last line.
l0 FOR X=70 TO
73
20 LPRINT CHR$(X): NEXT X
30
LPRINT CHR$(27)"E"
40 LPRINT "Sample text"
50 LPRINT CHR$(27)"@"
46 0D 0A 47 0D 0A 48 0D 0A 49 0D 0A 18 45 0D 0A F..G..H..I...E..
53 61 6D 7O 6C 65 20 74 65 78 74 0D 0A 1B 4O 0D Sample text... @.
0A
You can consult Appendix B to find the meaning of the hexadecimal
codes. The following explanation of the first line will put you on the
right track for using the hex dump mode.
The first code in the first line is hex 46 (the same as decimal 70),
which is the code for “F”; therefore “F” is printed in the first position in
the guide section. Then, because there is no semicolon in line 20,
BASIC sends a carriage return and a line feed, hex codes 0D and 0A.
Each of these is represented by a dot in the guide section. The program
then sends the hex codes 47, 48, and 49, with each followed by a
carriage return and line feed.
When the program gets to line 30, it sends ESCape “E” and a car-
riage return and line feed. These are hex codes lB, 45, 0D, and 0A,
which are represented in the guide section by a dot, an E, and two
more dots. Now you can follow a hex dump printout on your own.
Some computer systems change one or more codes when sending
them to the printer. The ability of the LQ to dump in hexadecimal lets
you determine which codes are creating problems for your system.
A hex dump printout of a program shows you exactly what the
printer is receiving, regardless of what the computer is sending. The
D-5