Home » Personal collection » Acorn hard disk » apps » Lego » !CtrlLab/!Run
!CtrlLab/!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 » Personal collection » Acorn hard disk » apps » Lego |
Filename: | !CtrlLab/!Run |
Read OK: | ✔ |
File size: | 0982 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
| !Controlab | Version 1.00 | If "<ControlLab$Active>" <> "" then Error 0 Control Lab is already loaded run <Obey$Dir>.HGlass | IconSprites <Obey$Dir>.!Sprites if "<System$Path>" = "" then Error 0 System resources cannot be found | | | Load modules to fix bugs in various versions of RiscOs | set ro31$flag 1 RMEnsure UtilityModule 3.10 set ro31$flag 0 If "<ro31$flag>"="1" Then RMEnsure BorderUtils 0.02 RMLoad System:Modules.BorderUtil If "<ro31$flag>"="1" Then RMEnsure BorderUtils 0.02 Error 0 You need BorderUtil 0.02 or later. If "<ro31$flag>"="1" Then RMEnsure SerialDeviceDriver 0.22 RMLoad System:Modules.SerialDev If "<ro31$flag>"="1" Then RMEnsure SerialDeviceDriver 0.22 Error 0 You need SerialDeviceDriver 0.22 or later RMEnsure IRQUtils 0.09 RMLoad System:Modules.IRQUtils RMEnsure IRQUtils 0.09 Error 0 You need IRQUtils 0.09 or later RMEnsure HourGlass 2.02 RMLoad System:Modules.Hourglass RMEnsure HourGlass 2.02 Error 0 You need Hourglass 2.02 or later run <Obey$Dir>.HGlass RMEnsure SoundScheduler 1.13 RMLoad System:Modules.Sound2 RMEnsure SoundScheduler 1.13 Error 0 You need SoundScheduler 1.13 or later RMEnsure WindowUtils 0.04 RMLoad System:Modules.WimpUtils RMEnsure WindowUtils 0.04 Error 0 You need WindowUtils 0.04 or later unset ro31$flag | RMensure ControlLab 0.47 RMload <Obey$Dir>.ctrlab RMEnsure ControlLab 0.47 Error 0 You need ControlLab 0.47 or later | ControlLab_HourglassOn Set File$Type_DFE CSV | RMEnsure ColourTrans 0.52 RMLoad System:Modules.Colours RMEnsure ColourTrans 0.52 Error 0 You need ColourTrans 0.52 or later | set clib$flag 0 RMensure SharedClibrary 3.75 set clib$flag 1 RMensure SharedClibrary 0 set clib$flag 0 if "<clib$flag>"="1" then Error 0 !!! Old shared C library !!! An old version of the shared C library (clib) is resident in memory. unset clib$flag | RMensure SharedClibrary 3.75 RMload System:modules.clib RMensure SharedClibrary 3.75 Error 0 You need at least version 3.75 of the shared C library | RMensure FPEmulator 2.80 RMload System:modules.FPEmulator RMensure FPEmulator 2.80 Error 0 You need at least version 2.80 of the floating point emulator | | Grab extra memory for resources Wimpslot -min 1056K -max 1056K | | Set ControlLab$Dir <Obey$Dir> Set Alias$@RunType_BB6 Run <ControlLab$Dir>.!Run %%*0 Set Alias$@PrintType_BB6 Run <ControlLab$Dir>.!Run -print %%*0 Set File$Type_BB6 CtrlProj Wimpslot -min 512K -max 512K | Run <ControlLab$Dir>.!RunImage %*0
00000000 7c 20 21 43 6f 6e 74 72 6f 6c 61 62 0a 7c 20 56 || !Controlab.| V| 00000010 65 72 73 69 6f 6e 20 31 2e 30 30 0a 7c 0a 49 66 |ersion 1.00.|.If| 00000020 20 22 3c 43 6f 6e 74 72 6f 6c 4c 61 62 24 41 63 | "<ControlLab$Ac| 00000030 74 69 76 65 3e 22 20 3c 3e 20 22 22 20 74 68 65 |tive>" <> "" the| 00000040 6e 20 45 72 72 6f 72 20 30 20 43 6f 6e 74 72 6f |n Error 0 Contro| 00000050 6c 20 4c 61 62 20 69 73 20 61 6c 72 65 61 64 79 |l Lab is already| 00000060 20 6c 6f 61 64 65 64 0a 72 75 6e 20 3c 4f 62 65 | loaded.run <Obe| 00000070 79 24 44 69 72 3e 2e 48 47 6c 61 73 73 0a 7c 0a |y$Dir>.HGlass.|.| 00000080 49 63 6f 6e 53 70 72 69 74 65 73 20 3c 4f 62 65 |IconSprites <Obe| 00000090 79 24 44 69 72 3e 2e 21 53 70 72 69 74 65 73 0a |y$Dir>.!Sprites.| 000000a0 69 66 20 22 3c 53 79 73 74 65 6d 24 50 61 74 68 |if "<System$Path| 000000b0 3e 22 20 3d 20 22 22 20 74 68 65 6e 20 45 72 72 |>" = "" then Err| 000000c0 6f 72 20 30 20 53 79 73 74 65 6d 20 72 65 73 6f |or 0 System reso| 000000d0 75 72 63 65 73 20 63 61 6e 6e 6f 74 20 62 65 20 |urces cannot be | 000000e0 66 6f 75 6e 64 0a 7c 0a 7c 0a 7c 20 20 4c 6f 61 |found.|.|.| Loa| 000000f0 64 20 6d 6f 64 75 6c 65 73 20 74 6f 20 66 69 78 |d modules to fix| 00000100 20 62 75 67 73 20 69 6e 20 76 61 72 69 6f 75 73 | bugs in various| 00000110 20 76 65 72 73 69 6f 6e 73 20 6f 66 20 52 69 73 | versions of Ris| 00000120 63 4f 73 0a 7c 0a 73 65 74 20 72 6f 33 31 24 66 |cOs.|.set ro31$f| 00000130 6c 61 67 20 31 0a 52 4d 45 6e 73 75 72 65 20 55 |lag 1.RMEnsure U| 00000140 74 69 6c 69 74 79 4d 6f 64 75 6c 65 20 33 2e 31 |tilityModule 3.1| 00000150 30 20 73 65 74 20 72 6f 33 31 24 66 6c 61 67 20 |0 set ro31$flag | 00000160 30 0a 49 66 20 22 3c 72 6f 33 31 24 66 6c 61 67 |0.If "<ro31$flag| 00000170 3e 22 3d 22 31 22 20 54 68 65 6e 20 52 4d 45 6e |>"="1" Then RMEn| 00000180 73 75 72 65 20 42 6f 72 64 65 72 55 74 69 6c 73 |sure BorderUtils| 00000190 20 30 2e 30 32 20 52 4d 4c 6f 61 64 20 53 79 73 | 0.02 RMLoad Sys| 000001a0 74 65 6d 3a 4d 6f 64 75 6c 65 73 2e 42 6f 72 64 |tem:Modules.Bord| 000001b0 65 72 55 74 69 6c 0a 49 66 20 22 3c 72 6f 33 31 |erUtil.If "<ro31| 000001c0 24 66 6c 61 67 3e 22 3d 22 31 22 20 54 68 65 6e |$flag>"="1" Then| 000001d0 20 52 4d 45 6e 73 75 72 65 20 42 6f 72 64 65 72 | RMEnsure Border| 000001e0 55 74 69 6c 73 20 30 2e 30 32 20 45 72 72 6f 72 |Utils 0.02 Error| 000001f0 20 30 20 59 6f 75 20 6e 65 65 64 20 42 6f 72 64 | 0 You need Bord| 00000200 65 72 55 74 69 6c 20 30 2e 30 32 20 6f 72 20 6c |erUtil 0.02 or l| 00000210 61 74 65 72 2e 0a 49 66 20 22 3c 72 6f 33 31 24 |ater..If "<ro31$| 00000220 66 6c 61 67 3e 22 3d 22 31 22 20 54 68 65 6e 20 |flag>"="1" Then | 00000230 52 4d 45 6e 73 75 72 65 20 53 65 72 69 61 6c 44 |RMEnsure SerialD| 00000240 65 76 69 63 65 44 72 69 76 65 72 20 30 2e 32 32 |eviceDriver 0.22| 00000250 20 52 4d 4c 6f 61 64 20 53 79 73 74 65 6d 3a 4d | RMLoad System:M| 00000260 6f 64 75 6c 65 73 2e 53 65 72 69 61 6c 44 65 76 |odules.SerialDev| 00000270 0a 49 66 20 22 3c 72 6f 33 31 24 66 6c 61 67 3e |.If "<ro31$flag>| 00000280 22 3d 22 31 22 20 54 68 65 6e 20 52 4d 45 6e 73 |"="1" Then RMEns| 00000290 75 72 65 20 53 65 72 69 61 6c 44 65 76 69 63 65 |ure SerialDevice| 000002a0 44 72 69 76 65 72 20 30 2e 32 32 20 45 72 72 6f |Driver 0.22 Erro| 000002b0 72 20 30 20 59 6f 75 20 6e 65 65 64 20 53 65 72 |r 0 You need Ser| 000002c0 69 61 6c 44 65 76 69 63 65 44 72 69 76 65 72 20 |ialDeviceDriver | 000002d0 30 2e 32 32 20 6f 72 20 6c 61 74 65 72 0a 52 4d |0.22 or later.RM| 000002e0 45 6e 73 75 72 65 20 49 52 51 55 74 69 6c 73 20 |Ensure IRQUtils | 000002f0 30 2e 30 39 20 52 4d 4c 6f 61 64 20 53 79 73 74 |0.09 RMLoad Syst| 00000300 65 6d 3a 4d 6f 64 75 6c 65 73 2e 49 52 51 55 74 |em:Modules.IRQUt| 00000310 69 6c 73 0a 52 4d 45 6e 73 75 72 65 20 49 52 51 |ils.RMEnsure IRQ| 00000320 55 74 69 6c 73 20 30 2e 30 39 20 45 72 72 6f 72 |Utils 0.09 Error| 00000330 20 30 20 59 6f 75 20 6e 65 65 64 20 49 52 51 55 | 0 You need IRQU| 00000340 74 69 6c 73 20 30 2e 30 39 20 6f 72 20 6c 61 74 |tils 0.09 or lat| 00000350 65 72 0a 52 4d 45 6e 73 75 72 65 20 48 6f 75 72 |er.RMEnsure Hour| 00000360 47 6c 61 73 73 20 32 2e 30 32 20 52 4d 4c 6f 61 |Glass 2.02 RMLoa| 00000370 64 20 53 79 73 74 65 6d 3a 4d 6f 64 75 6c 65 73 |d System:Modules| 00000380 2e 48 6f 75 72 67 6c 61 73 73 0a 52 4d 45 6e 73 |.Hourglass.RMEns| 00000390 75 72 65 20 48 6f 75 72 47 6c 61 73 73 20 32 2e |ure HourGlass 2.| 000003a0 30 32 20 45 72 72 6f 72 20 30 20 59 6f 75 20 6e |02 Error 0 You n| 000003b0 65 65 64 20 48 6f 75 72 67 6c 61 73 73 20 32 2e |eed Hourglass 2.| 000003c0 30 32 20 6f 72 20 6c 61 74 65 72 0a 72 75 6e 20 |02 or later.run | 000003d0 3c 4f 62 65 79 24 44 69 72 3e 2e 48 47 6c 61 73 |<Obey$Dir>.HGlas| 000003e0 73 0a 52 4d 45 6e 73 75 72 65 20 53 6f 75 6e 64 |s.RMEnsure Sound| 000003f0 53 63 68 65 64 75 6c 65 72 20 31 2e 31 33 20 52 |Scheduler 1.13 R| 00000400 4d 4c 6f 61 64 20 53 79 73 74 65 6d 3a 4d 6f 64 |MLoad System:Mod| 00000410 75 6c 65 73 2e 53 6f 75 6e 64 32 0a 52 4d 45 6e |ules.Sound2.RMEn| 00000420 73 75 72 65 20 53 6f 75 6e 64 53 63 68 65 64 75 |sure SoundSchedu| 00000430 6c 65 72 20 31 2e 31 33 20 45 72 72 6f 72 20 30 |ler 1.13 Error 0| 00000440 20 59 6f 75 20 6e 65 65 64 20 53 6f 75 6e 64 53 | You need SoundS| 00000450 63 68 65 64 75 6c 65 72 20 31 2e 31 33 20 6f 72 |cheduler 1.13 or| 00000460 20 6c 61 74 65 72 0a 52 4d 45 6e 73 75 72 65 20 | later.RMEnsure | 00000470 57 69 6e 64 6f 77 55 74 69 6c 73 20 30 2e 30 34 |WindowUtils 0.04| 00000480 20 52 4d 4c 6f 61 64 20 53 79 73 74 65 6d 3a 4d | RMLoad System:M| 00000490 6f 64 75 6c 65 73 2e 57 69 6d 70 55 74 69 6c 73 |odules.WimpUtils| 000004a0 0a 52 4d 45 6e 73 75 72 65 20 57 69 6e 64 6f 77 |.RMEnsure Window| 000004b0 55 74 69 6c 73 20 30 2e 30 34 20 45 72 72 6f 72 |Utils 0.04 Error| 000004c0 20 30 20 59 6f 75 20 6e 65 65 64 20 57 69 6e 64 | 0 You need Wind| 000004d0 6f 77 55 74 69 6c 73 20 30 2e 30 34 20 6f 72 20 |owUtils 0.04 or | 000004e0 6c 61 74 65 72 0a 75 6e 73 65 74 20 72 6f 33 31 |later.unset ro31| 000004f0 24 66 6c 61 67 0a 7c 0a 52 4d 65 6e 73 75 72 65 |$flag.|.RMensure| 00000500 20 43 6f 6e 74 72 6f 6c 4c 61 62 20 30 2e 34 37 | ControlLab 0.47| 00000510 20 52 4d 6c 6f 61 64 20 3c 4f 62 65 79 24 44 69 | RMload <Obey$Di| 00000520 72 3e 2e 63 74 72 6c 61 62 0a 52 4d 45 6e 73 75 |r>.ctrlab.RMEnsu| 00000530 72 65 20 43 6f 6e 74 72 6f 6c 4c 61 62 20 30 2e |re ControlLab 0.| 00000540 34 37 20 45 72 72 6f 72 20 30 20 59 6f 75 20 6e |47 Error 0 You n| 00000550 65 65 64 20 43 6f 6e 74 72 6f 6c 4c 61 62 20 30 |eed ControlLab 0| 00000560 2e 34 37 20 6f 72 20 6c 61 74 65 72 0a 7c 0a 43 |.47 or later.|.C| 00000570 6f 6e 74 72 6f 6c 4c 61 62 5f 48 6f 75 72 67 6c |ontrolLab_Hourgl| 00000580 61 73 73 4f 6e 0a 53 65 74 20 46 69 6c 65 24 54 |assOn.Set File$T| 00000590 79 70 65 5f 44 46 45 20 43 53 56 0a 7c 0a 52 4d |ype_DFE CSV.|.RM| 000005a0 45 6e 73 75 72 65 20 43 6f 6c 6f 75 72 54 72 61 |Ensure ColourTra| 000005b0 6e 73 20 30 2e 35 32 20 52 4d 4c 6f 61 64 20 53 |ns 0.52 RMLoad S| 000005c0 79 73 74 65 6d 3a 4d 6f 64 75 6c 65 73 2e 43 6f |ystem:Modules.Co| 000005d0 6c 6f 75 72 73 0a 52 4d 45 6e 73 75 72 65 20 43 |lours.RMEnsure C| 000005e0 6f 6c 6f 75 72 54 72 61 6e 73 20 30 2e 35 32 20 |olourTrans 0.52 | 000005f0 45 72 72 6f 72 20 30 20 59 6f 75 20 6e 65 65 64 |Error 0 You need| 00000600 20 43 6f 6c 6f 75 72 54 72 61 6e 73 20 30 2e 35 | ColourTrans 0.5| 00000610 32 20 6f 72 20 6c 61 74 65 72 0a 7c 0a 73 65 74 |2 or later.|.set| 00000620 20 63 6c 69 62 24 66 6c 61 67 20 30 0a 52 4d 65 | clib$flag 0.RMe| 00000630 6e 73 75 72 65 20 53 68 61 72 65 64 43 6c 69 62 |nsure SharedClib| 00000640 72 61 72 79 20 33 2e 37 35 20 73 65 74 20 63 6c |rary 3.75 set cl| 00000650 69 62 24 66 6c 61 67 20 31 0a 52 4d 65 6e 73 75 |ib$flag 1.RMensu| 00000660 72 65 20 53 68 61 72 65 64 43 6c 69 62 72 61 72 |re SharedClibrar| 00000670 79 20 30 20 73 65 74 20 63 6c 69 62 24 66 6c 61 |y 0 set clib$fla| 00000680 67 20 30 0a 69 66 20 22 3c 63 6c 69 62 24 66 6c |g 0.if "<clib$fl| 00000690 61 67 3e 22 3d 22 31 22 20 74 68 65 6e 20 45 72 |ag>"="1" then Er| 000006a0 72 6f 72 20 30 20 21 21 21 20 4f 6c 64 20 73 68 |ror 0 !!! Old sh| 000006b0 61 72 65 64 20 43 20 6c 69 62 72 61 72 79 20 21 |ared C library !| 000006c0 21 21 20 41 6e 20 6f 6c 64 20 76 65 72 73 69 6f |!! An old versio| 000006d0 6e 20 6f 66 20 74 68 65 20 73 68 61 72 65 64 20 |n of the shared | 000006e0 43 20 6c 69 62 72 61 72 79 20 28 63 6c 69 62 29 |C library (clib)| 000006f0 20 69 73 20 72 65 73 69 64 65 6e 74 20 69 6e 20 | is resident in | 00000700 6d 65 6d 6f 72 79 2e 0a 75 6e 73 65 74 20 63 6c |memory..unset cl| 00000710 69 62 24 66 6c 61 67 0a 7c 20 20 0a 52 4d 65 6e |ib$flag.| .RMen| 00000720 73 75 72 65 20 53 68 61 72 65 64 43 6c 69 62 72 |sure SharedClibr| 00000730 61 72 79 20 33 2e 37 35 20 52 4d 6c 6f 61 64 20 |ary 3.75 RMload | 00000740 53 79 73 74 65 6d 3a 6d 6f 64 75 6c 65 73 2e 63 |System:modules.c| 00000750 6c 69 62 0a 52 4d 65 6e 73 75 72 65 20 53 68 61 |lib.RMensure Sha| 00000760 72 65 64 43 6c 69 62 72 61 72 79 20 33 2e 37 35 |redClibrary 3.75| 00000770 20 45 72 72 6f 72 20 30 20 59 6f 75 20 6e 65 65 | Error 0 You nee| 00000780 64 20 61 74 20 6c 65 61 73 74 20 76 65 72 73 69 |d at least versi| 00000790 6f 6e 20 33 2e 37 35 20 6f 66 20 74 68 65 20 73 |on 3.75 of the s| 000007a0 68 61 72 65 64 20 43 20 6c 69 62 72 61 72 79 0a |hared C library.| 000007b0 7c 0a 52 4d 65 6e 73 75 72 65 20 46 50 45 6d 75 ||.RMensure FPEmu| 000007c0 6c 61 74 6f 72 20 32 2e 38 30 20 52 4d 6c 6f 61 |lator 2.80 RMloa| 000007d0 64 20 53 79 73 74 65 6d 3a 6d 6f 64 75 6c 65 73 |d System:modules| 000007e0 2e 46 50 45 6d 75 6c 61 74 6f 72 0a 52 4d 65 6e |.FPEmulator.RMen| 000007f0 73 75 72 65 20 46 50 45 6d 75 6c 61 74 6f 72 20 |sure FPEmulator | 00000800 32 2e 38 30 20 45 72 72 6f 72 20 30 20 59 6f 75 |2.80 Error 0 You| 00000810 20 6e 65 65 64 20 61 74 20 6c 65 61 73 74 20 76 | need at least v| 00000820 65 72 73 69 6f 6e 20 32 2e 38 30 20 6f 66 20 74 |ersion 2.80 of t| 00000830 68 65 20 66 6c 6f 61 74 69 6e 67 20 70 6f 69 6e |he floating poin| 00000840 74 20 65 6d 75 6c 61 74 6f 72 0a 7c 0a 7c 20 47 |t emulator.|.| G| 00000850 72 61 62 20 65 78 74 72 61 20 6d 65 6d 6f 72 79 |rab extra memory| 00000860 20 66 6f 72 20 72 65 73 6f 75 72 63 65 73 0a 57 | for resources.W| 00000870 69 6d 70 73 6c 6f 74 20 2d 6d 69 6e 20 31 30 35 |impslot -min 105| 00000880 36 4b 20 2d 6d 61 78 20 31 30 35 36 4b 0a 7c 0a |6K -max 1056K.|.| 00000890 7c 0a 53 65 74 20 43 6f 6e 74 72 6f 6c 4c 61 62 ||.Set ControlLab| 000008a0 24 44 69 72 20 3c 4f 62 65 79 24 44 69 72 3e 0a |$Dir <Obey$Dir>.| 000008b0 53 65 74 20 41 6c 69 61 73 24 40 52 75 6e 54 79 |Set Alias$@RunTy| 000008c0 70 65 5f 42 42 36 20 52 75 6e 20 3c 43 6f 6e 74 |pe_BB6 Run <Cont| 000008d0 72 6f 6c 4c 61 62 24 44 69 72 3e 2e 21 52 75 6e |rolLab$Dir>.!Run| 000008e0 20 25 25 2a 30 0a 53 65 74 20 41 6c 69 61 73 24 | %%*0.Set Alias$| 000008f0 40 50 72 69 6e 74 54 79 70 65 5f 42 42 36 20 52 |@PrintType_BB6 R| 00000900 75 6e 20 3c 43 6f 6e 74 72 6f 6c 4c 61 62 24 44 |un <ControlLab$D| 00000910 69 72 3e 2e 21 52 75 6e 20 2d 70 72 69 6e 74 20 |ir>.!Run -print | 00000920 25 25 2a 30 0a 53 65 74 20 46 69 6c 65 24 54 79 |%%*0.Set File$Ty| 00000930 70 65 5f 42 42 36 20 43 74 72 6c 50 72 6f 6a 0a |pe_BB6 CtrlProj.| 00000940 57 69 6d 70 73 6c 6f 74 20 2d 6d 69 6e 20 35 31 |Wimpslot -min 51| 00000950 32 4b 20 2d 6d 61 78 20 35 31 32 4b 0a 7c 0a 52 |2K -max 512K.|.R| 00000960 75 6e 20 3c 43 6f 6e 74 72 6f 6c 4c 61 62 24 44 |un <ControlLab$D| 00000970 69 72 3e 2e 21 52 75 6e 49 6d 61 67 65 20 25 2a |ir>.!RunImage %*| 00000980 30 0a |0.| 00000982