EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 270

Radio Shack TRS-80 Model 4
418 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...
PRINT
@
When the program above
is
run,
the output should look something
like this:
WHAT
IS
YOUR
FIRST
NAME?
JOHN
WHAT
IS
YOUR
MIDDLE
NAME?
PAUL
WHAT
IS
YOUR
LAST
NAME?
JONES
ENTER
AMOUNT
PAYABLE?
12345.6
PAY
TO
THE
ORDER
OF
J.
P.
JONES
*****$12,435.60
DOLLARS
Statement
PRINT@ location,
PRINT@ (row, column),
Specifies exactly where printing
is
to
begin.
The location specified must
be
a number between 0 and 1919.
It
can
also be a a pair of numbers
(r,
c), where 23 =
>r
=
>0
and
79=
>c=
>0.
Whenever you instruct BASIC to PRINT @ the bottom line of the
display, it generates
an
automatic line feed; everything
on
the display
moves up one line. To suppress this automatic line feed, use a trailing
semicolon at the
end
of the statement.
NOTE:
If
the string
you
are printing extends past column
80,
BASIC
prints the entire string
on
the next line.
Examples
PR
I
NT
@
(11,39),
"*"
prints
an
asterisk
in
the middle of the display. The space between
PRINT and
@
is
optional.
PRINT @
0,
"*"
prints
an
asterisk at the top left corner of the display.
2-144

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals