Publication: ISTUG Newsletter
Pub Details: ISTUG Newsletter Mar-Apr 1990
Date: March - April 1990
Pages: 8
Sending Single Bytes
The above DRAW* routine uses machine code to send out control characters to the printer, but what if you want to send out your own codes? In order to do this you must first disable the tokenization. Characters that are tokenized are expanded when printed. For instance, an LPRINT CHR$ 217 would send INK to the printer. Here is one method to send a character to the Wafadrives’s Centronics I/F:
10 DATA 30,0,207,31,201
20 LET A=USR "A":FOR C=A TO A+4:READ N:POKE C,N:NEXT C
Run this program. It will then locate in the UDG area. To send a byte to the printer, use:
POKE A+1,N:RANDOMIZE USR A
where N is the byte to be sent.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.