Radio Shack TRS-80 Model-4 Quick Reference Manual

rladl8/hael(
©
Copyright
A
Division01Tandy
1983byRadio
Corporation
Shack,
Contents
Start-Up"."".",.""."""."""""""" TRSDOS
Commands Error BASIC Statements Control Keys. ,,,,.,,,..,,,,.,,,,,,,,.,,,,,,,,
Operators,,,,,.,,,,.,,,,,.,,,,.,,,,.,,.,,.,,,. Edit
Special Error
Internal
Messages,,,..
Commands"",."""
Messages,
and
Utilities,,,,,,,.,,.,,.,.
,,,,.,,,,.,,,.,,.,,,,,.,
and
Functions, ,,,,,.,,.,,
Characters",,..
,.,,,,,,,,,,,,,,,.,,,,,.,,,.
Codes.,,,.,,,,
.......
...
",.".".".~
"""""
,."
,.,......-
,,,,.,,.,,,,,,
.....
_
.....
-
~_
~_
....
-
.....
_
....
_
~
....
_
......
111
Start-Up
Make sure ment is off.
1.
Turnonall except the hard disk.
2.
Hard disk users: Turn on the primary hard disk drive.
3.
Turn
4.
Insert a system diskette into Drive 0 and close the drive door. TRSDOS displays its start-up message.
5.
TRSDOS prompts you for the date. Enter itinthe
mm/dd/yy
6.
The following system prompt will appear on your screen:
Now,
7.Tostart BASIC, type: and you see the BASIC prompt:
represents a value that you supply. Information within
brackets is optional.
Now, you can type
This Quick Reference Guide is divided into TRSDOS and BASIC.
Information which is non-shaded (like this) pertains to:
Information which isshaded
all
floppy disk drives are empty and
peripheral equipment (such as a printer),
on the computer.
format.
TRSDOS Ready
you can type in a TRSDOS command.
BASIC
(ENTER)
Ready
in
a BASIC command.
• TRSDOS intermediate commands and utilities
• BASIC statements
like
this
pertains to:
• TRSDOS advancedcommands and utilities
• BASIC functions
two
all
sections:
equip-
IIII
3
Commands
Those parts of the command line that you must enter are
highlighted. Information that is upper-case should be
typed
in
exactly as represents a value that you supply. Information within brackets is optional.
is.
and
Information that is lower-case
Utilities
APPEND
ATTRIB
ATTRIB
source
[TO]
Adds one disk file ontothe end
tile PROT=leveL Changes the protection of a file. The EXEC, READ, UPDATE, WRITE, RENAME, REMOVE, or FULL.
(USER="password';OWNER="password';
ATTRIB
OWNER="
[drive] NAME="disk Changes the protection of files on a drive.
ATTRIB
destination
VIS,lNV)
CUSTFILE/DAT: 1 <USER='''', BOSSMAN"
(LOCK,UNLOCK,MPW="password",
name",PW=
: 1
,PROT=READ
(NAME="DATA"
[(ECHO.STRIP)]
of
another.
level can be
,\.'1 S)
["password"])
,PW="SECRET",
MPW="BOSSMAN")
AUTO
[drive,
Stores a command line for automatic execution each time TRSDOS starts up. (AUTO by itself deletes the current AUTO command line.l
AUTO
BACKUP [fiIe]:source [(MPW= "password';SYS, INV, MOD, QUERY=
NEW,X,DATE = Duplicates a system or data diskette. (file can be a partial name.)
?:drive, =
BASIC
BACKUP:Ql BACKUP
(MOD,
AUTO
drive
"date")]
: 1
QUERY,
:drive]
[TO]
[*]
[command
*DO
INIT/JCL:l
:destination
MPW="SECRET")
line]
drive
YES,
II
OLD,
BOOT
[CCLEAR),
Resets the system.
BOOT
BUILD
tile Creates commands.
[(HEX,APPEND)]
an
BUILD BUILD
input file for JCL, KSM, and other TRSDOS
MYPROGA/FIX:Ql DISPLAY/BLD
(ENTER),
®]
(HEX)
5
CONV [file]:source
I!\IV,
SYS,
Converts files from a TRSDOS 1.3 onto a TRSDOS Version 6 formatted diskette. be a partial name.J
NEW, OLD,QUERY=
CONV:1:0
drive
[:destination
(l.JIS.Q=NO)
drive]
NO,DIR)]
(Modellill
[(VIS,
diskette
<tile
can
COpy source
CLONE = NO,ECHO,X)]
Copies data from one fileordevice to another.
COPY COpy
CREATE
SIZE=number)]
Creates a file and reserves space on the disk for future use.
CREATE
DATE [mrnJdcVyy]
Setsordisplays the current date.
DATE
DEVXCE
Displays the current status of each drive and the options
DEVICE
DIR [tile]
DATE =
Lists the directory of a driveorfile. name.l
[)IR : 1
[TOJ
destination
TEST/DAT
*KI
file
[(LRL=number,
TO
TO
*PR
INVENT/DAT
08/08/82
[(D=NO,B=YES,S=
in
use.
DEVICE
[:drive]
[(ALL.INV,MOD,NON,PRT,
"dale':SORT=
DIR
NO)]
(DATE="
[(LRL=
:1
(ECHO)
REC=number,
(SIZE=201
DATE
NO,P=YES)]
(B=YES)
<tile
10/01/81-")
nnn,
SYS,
DATE,
can be a partial
DO
[5,=.*]
file
Compiles and executes a DO file.
DO
[((j:l>IabeLparm=value)]
DRIVE/JCL
DO
6
[;]
= DRIVE/JCL
FORMAT :drive (ABS,NAME =
MPW="password", SDEN,DDEN, CYL=
QUERY =
Formats a blank or old diskfor use.
NO)
"disk
name",
number,
FORMAT FORMAT: 1 (NAME="DATA3". MPW="SECRET")
FORMS [(DEFAULT.ADDLF,CHARS= number,FFHARD,
INDENT= MARGIN=number, XLATE
Sets up printer options.
FORMS/FLT
SET FILTER*PR*PF
Prepares the Printer Filter (*PFJ for use.
FREE
Lists free space and numberoffiles on each disk; if
drive
number,
=X'aabb')]
FORMS
(MARGIN=10.CHARS=80.INDENT=G)
*PF [TO] FORMSfFLT
[drive]
is specified, displays space map of that disk.
FREE
[(PRT)]
FREE:0
LINES =
number,
PAGE=number,
(PRT)
QUERY,
TAB,
KSM/FLT
SET
device
[(ENTER =
FILTER
SET
FILTER *KI
KSMfFLT [USING]
value)]
* KI
device
*DU
KSM/FLT
*DU
USING
7
file
ROUTINE/KSM
LIB
Displays library commands.
LIB
LIST
file [(ASCII8.NUM,HEX, TAB =
LINE =
number,
PEC =
number,
Lists contentsofa file to the displayorprinter.
LIST
TESTFILE:0
LIST
MONITOR/CMD
MEMDISKlDCT
SYSTEM
(DRIVE
=
drive,DRIVER
Adds to the system a pseudo floppy drive which keeps
its files
in
memory.
SYSTEM
(DRII)E=2
,DRII)ER="MEMDISK"
(PRTI
number,
LRL =
number)]
=
"MEMDISK")
PRJ.
I
PURGE
[fiIe]:drive
INV"WS, DATE =
[(QUERY=
"date")]
Deletes files. (file can be a partial name.J
PURGE PURGE
REMOVE
:0
(MPW="SECRET"
IBAS:1(Q=N)
file [tile]
..
Deletes files from the directory.
REMOVE
_____
1111
ALPHA/DAT:0
'
Ii
NO,
MPW=
"password",
I
BREAKER/DAT:0
REMOVE device [device] "
Removes devices from the device table.
REMO'.JE
*LU
RENAME RENAME
REPAIR
[RUN]
SET
filel
[TO]
device
Changes the name of a file or device.
RENAME RENAME
:drive
Updates system information on disks which were formatted under Model I TRSDOS.
REPAIR
[(X)] file Loads and executes a program. command text optional values the program may require.
RUN
CONTROL/CMD
device [TO]
Assigns a driverprog a device. parameters are optional values the dri may require.
SET
*SP
file2
1
[TO]
device2
TEXT/DAT:0 *UD
TO
*TX
:1
[(command
driver
tile
TO
SERI
TO
OLD/OAT
text)]
CONTROL/CMD
[(parameters)]
is
SET
phantom
[parameters] Assigns a filter program
parameters are optional values the filter program may
require.
SET
SETCOM
number, BREAK~value, Sets up RS·232C comrnunications or display status.
SETCOM
device
[TO] filter file [USING]
to
a phantom device.
*LC
[(DEFAULT,
STOP~number•.PARlTY~switch,
BAUD~number,
EVEN,ODD)]
WORD
(BAUD;300t140RD=8 ,STOP=1,
~
QUERY,
PARITY;OFFl
-_
.....
".
'
10
TAPE100
TAPE
100
tilel
Reads a Model 100 cassette tape file and writes it to a
disk file,
tape
TAPE100
TIME
[hhmmss]
Sets the timeordisplays current time.
TIME
VERIFY
[(switch)]
Sets VERIFY function onoroff.
VERIFY
[TO] tile2
or
reads a disk file and writes it to cassette
PRNTERTOPRINT/DAT:0
[(CLOCK=YES/NO)]
TIME
(YES)
(READ,WRITE)
12:28:34
VERIFY
(READ)
(NO)
Loading...
+ 21 hidden pages