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

NEW 100PEN6,4 20 PRINT#6, "012345678901234567890" 30 PRINT#6,CHR$(16); 40 PRINT#6, "15THIS SKIPS 15 COLUMNS." 50 CLOSE6 012345678901 23 45 6 7 8 9 0 THIS SKIPS 15 COLUMNS. The second type of horizontal tab gives more exact spacing by divid- ing the page into 480 columns, each 1/ 6th of a character wide. This type uses CHR$(27) and CHR$(16) followed by two other CHR$ num- bers. These other numbers specify the column where printing starts. The total number of columns is determined by adding the second num- ber to 256 times the first number. Our samples in Table 4-1 illustrate the command. Table 4-1.

Dot spacing commands The following program shows how the three commands in Table 4-1 space the word "TAB" across the page. NEW 10 OPEN3 ,4,0 20 FORT= 1 TO 3 30READX 40 Y = INT(X/ 256): Z = X-(Y*256) 50 PRINT#3, CHR$(27)CHR$(16)CHR$(Y); 60 PRINT#3, CHR$(Z)"TAB"; 70NEXTT 80 PRINT#3 90 CLOSE3 100 DATA 50,186,306 Result: TAB TAB TAB 50 dots 186 dots 306 dots 43 Command Number of columns CH R$(27)CH R$(16)CHR$(0)CH R$(50) 50 ( o+ 50= 50) CH R$(27)CH R$( 16)CH R$(0)CH R$( 186) 186 ( 0 + 186 = 186) CHR$(27)CHR$(16)CHR$(1 )CHR$(50) 306 (256 + 50 = 306)