EasyManuals Logo

Sinclair ZX INTERFACE 1 User Manual

Sinclair ZX INTERFACE 1
64 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
Page #41 background imageLoading...
Page #41 background image
The MOVE statement
So far, you have only been able to move data from a program to a channel
or vice versa. The MOVE statement, however, enables you to move data from
one channel to another. For example, to move data from the keyboard to the
screen, enter:
10MOVE#lTO#2
then:
RUN
Anything you type on the keyboard will now appear on the screen. However,
you will discover that when you press BREAK this only prints a space on the
screen. To escape from this trap, press ENTER until the print position reaches
the bottom of the screen. Then, when the computer asks scroll? you should
press BREAK. (You should, by the way, avoid moving data from the keyboard
to any other stream since you may be unable to BREAK out of such a mode.)
Using the MOVE statement you can also examine files stored in cartridges.
For example, set up the file “Numbers” (see page 23) and then, to
examine its contents, enter:
10 MOVE “m”:l;“Numbers” TO #2
(Note that you need not OPEN or CLOSE the file yourself. MOVE does this.)
Similarly, to make a copy of the file “Numbers”enter:
10 MOVE “m”;l;“Numbers” TO “m”;l;“Numbers 2”
Here, MOVE opens a stream for reading from the existing file (“Numbers”)
and another for writing to the new file (“Numbers 2”). Next, it reads the data
in “Numbers” and writes it out in “Numbers 2”. Then it closes both streams.
MOVE will work with stream numbers (such as #41, and with channel
specifiers (such as “m”;l;“Numbers”J. Note, however, that the established
streams, #l to #3, may not be specified by the channel specifiers K, S or P.
If you have a second Microdrive. you can use the MOVE statement to make
back-up copies of data in another cartridge. Enter:
10 MOVE “m”;l;“Numbers” TO “m”;2;“Numbers 2”
(Note that MOVE only works with data files. If you want a back-up copy of
a program, you must LOAD the program. and then SAVE it.)
39

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair ZX INTERFACE 1 and is the answer not in the manual?

Sinclair ZX INTERFACE 1 Specifications

General IconGeneral
BrandSinclair
ModelZX INTERFACE 1
CategoryComputer Hardware
LanguageEnglish