ImageWriter Manual Errata: Producing slashed & unslashed zeroes


Page 42 of the Imagewriter User's Manual, Part 1, has reversed the commands
for producing slashed and unslashed zeros. The correct commands are:

Code Decimal Hex Effect

ESC-Z 27 90 $1B $5A Unslashed
CTRL-@ CTRL-A 0 1 $00 $01

To print unslashed zeros, send: CHR$(27);CHR$(90);CHR$(0);CHR$(1).

ESCAPE D 27 68 $1B $44 Slashed
CTRL-@ CTRL-A 0 1 $00 $01

To print slashed zeros, send: CHR$(27);CHR$(68);CHR$(0);CHR$(1).

Once the Imagewriter has received your instructions, it will continue to
follow them until the printer is turned off. Therefore, you may use a word
processor or other application program to print slashed or unslashed zeros
after setting up the Imagewriter appropriately.

If Applesoft sends codes directly to the printer, zeros may be printed as you
desire, but other side effects, such as double line spacing, may occur.

The sample program below sends the appropriate codes to the Imagewriter
through a small machine language routine. This bypasses Applesoft's setting
the high bit which may cause the Imagewriter to interpret information
incorrectly.

10 POKE 768,169 : POKE 769,0 : POKE 770,32 : POKE 771,237 : POKE
772,253 : POKE 773,96
20 D$ = CHR$(4)
30 PRINT D$;"PR#1"
40 PRINT "LINE ONE - 0000 - NO SLASHES"
50 REM SEND CODES TO SLASH ZEROS
60 PRINT CHR$(27);"D"; : POKE 769,0 : CALL 768 : POKE 769,1 : CALL 768
70 PRINT "LINE TWO - 0000 - SLASHES"
80 REM SEND CODES TO UNSLASH ZEROS
90 PRINT CHR$(27);"Z"; : POKE 769,0 : CALL 768 : POKE 769,1 : CALL 768
100 PRINT "LINE THREE - 0000 - NO SLASHES"
110 PRINT D$;"PR#0"
120 END
Published Date: Feb 18, 2012