EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 111

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...
RESET
Advanced
Programmer's
Command
RESET devspec
RESET filespec
Returns a devspec
to
its original start-up condition. Closes
an
open
filespec.
You
can use RESET
to
set a system device
to
its normal condition
in
the DEVICE table.
You
can
also use RESET to close a file that has
not been properly closed.
Resetting
a Device
A RESET devspec command removes any filtering, linking, or routing
that has been set
to
the device. Any open disk file that
is
connected
to the device
is
closed.
If
devspec is a device you created (see the LINK and ROUTE library
commands), it is pointed
at
NIL when reset.
If
devspec is a system device (*KI,
*00,
*PR, *SI, *SO, and *JL), it
returns to its start-up condition when reset.
To see that
devspec has been pointed at NIL or returned
to
its
start-up condition, issue a DEVICE library command and examine the
device table that is displayed.
You
can use the REMOVE library command to remove the device
from the device table once it points at NIL.
Example
Suppose you have used the FORMS command to specify printer
parameters, or you have filtered, linked, or routed *PR.
RESET
*PR
(ENTER)
returns *PR to its start-up condition and disconnects the printer filter.
Resetting
a
Filespec
You
can RESET
an
open filespec that has not been properly closed.
Improperly closed files result when
(1)
your system loses power and
files are left open,
(2)
you remove a disk from a drive and files are left
open, or
(3)
you reset your system while files are open, or
(4)
a
command aborts while files are open.
To see if any files
on
a disk are not properly closed, issue a DIR
library command. Any file that appears with a question mark
(?) after
it needs to be RESET before
you
can
access
it.
Receiving the error
"File already open" may also indicate a file
is
not properly closed.
1-106

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals