The following simple BASIC program (which was I think came from a back issue of ZX Computing) is a simple way to make a Backup copy of a micro-cartridge. You must have the original in MDV1_ and an already formatted cartridge in MDV2_.
1000 REMark ***** cartridge backup copier *****
1010 CLS
1020 PRINT "This program will copy the entire contents of one cartridge"
1030 PRINT "onto another."
1040 PRINT: PRINT "Place ORIGINAL cartride in mdv1_"\\"Place formatted cartride in mdv2_"
1050 PRINT\\"Press any key to start. . ."
1060 z$=INKEY$(-1): CLS
1070 gp$=" "
2000 OPEN_NEW #3, mdv2_temp_file
2010 DIR #3,mdv1_: CLOSE #3
2020 OPEN_IN #3,mdv2_temp_file
2030 INPUT #3,a$;a$
2040 PRINT\ "-- COPYING. . . ."\\
2050 REPeat loop
2060 IF EOF (#3) THEN EXIT loop
2070 INPUT #3,a$
2080 PRINT gp$&a$
2090 COPY "mdv1_"&a$ TO "mdv2_"&a$
2100 END REPeat loop
2110 CLOSE #3
2120 DELETE mdv2_temp_file
The above program listing was imported into Quill. To format the file to fit within the column width of the Plotter I used the following BASIC program to save a “text” file This file is then imported into Quill using Command II Files-Import. It is important to choose the import by Line option. To use the following short program input the name of the file to be converted and saved (it is important to include the device name, i.e., mdv1_backup_bas & mdv2_backup_txt). You are then asked to input the number of characters per column (i.e., 32). One last note — The name you specify for the text version must not contain more than 8 characters, excluding the device and extention “_txt”, or Quill will not recognize it as a valid Quill file.
200 DEFine PROCedure basic2text
210 INPUT "File name to be converted to Text file ";read$
220 INPUT "To be save as ";save$
230 INPUT "Number of columns ";column
240 OPEN_IN #7,read$
250 OPEN_NEW #8,save$
260 REPeat convert
270 IF EOF(#7) THEN EXIT convert
280 INPUT #7,line$
290 REPeat cut
300 IF LEN(line$)>column
310 PRINT #8," ";line$(1 TO column)
320 line$=line$(column+1 TO )
330 END IF
340 IF LEN(line$)<=column
350 PRINT #8," ";line$
360 EXIT cut
370 END IF
380 END REPeat cut
390 END REPeat convert
400 CLOSE #7: CLOSE #8
410 END DEFine basic2text
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.