EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 93

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...
LINK
Advanced Programmer's Command
LINK
devspec1
[TO]
devspec2
Links together two logical devices; both must be enabled in the
system.
You can use LINK to get a printout of the data displayed on your
video display. You can also use LINK to write data displayed on the
screen to a disk file.
To "unlink" the devices, use the RESET command.
Be careful if you make several links to the same device. You could
create an endless loop and hang up the system.
Examples
LINK
*DO
*PR
(ENTER)
links the video display
(*00)
to the line printer (*PR). All output sent
to the display
(devspec1)
is
also sent to the line printer (devspec2).
NOTE: Although all output to the video display is also sent to the
printer, any output sent individually to the printer (such as an
LPRINT~,
from BASIC)
is
not
sent to the video display. This is because the
order of the devices in the link command line is important. Once
linked, any information sent to
devspec1 is also sent to devspec2,
and any information requested from devspec1 can also be supplied
by
devspec2. However, information sent to devspec2 is not sent to
devspec1, nor can information requested from devspec2 be supplied
by
devspec
1.
LINK
*PR
*DO
(ENTER)
links the line printer to the video display. All output sent to the printer
(devspec1) is also sent to the video display (devspec2).
Linking a Device To a File
It is not possible to directly LINK a device to a file. To link a device to
a file, follow this procedure:
Use the ROUTE library command to create a "phantom"
device and route it to the file.
Link the device to the phantom device using the LINK library
command.
NOTE: Do not use the SYSGEN library command if you currently
have a device linked to a file. The linked file is shown as open every
time you power up or reset the system. You can overwrite other files
very easily if you switch disks with the linked file open.
1-88

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals