Home » Personal collection » Acorn hard disk » apps » Pipedream » !PipeDream/!Run
!PipeDream/!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 » Pipedream |
Filename: | !PipeDream/!Run |
Read OK: | ✔ |
File size: | 085C bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
| | Run file for PipeDream local resources | Set PipeDream$Dir <Obey$Dir> | | | Test for and initialise PipeDream global resources. | | Remove the following comment | to enable test. Do NOT do | this unless you have PipeDream global resources available | | If "<PDGlobal$Dir>" ="" then Error PipeDream global resources can not be found | If "<PDGlobal$Dir>"<>"" then Run <PDGlobal$Dir>.!Boot | | | Initialise PipeDream local resources | Run <PipeDream$Dir>.!Boot | Run <PipeDream$Dir>.!Path | If "<PDGlobal$Dir>" = "" then Set PipeDream$ImageDir <PipeDream$Dir> If "<PDGlobal$Dir>" <> "" then Set PipeDream$ImageDir <PDGlobal$Dir> | | | Ensure we have the shared C library and determine its vintage | Set PipeDream$CLibLoaded 1 RMEnsure SharedCLibrary 0.00 Set PipeDream$CLibLoaded 0 If PipeDream$CLibLoaded=0 then If "<System$Path>" <> "" then RMLoad System:Modules.CLib If PipeDream$CLibLoaded=0 then If "<System$Path>" = "" then Error 0 System resources can not be found Unset PipeDream$CLibLoaded Set PipeDream$NewCLib 0 RMEnsure SharedCLibrary 3.75 Set PipeDream$NewCLib 1 RMEnsure SharedCLibrary 3.50 Error You need SharedCLibrary 3.50 or later | | Ensure we have ColourTrans | RMEnsure ColourTrans 0.52 If "<System$Path>" <> "" then RMLoad System:Modules.Colours RMEnsure ColourTrans 0.52 If "<System$Path>" = "" then Error 0 System resources can not be found RMEnsure ColourTrans 0.52 Error 0 You need ColourTrans 0.52 or later | | Ensure we have FPEmulator | RMEnsure FPEmulator 2.70 If "<System$Path>" <> "" then RMLoad System:Modules.FPEmulator RMEnsure FPEmulator 2.70 If "<System$Path>" = "" then Error 0 System resources can not be found RMEnsure FPEmulator 2.70 Error You need FPEmulator 2.70 or later | | Allocate fixed memory for documents | | The first parameter controls the amount of additional memory | that PipeDream requires to be in the WimpSlot on startup | | The second parameter is how much extra memory PipeDream will | need to claim on startup on top of the initial WimpSlot | Run <PipeDream$ImageDir>.ImageSlot <PipeDream$ImageDir>.!RunImage 48K 32K | | Go, Go, Go | Run <PipeDream$ImageDir>.!RunImage %*0
00000000 7c 0a 7c 20 52 75 6e 20 66 69 6c 65 20 66 6f 72 ||.| Run file for| 00000010 20 50 69 70 65 44 72 65 61 6d 20 6c 6f 63 61 6c | PipeDream local| 00000020 20 72 65 73 6f 75 72 63 65 73 0a 7c 0a 53 65 74 | resources.|.Set| 00000030 20 50 69 70 65 44 72 65 61 6d 24 44 69 72 20 3c | PipeDream$Dir <| 00000040 4f 62 65 79 24 44 69 72 3e 0a 7c 0a 7c 0a 7c 20 |Obey$Dir>.|.|.| | 00000050 54 65 73 74 20 66 6f 72 20 61 6e 64 20 69 6e 69 |Test for and ini| 00000060 74 69 61 6c 69 73 65 20 50 69 70 65 44 72 65 61 |tialise PipeDrea| 00000070 6d 20 67 6c 6f 62 61 6c 20 72 65 73 6f 75 72 63 |m global resourc| 00000080 65 73 2e 0a 7c 0a 7c 20 52 65 6d 6f 76 65 20 74 |es..|.| Remove t| 00000090 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 63 6f 6d |he following com| 000000a0 6d 65 6e 74 20 7c 20 74 6f 20 65 6e 61 62 6c 65 |ment | to enable| 000000b0 20 74 65 73 74 2e 20 44 6f 20 4e 4f 54 20 64 6f | test. Do NOT do| 000000c0 0a 7c 20 74 68 69 73 20 75 6e 6c 65 73 73 20 79 |.| this unless y| 000000d0 6f 75 20 68 61 76 65 20 50 69 70 65 44 72 65 61 |ou have PipeDrea| 000000e0 6d 20 67 6c 6f 62 61 6c 20 72 65 73 6f 75 72 63 |m global resourc| 000000f0 65 73 20 61 76 61 69 6c 61 62 6c 65 0a 7c 0a 7c |es available.|.|| 00000100 20 49 66 20 22 3c 50 44 47 6c 6f 62 61 6c 24 44 | If "<PDGlobal$D| 00000110 69 72 3e 22 20 3d 22 22 20 74 68 65 6e 20 45 72 |ir>" ="" then Er| 00000120 72 6f 72 20 50 69 70 65 44 72 65 61 6d 20 67 6c |ror PipeDream gl| 00000130 6f 62 61 6c 20 72 65 73 6f 75 72 63 65 73 20 63 |obal resources c| 00000140 61 6e 20 6e 6f 74 20 62 65 20 66 6f 75 6e 64 0a |an not be found.| 00000150 7c 0a 49 66 20 22 3c 50 44 47 6c 6f 62 61 6c 24 ||.If "<PDGlobal$| 00000160 44 69 72 3e 22 3c 3e 22 22 20 74 68 65 6e 20 52 |Dir>"<>"" then R| 00000170 75 6e 20 3c 50 44 47 6c 6f 62 61 6c 24 44 69 72 |un <PDGlobal$Dir| 00000180 3e 2e 21 42 6f 6f 74 0a 7c 0a 7c 0a 7c 20 49 6e |>.!Boot.|.|.| In| 00000190 69 74 69 61 6c 69 73 65 20 50 69 70 65 44 72 65 |itialise PipeDre| 000001a0 61 6d 20 6c 6f 63 61 6c 20 72 65 73 6f 75 72 63 |am local resourc| 000001b0 65 73 0a 7c 0a 52 75 6e 20 3c 50 69 70 65 44 72 |es.|.Run <PipeDr| 000001c0 65 61 6d 24 44 69 72 3e 2e 21 42 6f 6f 74 0a 7c |eam$Dir>.!Boot.|| 000001d0 0a 52 75 6e 20 3c 50 69 70 65 44 72 65 61 6d 24 |.Run <PipeDream$| 000001e0 44 69 72 3e 2e 21 50 61 74 68 0a 7c 0a 49 66 20 |Dir>.!Path.|.If | 000001f0 22 3c 50 44 47 6c 6f 62 61 6c 24 44 69 72 3e 22 |"<PDGlobal$Dir>"| 00000200 20 20 3d 20 22 22 20 74 68 65 6e 20 53 65 74 20 | = "" then Set | 00000210 50 69 70 65 44 72 65 61 6d 24 49 6d 61 67 65 44 |PipeDream$ImageD| 00000220 69 72 20 3c 50 69 70 65 44 72 65 61 6d 24 44 69 |ir <PipeDream$Di| 00000230 72 3e 0a 49 66 20 22 3c 50 44 47 6c 6f 62 61 6c |r>.If "<PDGlobal| 00000240 24 44 69 72 3e 22 20 3c 3e 20 22 22 20 74 68 65 |$Dir>" <> "" the| 00000250 6e 20 53 65 74 20 50 69 70 65 44 72 65 61 6d 24 |n Set PipeDream$| 00000260 49 6d 61 67 65 44 69 72 20 3c 50 44 47 6c 6f 62 |ImageDir <PDGlob| 00000270 61 6c 24 44 69 72 3e 0a 7c 0a 7c 0a 7c 20 45 6e |al$Dir>.|.|.| En| 00000280 73 75 72 65 20 77 65 20 68 61 76 65 20 74 68 65 |sure we have the| 00000290 20 73 68 61 72 65 64 20 43 20 6c 69 62 72 61 72 | shared C librar| 000002a0 79 20 61 6e 64 20 64 65 74 65 72 6d 69 6e 65 20 |y and determine | 000002b0 69 74 73 20 76 69 6e 74 61 67 65 0a 7c 0a 53 65 |its vintage.|.Se| 000002c0 74 20 50 69 70 65 44 72 65 61 6d 24 43 4c 69 62 |t PipeDream$CLib| 000002d0 4c 6f 61 64 65 64 20 31 0a 52 4d 45 6e 73 75 72 |Loaded 1.RMEnsur| 000002e0 65 20 53 68 61 72 65 64 43 4c 69 62 72 61 72 79 |e SharedCLibrary| 000002f0 20 30 2e 30 30 20 53 65 74 20 50 69 70 65 44 72 | 0.00 Set PipeDr| 00000300 65 61 6d 24 43 4c 69 62 4c 6f 61 64 65 64 20 30 |eam$CLibLoaded 0| 00000310 0a 49 66 20 50 69 70 65 44 72 65 61 6d 24 43 4c |.If PipeDream$CL| 00000320 69 62 4c 6f 61 64 65 64 3d 30 20 74 68 65 6e 20 |ibLoaded=0 then | 00000330 49 66 20 22 3c 53 79 73 74 65 6d 24 50 61 74 68 |If "<System$Path| 00000340 3e 22 20 3c 3e 20 22 22 20 74 68 65 6e 20 52 4d |>" <> "" then RM| 00000350 4c 6f 61 64 20 53 79 73 74 65 6d 3a 4d 6f 64 75 |Load System:Modu| 00000360 6c 65 73 2e 43 4c 69 62 0a 49 66 20 50 69 70 65 |les.CLib.If Pipe| 00000370 44 72 65 61 6d 24 43 4c 69 62 4c 6f 61 64 65 64 |Dream$CLibLoaded| 00000380 3d 30 20 74 68 65 6e 20 49 66 20 22 3c 53 79 73 |=0 then If "<Sys| 00000390 74 65 6d 24 50 61 74 68 3e 22 20 20 3d 20 22 22 |tem$Path>" = ""| 000003a0 20 74 68 65 6e 20 45 72 72 6f 72 20 30 20 53 79 | then Error 0 Sy| 000003b0 73 74 65 6d 20 72 65 73 6f 75 72 63 65 73 20 63 |stem resources c| 000003c0 61 6e 20 6e 6f 74 20 62 65 20 66 6f 75 6e 64 0a |an not be found.| 000003d0 55 6e 73 65 74 20 50 69 70 65 44 72 65 61 6d 24 |Unset PipeDream$| 000003e0 43 4c 69 62 4c 6f 61 64 65 64 0a 53 65 74 20 50 |CLibLoaded.Set P| 000003f0 69 70 65 44 72 65 61 6d 24 4e 65 77 43 4c 69 62 |ipeDream$NewCLib| 00000400 20 30 0a 52 4d 45 6e 73 75 72 65 20 53 68 61 72 | 0.RMEnsure Shar| 00000410 65 64 43 4c 69 62 72 61 72 79 20 33 2e 37 35 20 |edCLibrary 3.75 | 00000420 53 65 74 20 50 69 70 65 44 72 65 61 6d 24 4e 65 |Set PipeDream$Ne| 00000430 77 43 4c 69 62 20 31 0a 52 4d 45 6e 73 75 72 65 |wCLib 1.RMEnsure| 00000440 20 53 68 61 72 65 64 43 4c 69 62 72 61 72 79 20 | SharedCLibrary | 00000450 33 2e 35 30 20 45 72 72 6f 72 20 59 6f 75 20 6e |3.50 Error You n| 00000460 65 65 64 20 53 68 61 72 65 64 43 4c 69 62 72 61 |eed SharedCLibra| 00000470 72 79 20 33 2e 35 30 20 6f 72 20 6c 61 74 65 72 |ry 3.50 or later| 00000480 0a 7c 0a 7c 20 45 6e 73 75 72 65 20 77 65 20 68 |.|.| Ensure we h| 00000490 61 76 65 20 43 6f 6c 6f 75 72 54 72 61 6e 73 0a |ave ColourTrans.| 000004a0 7c 0a 52 4d 45 6e 73 75 72 65 20 43 6f 6c 6f 75 ||.RMEnsure Colou| 000004b0 72 54 72 61 6e 73 20 30 2e 35 32 20 49 66 20 22 |rTrans 0.52 If "| 000004c0 3c 53 79 73 74 65 6d 24 50 61 74 68 3e 22 20 3c |<System$Path>" <| 000004d0 3e 20 22 22 20 74 68 65 6e 20 52 4d 4c 6f 61 64 |> "" then RMLoad| 000004e0 20 53 79 73 74 65 6d 3a 4d 6f 64 75 6c 65 73 2e | System:Modules.| 000004f0 43 6f 6c 6f 75 72 73 0a 52 4d 45 6e 73 75 72 65 |Colours.RMEnsure| 00000500 20 43 6f 6c 6f 75 72 54 72 61 6e 73 20 30 2e 35 | ColourTrans 0.5| 00000510 32 20 49 66 20 22 3c 53 79 73 74 65 6d 24 50 61 |2 If "<System$Pa| 00000520 74 68 3e 22 20 20 3d 20 22 22 20 74 68 65 6e 20 |th>" = "" then | 00000530 45 72 72 6f 72 20 30 20 53 79 73 74 65 6d 20 72 |Error 0 System r| 00000540 65 73 6f 75 72 63 65 73 20 63 61 6e 20 6e 6f 74 |esources can not| 00000550 20 62 65 20 66 6f 75 6e 64 0a 52 4d 45 6e 73 75 | be found.RMEnsu| 00000560 72 65 20 43 6f 6c 6f 75 72 54 72 61 6e 73 20 30 |re ColourTrans 0| 00000570 2e 35 32 20 45 72 72 6f 72 20 30 20 59 6f 75 20 |.52 Error 0 You | 00000580 6e 65 65 64 20 43 6f 6c 6f 75 72 54 72 61 6e 73 |need ColourTrans| 00000590 20 30 2e 35 32 20 6f 72 20 6c 61 74 65 72 0a 7c | 0.52 or later.|| 000005a0 0a 7c 20 45 6e 73 75 72 65 20 77 65 20 68 61 76 |.| Ensure we hav| 000005b0 65 20 46 50 45 6d 75 6c 61 74 6f 72 0a 7c 0a 52 |e FPEmulator.|.R| 000005c0 4d 45 6e 73 75 72 65 20 46 50 45 6d 75 6c 61 74 |MEnsure FPEmulat| 000005d0 6f 72 20 32 2e 37 30 20 49 66 20 22 3c 53 79 73 |or 2.70 If "<Sys| 000005e0 74 65 6d 24 50 61 74 68 3e 22 20 3c 3e 20 22 22 |tem$Path>" <> ""| 000005f0 20 74 68 65 6e 20 52 4d 4c 6f 61 64 20 53 79 73 | then RMLoad Sys| 00000600 74 65 6d 3a 4d 6f 64 75 6c 65 73 2e 46 50 45 6d |tem:Modules.FPEm| 00000610 75 6c 61 74 6f 72 0a 52 4d 45 6e 73 75 72 65 20 |ulator.RMEnsure | 00000620 46 50 45 6d 75 6c 61 74 6f 72 20 32 2e 37 30 20 |FPEmulator 2.70 | 00000630 49 66 20 22 3c 53 79 73 74 65 6d 24 50 61 74 68 |If "<System$Path| 00000640 3e 22 20 20 3d 20 22 22 20 74 68 65 6e 20 45 72 |>" = "" then Er| 00000650 72 6f 72 20 30 20 53 79 73 74 65 6d 20 72 65 73 |ror 0 System res| 00000660 6f 75 72 63 65 73 20 63 61 6e 20 6e 6f 74 20 62 |ources can not b| 00000670 65 20 66 6f 75 6e 64 0a 52 4d 45 6e 73 75 72 65 |e found.RMEnsure| 00000680 20 46 50 45 6d 75 6c 61 74 6f 72 20 32 2e 37 30 | FPEmulator 2.70| 00000690 20 45 72 72 6f 72 20 59 6f 75 20 6e 65 65 64 20 | Error You need | 000006a0 46 50 45 6d 75 6c 61 74 6f 72 20 32 2e 37 30 20 |FPEmulator 2.70 | 000006b0 6f 72 20 6c 61 74 65 72 0a 7c 0a 7c 20 41 6c 6c |or later.|.| All| 000006c0 6f 63 61 74 65 20 66 69 78 65 64 20 6d 65 6d 6f |ocate fixed memo| 000006d0 72 79 20 66 6f 72 20 64 6f 63 75 6d 65 6e 74 73 |ry for documents| 000006e0 0a 7c 0a 7c 20 54 68 65 20 66 69 72 73 74 20 70 |.|.| The first p| 000006f0 61 72 61 6d 65 74 65 72 20 63 6f 6e 74 72 6f 6c |arameter control| 00000700 73 20 74 68 65 20 61 6d 6f 75 6e 74 20 6f 66 20 |s the amount of | 00000710 61 64 64 69 74 69 6f 6e 61 6c 20 6d 65 6d 6f 72 |additional memor| 00000720 79 0a 7c 20 74 68 61 74 20 50 69 70 65 44 72 65 |y.| that PipeDre| 00000730 61 6d 20 72 65 71 75 69 72 65 73 20 74 6f 20 62 |am requires to b| 00000740 65 20 69 6e 20 74 68 65 20 57 69 6d 70 53 6c 6f |e in the WimpSlo| 00000750 74 20 6f 6e 20 73 74 61 72 74 75 70 0a 7c 0a 7c |t on startup.|.|| 00000760 20 54 68 65 20 73 65 63 6f 6e 64 20 70 61 72 61 | The second para| 00000770 6d 65 74 65 72 20 69 73 20 68 6f 77 20 6d 75 63 |meter is how muc| 00000780 68 20 65 78 74 72 61 20 6d 65 6d 6f 72 79 20 50 |h extra memory P| 00000790 69 70 65 44 72 65 61 6d 20 77 69 6c 6c 0a 7c 20 |ipeDream will.| | 000007a0 6e 65 65 64 20 74 6f 20 63 6c 61 69 6d 20 6f 6e |need to claim on| 000007b0 20 73 74 61 72 74 75 70 20 6f 6e 20 74 6f 70 20 | startup on top | 000007c0 6f 66 20 74 68 65 20 69 6e 69 74 69 61 6c 20 57 |of the initial W| 000007d0 69 6d 70 53 6c 6f 74 0a 7c 0a 52 75 6e 20 3c 50 |impSlot.|.Run <P| 000007e0 69 70 65 44 72 65 61 6d 24 49 6d 61 67 65 44 69 |ipeDream$ImageDi| 000007f0 72 3e 2e 49 6d 61 67 65 53 6c 6f 74 20 3c 50 69 |r>.ImageSlot <Pi| 00000800 70 65 44 72 65 61 6d 24 49 6d 61 67 65 44 69 72 |peDream$ImageDir| 00000810 3e 2e 21 52 75 6e 49 6d 61 67 65 20 34 38 4b 20 |>.!RunImage 48K | 00000820 33 32 4b 0a 7c 0a 7c 20 47 6f 2c 20 47 6f 2c 20 |32K.|.| Go, Go, | 00000830 47 6f 0a 7c 0a 52 75 6e 20 3c 50 69 70 65 44 72 |Go.|.Run <PipeDr| 00000840 65 61 6d 24 49 6d 61 67 65 44 69 72 3e 2e 21 52 |eam$ImageDir>.!R| 00000850 75 6e 49 6d 61 67 65 20 25 2a 30 0a |unImage %*0.| 0000085c