Commodore MPS 1000 — Commodore MPS 1000 Dot Matrix Printer User's Manual PDF

The numbers for the second and third lines were calculated in the same manner. Once the numbers for the pin patterns are calculated, they go in DATA statements, separated by commas. First we'll give you the whole program; then we'll explain two tech- niques we have not used before: If you are using Commodore BASIC: 800PEN4,4 100 PRINT#4, CHR$(27)" 1" 590FORK=1TO3 600 PRINT#4, CHR$(27)"Y"CHR$(50)CHR$(0); 610 READ N: IF N = 128 THEN 650 620 IFN> =O THEN PRINT#4, CHR$(N);:GOTO 610 630 READ P,R: FORJ = 1 TO -N 632 PRINT#4,CHR$(P)CHR$(R);:NEXTJ 640GOT0610 650 PRINT#4: NEXT K:

PRINT#4, CHR$(27)"@" :END 800 DATA 8,4, 10, 1,-6,8,0,4,0,2,0, 1,-9,0,0,0 805 DATA 23,8,4,2, 1,-2,0,0,0, 128 810 DATA 0,0,0,0,64,32, 17, 10,4,0,-6,0,0,-10 815 DATA 64,0,0,0,0,64,32, 17, 10,4, 128 820 DATA 2,4, 10, 16,34,64,-5,2,0,4,0,8,0,16 825 DATA 0,-9,32,0,61,2,4,8,16,32,64,0,0,0,l28 850 CLOSE4 If you are using Microsoft BASIC: 90 WIDTH LPRINT 25 5 100 LPRINT CHR$(27)" 1" 590FORK=l T03 600 LPRINT CHR$(27)"Y"CHR$(50)CHR$(0); 610 READ N: IF N = 128 THEN 650 620IFN> =OTHENLPRINTCHR$(N);: GOT0610 630 READ P,R: FORJ = 1 TO -N 632 LPRINT CHR$(P)CHR$(R);: NEXT J 640GOTO 610 650 LPRINT: NEXT K: LPRINT CHR$(27)''@'':

END 800 DATA 8,4,10,1,-6,8,0,4,0,2,0, 1,-9,0,0,0 805 DATA 23,8,4,2,1,-2,0,0,0,128 810 DATA 0,0,0,0,64,32, 17, 10,4,0,-6,0,0,-10 815 DATA 64,0,0,0,0,64,32, 17, 10,4, 128 820 DATA 2,4, 10, 16,34,64,-5,2,0,4,0,8,0, 16 825 DATA 0,-9,32,0,61,2,4,8,16,32,64,0,0,0,128 \ ··.. !. . .. ·y; 92