Oki OKIMATE 10 Handbook page 41

For commodore computers
Table of Contents

Advertisement

Fine Positioning
This feature lets you start printing at a
specific distance from the left margin. This
distance is measured in dot columns, which
is 1/60" wide for normal print. (There are 480
dot columns on a line.)
N O TE: If you're using fine print or bold print, the distance
from the left margin will be m easured in colum ns that are 1/
1 03" wide. The procedure is the sam e, but keep in m ind that
there are 8 2 4 dot colum ns on a line of fine print.
Suppose you wanted to start printing at the
180th column, which would be three inches
from the margin. Add these commands at the
180th dot column:
P R I N T # 3 , C H R $ ( 2 ? ) ; C H R $ ( l b ) ;
Follow the command with two codes which
represent the number of dot columns. Take
the number of dot columns (180 in our exam­
ple) and divide it by 256. The quotient is the
first code; the remainder is the second. First
divide 180 by 256, like this:
__ Q quotient
256)180
-
0 subtract
180 remainder
Now, take the quotient and the remainder
and add them to your print statement, fol­
lowed by your text:
P R I N T # 3 , C H R $ ( 2 7 ) ; C H R $ ( 1 L ) ;
C H R $ ( □) ; C H R $ ( 1 A D ) ; " T E X T . .

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents