Home » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Program Disc).adf » !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 » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Program Disc).adf
Filename: !PipeDream/!Run
Read OK:
File size: 08EA bytes
Load address: FFFFEB43
Exec address: C7C01622
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
|
| Check Font Manager version
|
RMEnsure FontManager 2.42 Echo Warning: you need Outline FontManager 2.42 or later to use PipeDream 4 Charts
|
| 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 20K 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 43 68 65  |or later.|.| Che|
000006c0  63 6b 20 46 6f 6e 74 20  4d 61 6e 61 67 65 72 20  |ck Font Manager |
000006d0  76 65 72 73 69 6f 6e 0a  7c 0a 52 4d 45 6e 73 75  |version.|.RMEnsu|
000006e0  72 65 20 46 6f 6e 74 4d  61 6e 61 67 65 72 20 32  |re FontManager 2|
000006f0  2e 34 32 20 45 63 68 6f  20 57 61 72 6e 69 6e 67  |.42 Echo Warning|
00000700  3a 20 79 6f 75 20 6e 65  65 64 20 4f 75 74 6c 69  |: you need Outli|
00000710  6e 65 20 46 6f 6e 74 4d  61 6e 61 67 65 72 20 32  |ne FontManager 2|
00000720  2e 34 32 20 6f 72 20 6c  61 74 65 72 20 74 6f 20  |.42 or later to |
00000730  75 73 65 20 50 69 70 65  44 72 65 61 6d 20 34 20  |use PipeDream 4 |
00000740  43 68 61 72 74 73 0a 7c  0a 7c 20 41 6c 6c 6f 63  |Charts.|.| Alloc|
00000750  61 74 65 20 66 69 78 65  64 20 6d 65 6d 6f 72 79  |ate fixed memory|
00000760  20 66 6f 72 20 64 6f 63  75 6d 65 6e 74 73 0a 7c  | for documents.||
00000770  0a 7c 20 54 68 65 20 66  69 72 73 74 20 70 61 72  |.| The first par|
00000780  61 6d 65 74 65 72 20 63  6f 6e 74 72 6f 6c 73 20  |ameter controls |
00000790  74 68 65 20 61 6d 6f 75  6e 74 20 6f 66 20 61 64  |the amount of ad|
000007a0  64 69 74 69 6f 6e 61 6c  20 6d 65 6d 6f 72 79 0a  |ditional memory.|
000007b0  7c 20 74 68 61 74 20 50  69 70 65 44 72 65 61 6d  || that PipeDream|
000007c0  20 72 65 71 75 69 72 65  73 20 74 6f 20 62 65 20  | requires to be |
000007d0  69 6e 20 74 68 65 20 57  69 6d 70 53 6c 6f 74 20  |in the WimpSlot |
000007e0  6f 6e 20 73 74 61 72 74  75 70 0a 7c 0a 7c 20 54  |on startup.|.| T|
000007f0  68 65 20 73 65 63 6f 6e  64 20 70 61 72 61 6d 65  |he second parame|
00000800  74 65 72 20 69 73 20 68  6f 77 20 6d 75 63 68 20  |ter is how much |
00000810  65 78 74 72 61 20 6d 65  6d 6f 72 79 20 50 69 70  |extra memory Pip|
00000820  65 44 72 65 61 6d 20 77  69 6c 6c 0a 7c 20 6e 65  |eDream will.| ne|
00000830  65 64 20 74 6f 20 63 6c  61 69 6d 20 6f 6e 20 73  |ed to claim on s|
00000840  74 61 72 74 75 70 20 6f  6e 20 74 6f 70 20 6f 66  |tartup on top of|
00000850  20 74 68 65 20 69 6e 69  74 69 61 6c 20 57 69 6d  | the initial Wim|
00000860  70 53 6c 6f 74 0a 7c 0a  52 75 6e 20 3c 50 69 70  |pSlot.|.Run <Pip|
00000870  65 44 72 65 61 6d 24 49  6d 61 67 65 44 69 72 3e  |eDream$ImageDir>|
00000880  2e 49 6d 61 67 65 53 6c  6f 74 20 3c 50 69 70 65  |.ImageSlot <Pipe|
00000890  44 72 65 61 6d 24 49 6d  61 67 65 44 69 72 3e 2e  |Dream$ImageDir>.|
000008a0  21 52 75 6e 49 6d 61 67  65 20 32 30 4b 20 33 32  |!RunImage 20K 32|
000008b0  4b 0a 7c 0a 7c 20 47 6f  2c 20 47 6f 2c 20 47 6f  |K.|.| Go, Go, Go|
000008c0  0a 7c 0a 52 75 6e 20 3c  50 69 70 65 44 72 65 61  |.|.Run <PipeDrea|
000008d0  6d 24 49 6d 61 67 65 44  69 72 3e 2e 21 52 75 6e  |m$ImageDir>.!Run|
000008e0  49 6d 61 67 65 20 25 2a  30 0a                    |Image %*0.|
000008ea