RAMDISK to DISK BACKUP
A Larken 2068 utility
Larry Kenny has sent me a listing which will be of interest to RAMdisk owners. Usually we sort of store programs permanently on the RAMdisk and never think of other possibilities. With a program which makes it easy to save it’s contents, the RAMdisk can readily be used for other things.
One thing I can envision is it’s use with the Larken Sequential filing program. One could store a complete file of 22 tracks onto the RAMdisk (temporarily), in order to carry out rapid searches, etc. on the Sequential file program, without the delay of loading another track from a disk drive.
Anyway, here’s Larry’s listing.
10 REM RAMDISK to DISK BACKUP by LARKEN ELECTRONICS
20 BORDER 7: INK 0: PAPER 7: CLS : PRINT AT 5,5;"LARKEN RAMDISK BACKUP";AT 8,3;"SAVE RAMDISK to DISK (S)";AT 10,3;"LOAD RAMDISK from DISK (L)";AT 13,8;"Press S or L"
30 PLOT 0,50: DRAW 0,100: DRAW 255,0: DRAW 0,-100: DRAW -255,0
35 PLOT 2,52: DRAW 0,96: DRAW 251,0: DRAW 0,-96: DRAW -251,0:
40 LET a$=INKEY$: IF a$="L" OR a$="l" THEN GO TO 100
50 IF a$="S" OR a$="s" THEN GO TO 200
60 GO TO 40
80 BEEP .1,20: INPUT "NUMBER of Ramchips ? ";nc: IF nc>8 THEN GO TO 80
90 RETURN
100 PRINT AT 10,3; FLASH 1;"LOAD": GO SUB 80
105 PRINT #0;"Move Ramdisk switch to UP, ok?": PAUSE 0: INPUT ;
110 RESTORE 500: FOR a=1 TO nc
115 READ x: OUT 7,(x+64): OUT 244,240
120 LET n$="R-Bank.C"+STR$ a: PRINT AT 18,3;"LOADING "; FLASH 1;n$: RANDOMIZE USR 100: LOAD n$CODE 32768,32768
140 NEXT a
150 RANDOMIZE USR 100: GO TO 4: RANDOMIZE USR 100: CAT "",
170 GO TO 300
200 PRINT AT 8,3; FLASH 1;"SAVE": GO SUB 80
210 PRINT #0;" Press any key when ready": PAUSE 0: INPUT ;
220 RESTORE 500: FOR a=1 TO nc
230 READ x: OUT 7,x: OUT 244,240
250 LET n$="R-Bank.C"+STR$ a: PRINT AT 18,3;"SAVING "; FLASH 1;n$
260 RANDOMIZE USR 100: SAVE n$CODE 32768,32768
280 NEXT a
300 OUT 244,0: PRINT #0;TAB 6; FLASH 1;">> ALL DONE <<"
310 BEEP .4,10: BEEP .4,1: IF INKEY$="" THEN GO TO 310
320 STOP
400 RANDOMIZE USR 100: SAVE "RBAKUP.B1" LINE 1
500 DATA 7,3,5,1,6,2,4,0
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.