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

Line No. Explanation 10-40 Four logical files are opened to the printer so that data in the computer's memory can be used in four different ways: Logical Secondary File No. Address Usage 1 0 (default) Print data exactly as transmitted. 2 1 Format data before it is printed. 3 2 Transmit the format string. 4 4 Enable format error diagnostic mes- sages to be printed (if any).

60 Defines the format string 50 Enables error messages (if any) 70 Defines the data string 80 Prints the format string 90 Prints the unformatted data string 100 Transmits the format string to the printer's memory 110 Sets C$ equal to the format character for "skip a space" 120 Prints the formatted data string 4 times 130 Closes the files leading Zeroes Forced This program prints ten rows of numbers, each row beginning with a number one higher than the preceding row. In line 60, the formatting statement (which is prepared for in line 30, and transmitted in line 70) specifies leading zeroes in all fields and plus signs in the first two fields.

10 OPEN 1,4 20 OPEN 2,4,1 30 OPEN 3,4,2 40 OPEN 4,4,4 50 PRINT #4 :REM ENABLE ERROR DIAGNOSTICS 60 = "SZZZZ. SZZZZ. ZZZZ. ZZZZ" 70 PRINT #3 ,F$ 80 FOR I= 1 TO 10 90 PRINT #2,l,I + 1,1+2,1+3 C-2