Epson Apex-80 User Manual

Page 50

Advertising
background image

the dots as large as you see them in the example on the left in Figure

5-2. If you draw them smaller, you may have overlapping dots without

realizing it.

Figure 5-2.
Correct and

incorrect designs

overlapping dots

dot on horizontal line

If you do accidentally overlap dots, don’t worry. The program will

still work, but only one of the dots will be printed.

First definition program

Once you have drawn your dots on the grid, type in the following

BASIC program and run it. If you are using Applesoft™ BASIC, see

Appendix C.

100 DIM F(9)

110 FOR I=1 TO 9

120 PRINT "WHICH ROWS HAVE DOTS IN COLUMN"; 1

130

INPUT R: IF R=0 THEN

150

140 F(I)=F(I)+2^(R-1)

150 IF R=0 THEN NEXT I ELSE GOTO 130
160 LPRINT CHR$(27)

“:“CHR$(0)CHR$(0)CHR$(0);

170 LPRINT CHR$(27)"%"CHR$(1)CH$(0);

180 LPRINT CHR$(27)"&"CHR$(0)CHR$(60)CHR$(60);
190 LPRINT CHR$(128);

User-defined Characters

5-3

Advertising