Epson LX-90 User Manual - Apple IIc 8699 PIC for LX-90 - Page 44
Graphics Mode, Pin Labels, PRINT CHR$27;K;CHR$nl;CHR$n2
View all Epson LX-90 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Graphics Mode The graphics mode command is quite different from the other commands covered so far in this manual. For most of the other LX-90 modes, such as emphasized and expanded, one ESCape code turns the mode on and another turns it off. For graphics, the command is more complicated because the code that turns on a graphics mode also specifies how many columns it will use. After the LX-90 receives this code, it interprets the next numbers as pin patterns and prints them on the paper. The LX-90 has several different graphics densities, but the first exercises keep things simple by using only one. The code for entering single-density graphics mode is ESCape "K" n1 n2. In BASIC the command is given in this format: PRINT CHR$(27);"K";CHR$(nl);CHR$(n2); ESCape "K" specifies single-density graphics, and the next two numbers (nl and n2) specify the number of columns reserved for graphics. The graphics command requires more than one number to specify how many columns to reserve because as many as 1920 columns are possible in graphics printing. Since the LX-90 doesn't use decimal numbers larger than 255, the graphics mode command uses two numbers for reserving columns. To figure the number of columns reserved, multiply the second number by 256 and add it to the first number. Since the command is set up for two numbers, you must supply two even if you only need one. When you need less than 256 columns, just make nl the number of columns you are reserving and make n2 a zero. Remember that you cannot use numbers greater than 127 unless you change DIP switch 2-2 and use the POKE subroutine. Pin Labels Once you put the printer into graphics mode and reserve the number of columns you want, your next step is to tell the print head which pins to fire in each column. There are 256 possible combinations of 42