EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 401

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...
Appendix
K/
Using
The Device-Related
Commands
The advanced, device-related commands affect the assigned
TRSDOS
devices and the devices that you create. They are:
DEVICE, FILTER, LINK, SET, ROUTE, RESET
DEVICE
is
different from the other commands because instead of
directly affecting the
devices, DEVICE actually shows how each
device
is
set
up
and what connections between devices (and files)
exist. So, each time you issue one of the
above commands, you
should issue a DEVICE
(8
= ON) command to make sure the devices
are set the way you want them.
Creating
an
Unfiltered
Link
An
unfiltered link
is
different from a filtered link because there
is
not
an
in-between program (a filter) that affects the data flowing between
the two devices.
Creating
an
unfiltered link between a device and a file involves the
ROUTE and LINK commands.
ROUTE can create a user
device and routes
it
to a file.
LINK creates a link between two devices.
Remember that it
is
a good idea to issue a DEVICE command before
you create a link.
In
the following example, we are going to route the
printeer.
On
start-up, the printer
is
shown
in
the device table as:
*PR
=>
)-('0DE3'
The device table entry shows the place
in
memory
(X'(1)DE3')
where
the driver program that controls the printer
is
located. This memory
address may
vary.
Example
In
this example
we
are going
to
link the printer to a file. That
is,
all
data sent
to
the printer
is
also sent to the file.
To create a link between the printer (*PR) and the file
PRINTITXT:(1):
1.
Route the user-created device *DU to the file
PRINTITXT:(1)
by
issuing the command:
ROUTE *DU
TO
PR
I
NT
!T)<T:
0
(ENTER)
The device table shows:
*DU
{=>
PRINT/TXT:0
The following link now exists:
*DU
{->
PRINT/TXT
Everything that TRSDOS sends to *DU
is
sent to the file
PRINT/TXT.
A-103

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals