4 Times Screen$ (Tandy DMP105)

Developer(s): Abed Kahale
Date: 1992
Type: Program
Platform(s): TS 2068
Tags: Printer

Prints a SCREEN$ at four times its normal size, about half a page, on a Tandy DMP105, using half-pixel steps with POINT so that each print-head pass covers four pixel rows, and placing the print head 35 pixels from the left margin. Adding NOT to the POINT terms prints a negative. A follow-up to the author’s Graphic Screen$ Dump for the Tandy DMP105.

Listing only: it prints through the Larken printer channel and driver POKEs, and loads the picture from disk.

Published in Sinc-Link May-June 1992 (4 Times Screen$).

Source Code

  1 REM TANDY DMP105 PRINTER DRIVER by Abed Kahale 1/92
 20 RANDOMIZE USR 100: OPEN #3,"LP"
 30 RANDOMIZE USR 100: POKE 16092,0: REM No line feed (otherwise double spacing)
 50 RANDOMIZE USR 100: POKE 16093,32: REM LPRINTs & CHR$s sent to printer.
 80 LPRINT CHR$ 27;CHR$ 23;CHR$ 27;CHR$ 14;CHR$ 18: REM Elite, Expanded (Elongated!) & Graphic mode.
 90>LPRINT CHR$ 27;CHR$ 16;CHR$ 0;CHR$ 35:REM Locates head (margin) at 35 pixels from the left.
 95 RANDOMIZE USR 100: LOAD "C.C$"SCREEN$
155 FOR Y=0 TO 175 STEP 4: LET R=175-Y: REM vertical pixels; twice for 8-pin head.
160 FOR C=0 TO 255: REM Horizontal pixels.
170 LET B=0
180 LET B=B+POINT (C,R-.5): REM    divided by 2
190 LET B=B+2*POINT (C,R-1): REM       "  "
200 LET B=B+4*POINT (C,R-1.5): REM     "  "
210 LET B=B+8*POINT (C,R-2): REM       "  "
220 LET B=B+16*POINT (C,R-2.5): REM    "  "
230 LET B=B+32*POINT (C,R-3): REM      "  "
240 LET B=B+64*POINT (C,R-3.5): REM    "  "
250 LET B=B+128
255 IF IN 127<>236 THEN  GO TO 255: REM Checks if READY.
260 LPRINT CHR$ B;
270 NEXT C
280 LPRINT CHR$ 27;CHR$ 90;CHR$ 0: REM carriage return.
290 NEXT Y
300 LPRINT CHR$ 30: REM Back to character mode.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.