Radio Shack TRS-80 Quick Reference Manual page 6

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Left-justifies data within
L5ET field name
=
d.-t.-
specified field name.
L'SET
A~:"APPLES"
MERGE
II/en.-me.ft
Loads a program disk (which l'las
saved in ASCII- the A option) and marges it with program
currently in memory. If programs have corresponding lina
numbers. the program on disk Will erase the program in
memory.•R is optional: if used, BASIC will immedialely run
the merged program afler It IS loade<!.
MERGE "SUe/BAS"
MERGE "NEIUtlAS" ,R
KILL filename:d
Deleles or erases specified Iile (rom
diskette. The extension must be included on Mename.
Il
d
is omitled. Drive
0
is used.
KILL
"OOCTOR/EXP"
klLL
"OINNER/REC:I"
LET
Asslgns value
10
variable (optional).
LET
A~
E
"JOB A"
LIST
Lists speclhed Ime(s) Of enlue program
00
screBn
LIST
LIST 50-85
LIST 30
LIST
-30
LIST
30-
LUST
USI
sp9CIhed program Ilne(s) or efllne program
10
pnnler
LL
1ST
LLiST 50-85
LU
ST
31ll
LLiST ·30
LLIST 30-
UNE (d.JlJ),(.Z.Jl2). PSET or PRESET. RF
Drawa
line Ilom
(xl.y" to (x2.y2). If (x
l,yI) IS omltled. the
lasl
end point
or
(128.96) lS used, PSET selects foreground
coIor
and PRESET selects background color. R draws a box
Wllh
(xT.yl) and (x2.y2)
as
the
OPPOSlng corners.
RF WIll
fill
ln the box wllh loreground color,
LIN.E
(S,31-(6,61.PSET
UNE
INPUT
Input line from keyboard.
LINE INPUT
"ANSWERw;X~
LOAD lI/erJilu...:d.R
Load specrfied BASIC program file
Irom diskelle into memory. :dis opllooal; il omitted. Olive 0
(or whalever dflve was Selecled lOf Masler Drive specilied by
DRIVE) Is used. ,R IS opllOflal, If used. SASIC Will run lhe
program Immediately a'ter it is loaded.1f Menamedoes not
have an eXlenSlon, BASIC uses/BAS
LOAO "PROCRAH" ,R
LOAO "ACCTS/6AS: 1"
LOADM Rlen.-me. oll.et addre..
Loads a
machine-language program lile Irom disk. Il filename does
not have an extension. BASIC uses
IaiN
offset address is
optiOllal; If omilted, program loads where specilied inSide
the program.
LDADM "PROG/COR,3522"
LDADH "TESTI"
FIELD # buller. ReId .Ize
AS
Reid n.-me
Organizes
the space wlthin a direct access buffer into fields. assigns
field size. and names the field.ISee OPEN.)
FIELD .1.10 AS
A~.
12 AS
B~,
5 AS
C~
FILES buHer#. buller .Ize
Tells BASIC how many
bulfers to reserve in memory (buffer #) and Ihe tOlal
number
01
bytes
10
reserve for Ihese bullers (buffer
size).
If
thlS command is nol used. BASIC will reserve enough
memory space lor buffers
1
and
2
and reserve a lolal of
256
bytes lor lhase bufiers.
FILES 5.500
FILES 3.100
FOR••TO
Creales a
Ioop
in program whlch
(he
Computer
5TEPI
must repaat Irom the lirsl number
10
lhe last number
NEXT
yoo Speclfy. Use STEP
10
specify how much
10
Il'lCfemenl the number each tlme Ihroogh lhe
Ioop. Il
you
omit STEP.
ooe
is used
FOR X:2 TO 5
:NEXT X
FOR A:l
TO 10 STEP 5:NEXT A
FOR H:30 TD 10 STEP -5:NEXT
H
GET (.t.-rt)·(end). de.ti.atJon. G
Reads lhe graphie
contents
of a lectangle into an array lor future use by
PUT.
GET (5.201-{3.81
.V.t
GET Ifbuller.rec.ordlf
Gels
the
specified record number
and puts il in the bullel. record' is optiona!. if omilled.the
next recold is used. (See OPEN.)
CET .1.5
CET.Z.3
CET lOI
GOSUB
Galls a subloullne beglnmng al specified line
number.
COSUB 500
GOTO
Jumps to speclfied line number.
GOTO 300
IF I_t
THEN..• .-c.tion
J
ELSE•
.-d;on Z
Performs a
tesl. Il it is true.lhe Compuler execules actlOft 1. If taise,
action
2 is execule<:!
IF A:5 THEN 30
INPUT
Causes Ihe Compuler
10
stop and awaltlnputtrom
the keyboard
INPUT
X~
INPUT
"NAHE"
;N~
INPUT #bul'er. v.-rl.-ble name. • • .
Inputs data lrom
specified buffer and assigns each data segment in the
bufler to the specified variable name. (See OPEN.)
INPUT
.1,
A~ ";l~
INPUT#-l
Inputs dala from cassette,
INPUT#-l,A
IN5TR (po.ltlon • • e.-rdl. '.-rgel)
Searches for the lirst
occurrence of
largat string in search string beginning at
position, Returns the position at which the match is found.
?
INSTR
(5,X~.V~l
,
8
9

Advertisement

Table of Contents
loading

Table of Contents