EasyManua.ls Logo

Commodore MPS 1200 - Page 110

Commodore MPS 1200
250 pages
Print Icon
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...
Relative
Dot
Tabs
BASIC
chr$(27)
"£"
chr$(n1)
chr$(n2)
Hex
(n1
and
n2
specify
the
tab
position
in
dots)
1BSCn1hn2h
(n1
hand
n2h
specify
the
tab
position
in
dots)
Relative
dot
tabs
move
the print head to the location on the page
that
is
the specified
number
of
dot
columns relative to its current
position.
They
will
do
this regardless
of
where
the print head
is
currently located
on
the line.
The
format
of
the
command
is
ESC£chr$(n1) chr$(n2) where
n1
and n2 are used to define the
dot
column
to tab to.
The
values for
n1
and n2 are calculated
just
as
they are
with
the absolute
dot
tab
command
(described above).
The
relative
dot
command
spaces in
one-half
dot
columns, or 1/120
inch (compared to one
dot
columns,
or
1/60 inch,
with
the absolute
dot
command).
At
120
dot
columns per inch, the MPS 1200 has
up
to 960 columns.
If
you
specify a
dot
column
beyond
the right
margin, the results are unpredictable.
The
maximum
value for
nl
is
192; the
maximum
value for n2
is
3 (if n2
is
less than 3, however,
then the
maximum
value for
n1
is
255).
Example:
1(:'
open
1,'+,/
20
for
1=0
to
20
step
2
::;0
t"'e
1
$=ch
t'$
(2/)
.....
".f."
+ch
t'$
( i ) +cI""It"'$
U)
1
40
pt'lnt#l,"This";t'el$;"
shOlAls";t'el$.
"
inct'easing".
t"e.L$:;"
WC)t'd~5pa.Cr.?"
50
ne)-(t;
i
60
close
1.
l"his
shows
inl:t'easing
wDt'dspal:e.
This
shows
inl:t'easing
wot"'dspace.
This
shows
i.nct'easing
wDt'dspace.
This
shows
inct'easing
wcwdspace.
This
shows
inct'easing
wot'dspace.
Thi.s
shows
inct'easing
wot'dspace.
This
shows
inc
t"eas
i
fl8
wOt'dspace.
Thi.s
shows
inct'easing
wot'dspace.
Thi.s
shows
inct'easing
wot'dspace.
This
shows
inct'easing
wot'dspace.
This
shows
inc
t'eas
i
n8
wDt'dspace.
5-8

Related product manuals