EasyManua.ls Logo

Tandy TRS-80 - Page 99

Tandy TRS-80
104 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...
.APPENDIX H
BASIC
WORD
DlIcufsED
,
formats
a
comma
every third number
**
fills
leading spaces with asterisks
$
places
$
ahead of number
$$
floating dollar sign
+
in first position,
causes sign to
be
printed
before number;
in last
position
causes
sign
to be printed after
the number
-•-•"•
prints number in exponential
notation
-
prints
a-minus sign after negative
numbers
PRINT USING
*1
.
"*«.*";
53.76
PRINT USING
#2.
"#*$#.«*-"!
-3.G78
string
formats may consist of either:
% %
fields
the length of a string.
!
! prints the first character of the
string
PRINT
USING
*1
. "!"i "WHITE"
PRINT USING *1.
"X Z"i "YELLOW"
See Going Ahead
With Extended Color BASIC
for more information
on the
formats.
PUT
#
buffer,
record number
34
Assigns
a record number
to the data in the
buffer.
If
you do not specify
a
record
number,
the Computer will assign
it to the current
record.
(See OPEN for
buffer
numbers.)
PUT *2.
3
PUT
«1
> H
RENAME
old
filename
TO new
filename
19-20
Renames
a
file on
disk to a new
filename. You must
specify the extension
ofboth
filenames.
RENAME "MFILE/DAT:1"
TO "BFILE/DAT:
1
"
RSET
field
name
=
data
Right
justifies the data within
the field name
you specify. If
the data is larger
than the field, the RIGHT
characters
will be
truncated (the
same
as with
LSET).
RSET M$
=
"SOAP"
RUN
filename, R
9
Loads
filename from disk
and runs it. If
R is included,
all open files
will remain
open.
(See
the
format for
filenames
above.)
RUN "FILE'
RUN "PROG/BAS"
, R
SAVE
filename, A
8
Saves
filename
on disk.
If you
do
not
give
filename an extension,
the Computer
will give it the extension
BAS. By
using the
A option,
your program
will be
saved in ASCII format.
(See the format
for
filenames above.)
SAVE "PROG/BAS"
SAVE "TEST:1" ,
A
SAVEM
filename,
first
address,
last address,
execution address
61
Saves
filename
a machine
language program
beginning
at
first
address
(in
memory)
and ending
at last address.
You
also specify the
address in which
it
will
be executed. If
you do not give
filename an extension,
the Computer
will
give it the
extension BIN.
(See
the
format for filenames
above.)
SAVEM
"FILE/BIN:
1"
, &H5200 , &H5800
. &H5300
89

Related product manuals