EasyManua.ls Logo

Commodore MPS 1200 - Page 85

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...
Carriage
Return
Without
Line
Feed
(Commodore
mode
only)
BASIC
Hex
chr$(141
)
80
In
Commodore
mode
(DIP
switch 1-3 OFF), sending chr$(141)
causes the
printer
to
perform
a carriage
return
without
a line feed to
move
down
to the
next
line.
The
following
programs
show
how
this can
be
used for such effects as
doubleprinting
and underlining
in
Commodore
mode.
10
open
1,4,7
20
pt'int#l,"Cat't'iage
Retut·'n
without
Line
Feed":cht'$(141);
30
pt'int#l,
"Cat't'iage
Retut'n
wi
thout
Line
Feed"
40
close
1
Carriage
Return
without
Line
Feed
10
open
1,4,7
20
print#l,
"Underl
ined
Chat'actet's";
cht'$
(141);
30
pt'i
nt#l
,
II
___________
_
40
close
1
!Iode."
1 ;
ned
Characters
A
Note
About
BASIC
The
MPS
1200
normally starts a
new
line with each PRINT# statement
because BASIC sends
an
end-of-line code for you automatically. In
Commodore BASIC, no semicolon
at
the end
of
PRINT# statement
causes
the printer to perform a carriage return. Some commercial software
sends both a carriage return and a line
feed
at
the end
of
each
line.
4-3

Related product manuals