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

Defining a Programmable Character: sa = 5 A secondary address of 5 allows you to create a custom character of your own. This programmable character is initialized with this second- ary address. Suppose you wanted to program the symbol in Commodore Business Machines' logo, which is: commodore Lay out an 8 x 8 matrix. To the left of the matrix, write the binary bit value of each line. Use dots, one per square to create your character. Then add up the binary bits indicated by your dots in each column. These totals are used in the DATA statement in your program. Example: 128 64 32 16 8 4 2 28 34 65 65 54 34 0 0 ~TOTALS The DATA statement in your program will read:

DATA 28,34,65,65,54,34,0,0 The program shown in the printout in the next example writes the Commodore logo ten times. It creates a string with the CHR$ value of the column totals and passes the string to the printer with sa = 5. To achieve upper- and lowercase characters, use the CRSR Up (Cursor Up) for uppercase characters, and CRSR Down (Cursor Down) for lowercase characters. 54 • • • • • • -~ • I 1• i • I ~ I • • • • • • •