EasyManua.ls Logo

Sinclair ZX INTERFACE 1 - Page 39

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...
Now to OPEN a stream to it, enter:
20 OPEN X3;“t”
30 LLIST
The border of the screen will flash and the listing will be sent to the peripheral.
(Notice that LLIST is shorthand for LIST #3.) Now enter:
LPRINT “This is a short message.”
This message, too, will be sent to the device.
If your ZX Interface is connected to a terminal or an RS232 device capable of
sending, then you can INPUT from the terminal or device. Enter this:
10 FORMAT “t”:baud rate
20 OPEN #4:“t”
-enter here the baud
30 PRINT INKEY$ s.44;
40 GO TO 30
Now, whatever you type on the terminal or device will appear on your screen.
The b channel
The b (or binary) channel sends the full 8 bit codes used by the Spectrum,
and allova you to send control codes to printers etc.
With INPUT and INKEY$ the b channel expects 8 bit characters.
SAVE and LOAD will only work with the b channel
If you are using modems to connect your computer with another Spectrum
over a ‘phone line; or if you are storing your programs on a different kind of
computer which also has an RS232 Interface, you may well want to SAVE
and LOAD over the RS232 Interface. To do this, enter:
FORMAT “b”:baod rate
I
Now, for example, enter:
10 REM figures
20 FOR n=l TO 10
30 PRINT n,n*RND
40 NEXT n
SAVE -%“b”
37