Writing The Program - OKIDATA 120 Handbook

For commodore computers
Table of Contents

Advertisement

36
We've assigned values to each of the grid's seven rows.
Whenever a dot appears in a row, add that value for a col-
umn total, like this:
Column
1
2
3
4
5
6
7
Position
64
Value
32
16
8
4
2
0
0
0
0
0
0
0
0 0
0 0
0 0 0 0
0
0
0
0
0
0 0 0 0
.
Subtotal:
127 65 65 65 65 65 127
+128
Total:
255193193193193193255
Take each column total and add 128. You will use these
totals as ASCII codes when you write your graphics
program.
Writing the program
You can print your image in either normal density or high
density. In normal density, each row of dots in your picture
has a horizontal resolution of 60 Dots Per Inch (DPI) and a
vertical resolution of 72 DP!. In high density, the vertical
resolution stays the same, but each row of dots has a hori
-
zontal resolution of 120 DP!. The result? In high density,
your image has a darker, denser look.
When you write your graphics program, you must first send
a normal density-CHR$(27);/IP" command or a high den-
sity-
CHR$(27);/lQ" command. Follow this with the /lstart
graphics"-CHR$(8) command. Once the printer receives
this command, any codes which follow are printed as
graphic columns. You should follow the graphics command
with the values you calculated for your graphic
image.
The
graphics command stays on for only one print line, so if

Advertisement

Table of Contents
loading

Table of Contents