EasyManua.ls Logo

Commodore MPS 1200 - Page 84

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...
III (:olllllIodore
mode
(DIP
switch 1-3 set to OFF), switch 1-7
is
igllon:d. You can still
get
a carriage
return
without
automatic line
feed
in
Commodore
mode
by
using chr$(141) instead
of
chr$(13).
Example:
J()
open
1,4,7
20
pt~:int#l,
"Thi~;
is
on";chl·~$(l~:');
"two
lines"
3(1
pt~
i n
t#
1,
II
but
these
pt~i
nt"
;
4(:1
pt"int#l
~
II
on
one
1
:i.ne.
II
5':1
close
1
This
is
on
two
lines
but
these
print
on
one
line.
NOTE:
The
semicolon
in
line 20 tells
BASIC
not
to send a carriage
return
(and line feed) to the printer, allowing
you
to continue
the
next
statement
on
the same printed line.
Line Feed
BASIC
Hex
chr$(10)
OA
A line feed returns the
print
head to the left
margin
and advances
the paper to the
next
line.
Many
computers
automatically add a line
feed to each carriage return.
If
yours does not,
you
can add a line
feed to each carriage
return
by
setting internal switch 1-7
ON
(see
Appendix
D).
Example:
11)
op
en
1,
4,
7
21)
pt'int#l,
"This
is
on";
cht'$
(H);
"two
lines"
31)
pt'int#l,"Even
with
semicolons";cht'$(1I)l"it'll
be
on
two
lines."
4(1
close
1.
This
is
on
two
lines
Even
with
semicolons
it'll
be
on
two
lines.
4-2

Related product manuals