you can use a 2 or 3 for n2. A 2 in the second slot means reserve 2 groups of 256 dots (512) plus whatever is in the first slot and so
An easy way to determine the correct numbers for n1 and n1 is to figure the maximum number of dots per line in the density you want to use (480 in
If fact, you can have your program do the calculations for you with the following format:
LPRINT CHR$(27)"L"CHR$(N MOD 256)CHR$(INT(N/256));N is the total number of columns you want to specify. The BASIC MOD (modulus) function calculates the value for n,, and the INT (integer) function calculates the value for n2.
This format can be used with either graphics density and with any value of N up to the maximum number of columns per line for that density.
Labelling ElementsOnce you put the printer into Graphics mode, your next step is to tell the print head which elements to fire in each column. You do this by sending numbers via the CHR$ function. Each number that you send represents a unique combination of dots.
Since computers use the binary numbering system (0S and 1s only), each element corresponds to the decimal equivalent of one bit in an 8- bit binary number: 1, 2, 4, 8, 16, etc. (see Figure
43