EasyManua.ls Logo

Sinclair ZX INTERFACE 1 - Page 57

Sinclair ZX INTERFACE 1
64 pages
Print Icon
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...
The extended BASIC
The ZX Interface 1 extends the BASIC already in the Spectrum. The
extensions and additions are summarised below.
Streams
Streams are specified as # n where n is a number in the range 1-l 5. Streams
1, 2 and 3 are usually used by BASIC. The # character is part of the keyword
for the OPEN Y and CLOSE X statements.
Channels
There are seven types of channel in the extended BASIC; the keyboard (k),
the screen (s), the ZX Printer (p), the text RS232 Interface (t), the binary
RS232 Interface (b), the network (II) and the Microdrive (m).
Each channel type is specified by its letter which may be upper case or lower
case. The network and Microdrive require additional information to specify the
channel completely.
A network channel requires a station number, so a network channel is
specified as “n”;x where x is a station number in the range Q-64.
A Microdrive channel requires a Microdrive number and a file name. so a
Microdrive channel is specified as “m”;y;“name” where v is the Microdrive
number in the range of l-6 and “name” is a string of between 1 and 10
characters.
CAT y
Gives a list of all the files in the cartridge in
Microdrive y. The list is presented in alphabetical
order and is preceded by the name of the cartridge
and followed by the remaining capacity in
kilobytes.
CAT # z;y Sends the catalogue of the cartridge in
Microdrive y. as described above, to stream z.
CLOSE #stream
Unlinks any channel from the specified stream.
If there is any buffered data then this is either
transmitted ion the network) or recorded
(on the Microdrive).
55