Advanced Graphics
HI RESolution graphics requires lots of DATA. It comes with the territory
So, what should our DATA lines look like? How should we format them so they contain the information we need? What information do we need?
ASCII numbers
To avoid needless typing, let’s use a minus sign as a “flag” for the first of the number pair to indicate that its value tells the number of times something is to be repeated. The second value of the pair will specify the desired combination of pins to be tired. For example:
100 DATA
means: “fire all 7 pins (#127) 42 times.” Think that one through before con- tinuing.
Got it?
We also have to tell the printer the number of columns to print on each line. Let’s dedicate the first number in each DATA line to that purpose.
Enter this line of DATA:
1 0 2 0 D A T A 5 5 , 0 , 3 , 7 , 1 5 , 3 1 , 6 3 , 6 3 , - 4 2 , 1 2 7 , 6 3 , 6 3 , 3 1 , 1 5 , 7 , 3
Recheck the numbers carefully to be sure they are copied correctly.
The first number tells the
We also need a “DO LOOP” that will READ the DATA:
51