Home » Archimedes archive » Archimedes World » AW-1996-03-Disc 2.adf » !HardBack_HardBack » !Restore/!Run
!Restore/!Run
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Archimedes World » AW-1996-03-Disc 2.adf » !HardBack_HardBack |
Filename: | !Restore/!Run |
Read OK: | ✔ |
File size: | 0646 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
|!Run for HardBack (Restore) last updated at v1.383 Set HardRestD$Dir <Obey$Dir> IconSprites <HardRestD$Dir>.!Sprites | This isn't strictly necessary, but it means FileEnsure works in a neat way Set Run$PathTemp <Run$Path> Set Run$Path <Run$Path>,<HardRestD$Dir>. | This section sets the variable RiscOS$V to the version of Risc OS SetEval RiscOS$V 500 |RMEnsure UtilityModule 5.00 SetEval RiscOS$V 400 RMEnsure UtilityModule 4.00 SetEval RiscOS$V 320 RMEnsure UtilityModule 3.20 SetEval RiscOS$V 300 RMEnsure UtilityModule 3.00 SetEval RiscOS$V 200 RMEnsure UtilityModule 2.00 SetEval RiscOS$V 120 | This section deals with checking for the MessageTrans and Squash modules If "<System$Path>"="" AND "<RiscOS$V>"<300 Then Error "Open a directory containing !System." RMEnsure Squash 0.00 If "<RiscOS$V>">=300 then RMReInit Squash RMEnsure Squash 0.00 FileEnsure System:Modules.Squash "Error HardBack needs the Squash module. It should be in !System.Modules" RMEnsure Squash 0.00 RMLoad System:Modules.Squash RMEnsure MessageTrans 0.00 If "<RiscOS$V>">=300 then RMReInit MessageTrans RMEnsure MessageTrans 0.00 FileEnsure System:Modules.MsgTrans "Error HardBack needs the MessageTrans module. It should be in !System.Modules as MsgTrans" RMEnsure MessageTrans 0.06 RMLoad System:Modules.MsgTrans RMEnsure MessageTrans 0.06 Error HardBack needs MessageTrans version 0.06 or later. Set Run$Path <Run$PathTemp> Unset Run$PathTemp If "<RiscOS$V>"<320 Then IconSprites <HardRestD$Dir>.package WimpSlot -min 144K -max 144K SetEval HardRestD$Slot 400 Run <HardRestD$Dir>.StartUp Run <HardRestD$Dir>.!RunImage
00000000 7c 21 52 75 6e 20 66 6f 72 20 48 61 72 64 42 61 ||!Run for HardBa| 00000010 63 6b 20 28 52 65 73 74 6f 72 65 29 20 6c 61 73 |ck (Restore) las| 00000020 74 20 75 70 64 61 74 65 64 20 61 74 20 76 31 2e |t updated at v1.| 00000030 33 38 33 0a 0a 53 65 74 20 48 61 72 64 52 65 73 |383..Set HardRes| 00000040 74 44 24 44 69 72 20 3c 4f 62 65 79 24 44 69 72 |tD$Dir <Obey$Dir| 00000050 3e 0a 49 63 6f 6e 53 70 72 69 74 65 73 20 3c 48 |>.IconSprites <H| 00000060 61 72 64 52 65 73 74 44 24 44 69 72 3e 2e 21 53 |ardRestD$Dir>.!S| 00000070 70 72 69 74 65 73 0a 0a 7c 20 54 68 69 73 20 69 |prites..| This i| 00000080 73 6e 27 74 20 73 74 72 69 63 74 6c 79 20 6e 65 |sn't strictly ne| 00000090 63 65 73 73 61 72 79 2c 20 62 75 74 20 69 74 20 |cessary, but it | 000000a0 6d 65 61 6e 73 20 46 69 6c 65 45 6e 73 75 72 65 |means FileEnsure| 000000b0 20 77 6f 72 6b 73 20 69 6e 20 61 20 6e 65 61 74 | works in a neat| 000000c0 20 77 61 79 0a 53 65 74 20 52 75 6e 24 50 61 74 | way.Set Run$Pat| 000000d0 68 54 65 6d 70 20 3c 52 75 6e 24 50 61 74 68 3e |hTemp <Run$Path>| 000000e0 0a 53 65 74 20 52 75 6e 24 50 61 74 68 20 3c 52 |.Set Run$Path <R| 000000f0 75 6e 24 50 61 74 68 3e 2c 3c 48 61 72 64 52 65 |un$Path>,<HardRe| 00000100 73 74 44 24 44 69 72 3e 2e 0a 0a 7c 20 54 68 69 |stD$Dir>...| Thi| 00000110 73 20 73 65 63 74 69 6f 6e 20 73 65 74 73 20 74 |s section sets t| 00000120 68 65 20 76 61 72 69 61 62 6c 65 20 52 69 73 63 |he variable Risc| 00000130 4f 53 24 56 20 74 6f 20 74 68 65 20 76 65 72 73 |OS$V to the vers| 00000140 69 6f 6e 20 6f 66 20 52 69 73 63 20 4f 53 0a 53 |ion of Risc OS.S| 00000150 65 74 45 76 61 6c 20 52 69 73 63 4f 53 24 56 20 |etEval RiscOS$V | 00000160 35 30 30 0a 7c 52 4d 45 6e 73 75 72 65 20 55 74 |500.|RMEnsure Ut| 00000170 69 6c 69 74 79 4d 6f 64 75 6c 65 20 35 2e 30 30 |ilityModule 5.00| 00000180 20 53 65 74 45 76 61 6c 20 52 69 73 63 4f 53 24 | SetEval RiscOS$| 00000190 56 20 34 30 30 0a 52 4d 45 6e 73 75 72 65 20 55 |V 400.RMEnsure U| 000001a0 74 69 6c 69 74 79 4d 6f 64 75 6c 65 20 34 2e 30 |tilityModule 4.0| 000001b0 30 20 53 65 74 45 76 61 6c 20 52 69 73 63 4f 53 |0 SetEval RiscOS| 000001c0 24 56 20 33 32 30 0a 52 4d 45 6e 73 75 72 65 20 |$V 320.RMEnsure | 000001d0 55 74 69 6c 69 74 79 4d 6f 64 75 6c 65 20 33 2e |UtilityModule 3.| 000001e0 32 30 20 53 65 74 45 76 61 6c 20 52 69 73 63 4f |20 SetEval RiscO| 000001f0 53 24 56 20 33 30 30 0a 52 4d 45 6e 73 75 72 65 |S$V 300.RMEnsure| 00000200 20 55 74 69 6c 69 74 79 4d 6f 64 75 6c 65 20 33 | UtilityModule 3| 00000210 2e 30 30 20 53 65 74 45 76 61 6c 20 52 69 73 63 |.00 SetEval Risc| 00000220 4f 53 24 56 20 32 30 30 0a 52 4d 45 6e 73 75 72 |OS$V 200.RMEnsur| 00000230 65 20 55 74 69 6c 69 74 79 4d 6f 64 75 6c 65 20 |e UtilityModule | 00000240 32 2e 30 30 20 53 65 74 45 76 61 6c 20 52 69 73 |2.00 SetEval Ris| 00000250 63 4f 53 24 56 20 31 32 30 0a 0a 7c 20 54 68 69 |cOS$V 120..| Thi| 00000260 73 20 73 65 63 74 69 6f 6e 20 64 65 61 6c 73 20 |s section deals | 00000270 77 69 74 68 20 63 68 65 63 6b 69 6e 67 20 66 6f |with checking fo| 00000280 72 20 74 68 65 20 4d 65 73 73 61 67 65 54 72 61 |r the MessageTra| 00000290 6e 73 20 61 6e 64 20 53 71 75 61 73 68 20 6d 6f |ns and Squash mo| 000002a0 64 75 6c 65 73 0a 49 66 20 22 3c 53 79 73 74 65 |dules.If "<Syste| 000002b0 6d 24 50 61 74 68 3e 22 3d 22 22 20 41 4e 44 20 |m$Path>"="" AND | 000002c0 22 3c 52 69 73 63 4f 53 24 56 3e 22 3c 33 30 30 |"<RiscOS$V>"<300| 000002d0 20 54 68 65 6e 20 45 72 72 6f 72 20 22 4f 70 65 | Then Error "Ope| 000002e0 6e 20 61 20 64 69 72 65 63 74 6f 72 79 20 63 6f |n a directory co| 000002f0 6e 74 61 69 6e 69 6e 67 20 21 53 79 73 74 65 6d |ntaining !System| 00000300 2e 22 0a 52 4d 45 6e 73 75 72 65 20 53 71 75 61 |.".RMEnsure Squa| 00000310 73 68 20 30 2e 30 30 20 49 66 20 22 3c 52 69 73 |sh 0.00 If "<Ris| 00000320 63 4f 53 24 56 3e 22 3e 3d 33 30 30 20 74 68 65 |cOS$V>">=300 the| 00000330 6e 20 52 4d 52 65 49 6e 69 74 20 53 71 75 61 73 |n RMReInit Squas| 00000340 68 0a 52 4d 45 6e 73 75 72 65 20 53 71 75 61 73 |h.RMEnsure Squas| 00000350 68 20 30 2e 30 30 20 46 69 6c 65 45 6e 73 75 72 |h 0.00 FileEnsur| 00000360 65 20 53 79 73 74 65 6d 3a 4d 6f 64 75 6c 65 73 |e System:Modules| 00000370 2e 53 71 75 61 73 68 20 22 45 72 72 6f 72 20 48 |.Squash "Error H| 00000380 61 72 64 42 61 63 6b 20 6e 65 65 64 73 20 74 68 |ardBack needs th| 00000390 65 20 53 71 75 61 73 68 20 6d 6f 64 75 6c 65 2e |e Squash module.| 000003a0 20 49 74 20 73 68 6f 75 6c 64 20 62 65 20 69 6e | It should be in| 000003b0 20 21 53 79 73 74 65 6d 2e 4d 6f 64 75 6c 65 73 | !System.Modules| 000003c0 22 0a 52 4d 45 6e 73 75 72 65 20 53 71 75 61 73 |".RMEnsure Squas| 000003d0 68 20 30 2e 30 30 20 52 4d 4c 6f 61 64 20 53 79 |h 0.00 RMLoad Sy| 000003e0 73 74 65 6d 3a 4d 6f 64 75 6c 65 73 2e 53 71 75 |stem:Modules.Squ| 000003f0 61 73 68 0a 52 4d 45 6e 73 75 72 65 20 4d 65 73 |ash.RMEnsure Mes| 00000400 73 61 67 65 54 72 61 6e 73 20 30 2e 30 30 20 49 |sageTrans 0.00 I| 00000410 66 20 22 3c 52 69 73 63 4f 53 24 56 3e 22 3e 3d |f "<RiscOS$V>">=| 00000420 33 30 30 20 74 68 65 6e 20 52 4d 52 65 49 6e 69 |300 then RMReIni| 00000430 74 20 4d 65 73 73 61 67 65 54 72 61 6e 73 0a 52 |t MessageTrans.R| 00000440 4d 45 6e 73 75 72 65 20 4d 65 73 73 61 67 65 54 |MEnsure MessageT| 00000450 72 61 6e 73 20 30 2e 30 30 20 46 69 6c 65 45 6e |rans 0.00 FileEn| 00000460 73 75 72 65 20 53 79 73 74 65 6d 3a 4d 6f 64 75 |sure System:Modu| 00000470 6c 65 73 2e 4d 73 67 54 72 61 6e 73 20 22 45 72 |les.MsgTrans "Er| 00000480 72 6f 72 20 48 61 72 64 42 61 63 6b 20 6e 65 65 |ror HardBack nee| 00000490 64 73 20 74 68 65 20 4d 65 73 73 61 67 65 54 72 |ds the MessageTr| 000004a0 61 6e 73 20 6d 6f 64 75 6c 65 2e 20 49 74 20 73 |ans module. It s| 000004b0 68 6f 75 6c 64 20 62 65 20 69 6e 20 21 53 79 73 |hould be in !Sys| 000004c0 74 65 6d 2e 4d 6f 64 75 6c 65 73 20 61 73 20 4d |tem.Modules as M| 000004d0 73 67 54 72 61 6e 73 22 0a 52 4d 45 6e 73 75 72 |sgTrans".RMEnsur| 000004e0 65 20 4d 65 73 73 61 67 65 54 72 61 6e 73 20 30 |e MessageTrans 0| 000004f0 2e 30 36 20 52 4d 4c 6f 61 64 20 53 79 73 74 65 |.06 RMLoad Syste| 00000500 6d 3a 4d 6f 64 75 6c 65 73 2e 4d 73 67 54 72 61 |m:Modules.MsgTra| 00000510 6e 73 0a 52 4d 45 6e 73 75 72 65 20 4d 65 73 73 |ns.RMEnsure Mess| 00000520 61 67 65 54 72 61 6e 73 20 30 2e 30 36 20 45 72 |ageTrans 0.06 Er| 00000530 72 6f 72 20 48 61 72 64 42 61 63 6b 20 6e 65 65 |ror HardBack nee| 00000540 64 73 20 4d 65 73 73 61 67 65 54 72 61 6e 73 20 |ds MessageTrans | 00000550 76 65 72 73 69 6f 6e 20 30 2e 30 36 20 6f 72 20 |version 0.06 or | 00000560 6c 61 74 65 72 2e 0a 0a 53 65 74 20 52 75 6e 24 |later...Set Run$| 00000570 50 61 74 68 20 3c 52 75 6e 24 50 61 74 68 54 65 |Path <Run$PathTe| 00000580 6d 70 3e 0a 55 6e 73 65 74 20 52 75 6e 24 50 61 |mp>.Unset Run$Pa| 00000590 74 68 54 65 6d 70 0a 49 66 20 22 3c 52 69 73 63 |thTemp.If "<Risc| 000005a0 4f 53 24 56 3e 22 3c 33 32 30 20 54 68 65 6e 20 |OS$V>"<320 Then | 000005b0 49 63 6f 6e 53 70 72 69 74 65 73 20 3c 48 61 72 |IconSprites <Har| 000005c0 64 52 65 73 74 44 24 44 69 72 3e 2e 70 61 63 6b |dRestD$Dir>.pack| 000005d0 61 67 65 0a 57 69 6d 70 53 6c 6f 74 20 2d 6d 69 |age.WimpSlot -mi| 000005e0 6e 20 31 34 34 4b 20 2d 6d 61 78 20 31 34 34 4b |n 144K -max 144K| 000005f0 0a 53 65 74 45 76 61 6c 20 48 61 72 64 52 65 73 |.SetEval HardRes| 00000600 74 44 24 53 6c 6f 74 20 34 30 30 0a 52 75 6e 20 |tD$Slot 400.Run | 00000610 3c 48 61 72 64 52 65 73 74 44 24 44 69 72 3e 2e |<HardRestD$Dir>.| 00000620 53 74 61 72 74 55 70 0a 52 75 6e 20 3c 48 61 72 |StartUp.Run <Har| 00000630 64 52 65 73 74 44 24 44 69 72 3e 2e 21 52 75 6e |dRestD$Dir>.!Run| 00000640 49 6d 61 67 65 0a |Image.| 00000646