EasyManua.ls Logo

Oki 182 - Page 76

Oki 182
175 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
-
ML182/183----------------------------------
-
-
Example:
Suppose you want to print 400 columns
of
graphics:
-
n2=
1
-
256 ) 400
-
256
-
n1
= 144
-
If you
want
to print in single density graphics mode, the beginning
of
your statement should look like this:
-
-
-
-
IBM BASIC includes
two
functions that make calculating
n1
and
n2
-
very
easy:
MOD
divides
two
numbers and returns the integer remainder,
-
FIX
removes the fractional portion
of
a numeric expression
without
rounding it off.
See
your BASIC Manual for details.
Using these functions, you
can
express our sample numbers this
-
way:
O'!NDOTS=400
-
l T
$~~~~;C~~(7~Jfi::H~~DO~~
~:JP
··CHR$(FIX(NlQOTS/256»
-
IMPORTANT NOTE:
The
number
of
dot columns expressed by
n1
and n2 cannot be greater
-
than the maximum number
of
dot columns per line allowed for the graphics mode you are
using
(see
table below).
-
-
64

Related product manuals