1 2 3 4 5 6 7 8 S O F T W A R E

If you find yourself defining characters in small groups, the same technique can be used to store part of the CHR$(27) ” &” command:

Z$=CHR$(27)+"&"+CHR$(0)

Z$ can be used to define each new string of characters with a simple command such as either of these:

LPRINT Z$"AZ";LPRINT Z$CHR$(l28)CHR$(159);STRATA

Your current program uses eight user-defined characters, which will be used again in a later chapter. For now, delete lines 80, 90 and 165 and change line 180:

180, LPRINT “ 147646 12345678”S T R A T A S O F T W A R ESave the current program as STRATA.

Summary

CHR$(27)“&“CHR$(n1)CHR$(n2)CHR$(n3);

Defines characters, where n1 selects the RAM buffer (0), n2 is the starting character, and n3 is the ending character

For each character in the CHR$(27)“&” sequence from n2 to n3, the printer expects 12 data numbers. The first number, called the attribute byte, determines the height and width characteristics of the character at print time. The other 11 numbers determine the pin patterns used to print the character

CHR!$(27)"%"“CHR$(n 1)CHR$(n 2)

Activates a given character set, where n1 indicates ROM (0) or RAM (1) and n2 is 0

212