Operation Manual
IBM BASIC
includes
two
functions
that
make
calculating n 1
and
n2
easy:
MOD
divides
two
numbers
and
returns
the
integer
remainder.
FIX
removes
the
fradional
portion
of
a
numeric
expression
without
rounding
it
off.
See
your
BASIC reference
manual
for details.
Using
these functions,
you
can
express
our
sample
numbers
this way:
10
NDOTS = 400
20 LPRI'\fT
CHRS(27);CHR$(7S);CHRS(~DOTS
\t10D 256),
CHR$(FIX(N DOTS/256))
Important:
The
number
of
dot
columns
expreo,scd bv n 1
and
n2 Cilnnot be gre.tter
than
the
maximum
number
of
dot
columns
per
line allowed for
the
graphics
model
and
printer
you
are
using (see the following table).
Maximum graphics columns per
line
Graphics
mode
ESC
K (single density)
!
816
FSC
I;
ESC
r (double den!'.ity) 1632
ESC
Z (quadruple
den~it!·l
3264
3.
Graphics information
The
la"'t
part
of
the
grap
hic~
statement
contains
numeric
information
that
tells
the
printer
to
print
dots
ell specific po-.itions
in
each
column.
lt
is easiest to
lav
out
your
image
on
graph
paper
, filling
in
the
sqtt<lres
whcr~
ynu \'
anlc1ots
t,,
,;
;:-~"'~<>r
(lf
you
want
to
use
higher-
den~i~.y
graph1c.;,
keep
iP
mmd
that
the
column
·
..,
\\'Jll
o,
·
crbp,
and
remember
any
restrictions
that
may
apply.)
Then
divide
the
im,lge
into
strips
of
eight
rows.
18.'.1
.
\1odes
Adl•tmced
fcuturt·~
.J
-
11