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

Dot Addr~ Determination You won't always want to place characters at the left margin of the paper. The dot address determination sequence lets you specify where on a line you want a bit image character (or anything else) to be printed. The code sequence for this is: CHR$(27);CHR$(16);CHR$(nH);CHR$(nL) where "nH" and "nL" are dot positions on the line where priming is to start. These values are numbers ranging from 0 to 480. When a number greater than 480 is specified, printing starts at the beginning of the next line. This program positions the "alien" bit image character 300 dots into the page. Note that the only difference between this and the program earlier in this chapter is line 90.

100PEN4,4 20 FOR R = 1 TO 3 30FORC=1T016 40 READ A:A$(R) = A$(R) + CHR$(A) 50NEXTC 60NEXTR 70 PRINT#4, CHR$(8); 80FORR=1TO3 90 PRINT#4,CHR$(27);CHR$(16);CHR$(1);CHR$(44);A$(R) lOONEXTR 110 PRINT#4,CHR$(15) 120FORL= 1TO8:PRINT#4:NEXTL 130 CLOSE4 140END 200 DATA 129,129,250,250, 158,158,255, 255 210 DATA 158, 158,250,250, 129, 129, 128, 128 220 DATA 128, 128, 159, 159,243,243, 179,179 230 DATA 243,243, 159, 159, 128, 128,128,128 240 DATA 128, 128, 130, 130, 131, 131, 128, 128 250 DATA 131, 131, 130, 130, 128, 128, 128, 128 Result: 79