Useful information for the users of Uncle Clive’s newest computer
Transfer of files from the Z88 to the QL .
The following program can be used to transfer files with the Z88 Export menu to the QL. The file can be shown on the QL screen when being transferred. The program reads the incoming characters and sends them to a QL file. When a chr(13) is received a newline is generated. The control sequences from Import all start with chr(27) and are handled with the Select statement. For the codes see the Z88 Manual, page 190. The procedure SKIP is used to skip over the file name sent by the Z88. For next month, I will have the program for transfer from the QL to the Z88.
100 REMark TRANSFER OF FILE FROM Z88 TO QL
110 REMark WORKS WITH EXPORT
120 WINDOW 512,202,0,0:PAPER 0:INK 7
130 CLS:CLS#0:FLAG=0
140 AT#0,0,10:INPUT#0,'DEVICE :';DEV$
150 INPUT#0,TO 10,'FILENAME :';NAME$
160OPEN_NEW#4,DEV$&NAME$
170 INPUT#0,TO 10;'TO SCREEN ON QL? (Y/N) ';CH$
180 IF CH$=='Y':FLAG=1
190 OPEN#3,SER2
200 REPeat LOOP
210 x$=INKEY$(#3)
220 IF x$=CHR$(27)
230 Y=CODE(INKEY$(#3))
240 SELect ON Y
250 =78
260 SKIP
270 =69
280CLS#0:CLOSE#3:CLOSE#4:STOP
290 END SELect
300 x$=INKEY$(#3)
310 END IF
320 IF x$=CHR$(13)
330 IF FLAG:PRINT:END IF
340 PRINT#4
350 NEXT LOOP
360 END IF
370 PRINT#4,x$;
380 IF FLAG:PRINT x$;:END IF
390 END REPeat LOOP
400 DEFine PROCedure SKIP
410 REPeat L
420 A$=INKEY$(#3)
430 IF CODE(A$)=27:EXIT L:END IF
440 END REPeat L
450 A$=INKEY$(#3)
460 END DEFine SKIP
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.