Home » Archimedes archive » Apps » PipeDream 3 ()(Colton Software).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 3 ()(Colton Software).adf
Filename: !PipeDream/!Run
Read OK:
File size: 063C bytes
Load address: FFFFEB42
Exec address: EACC69BA
File contents
| Run file for PipeDream
|
| PipeDream 3.14 (14-Nov-90)
|
Set PipeDream$Dir <Obey$Dir>
|
IconSprites <PipeDream$Dir>.!Sprites
|
| Set up file types
|
SetMacro Alias$@RunType_DDE   Run <PipeDream$Dir>.!Run %%*0
SetMacro Alias$@PrintType_DDE Run <PipeDream$Dir>.!Run -Print %%*0
Set File$Type_DDE PDream
SetMacro Alias$@RunType_D21   Run <PipeDream$Dir>.!Run -Macro %%*0
Set File$Type_D21 PDMacro
|
| Ensure we have FPEmulator
|
RMEnsure FPEmulator 2.70 If "<System$Path>" = "" then Error 0 System resources cannot be found
RMEnsure FPEmulator 2.70 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.70 Error You need FPEmulator 2.70 or later
|
| Ensure we have ColourTrans
|
RMEnsure ColourTrans 0.51 If "<System$Path>" = "" then Error 0 System resources cannot be found
RMEnsure ColourTrans 0.51 RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.51 Error You need ColourTrans 0.51 or later
|
| 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 Error 0 System resources cannot be found
If PipeDream$CLibLoaded=0 then RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 3.50 Error You need SharedCLibrary 3.50 or later
Set PipeDream$NewCLib 0
RMEnsure SharedCLibrary 3.66 Set PipeDream$NewCLib 0
Unset PipeDream$CLibLoaded
|
If "<PipeDream$Path>" = "" then Obey <PipeDream$Dir>.!Path
|
| Allocate fixed memory for documents
|
WimpSlot -min 464k -max 464k
WimpSlot -min 432k -max 432k
|
| Go, Go, Go
|
Run <PipeDream$Dir>.!RunImage %*0
00000000  7c 20 52 75 6e 20 66 69  6c 65 20 66 6f 72 20 50  || Run file for P|
00000010  69 70 65 44 72 65 61 6d  0a 7c 0a 7c 20 50 69 70  |ipeDream.|.| Pip|
00000020  65 44 72 65 61 6d 20 33  2e 31 34 20 28 31 34 2d  |eDream 3.14 (14-|
00000030  4e 6f 76 2d 39 30 29 0a  7c 0a 53 65 74 20 50 69  |Nov-90).|.Set Pi|
00000040  70 65 44 72 65 61 6d 24  44 69 72 20 3c 4f 62 65  |peDream$Dir <Obe|
00000050  79 24 44 69 72 3e 0a 7c  0a 49 63 6f 6e 53 70 72  |y$Dir>.|.IconSpr|
00000060  69 74 65 73 20 3c 50 69  70 65 44 72 65 61 6d 24  |ites <PipeDream$|
00000070  44 69 72 3e 2e 21 53 70  72 69 74 65 73 0a 7c 0a  |Dir>.!Sprites.|.|
00000080  7c 20 53 65 74 20 75 70  20 66 69 6c 65 20 74 79  || Set up file ty|
00000090  70 65 73 0a 7c 0a 53 65  74 4d 61 63 72 6f 20 41  |pes.|.SetMacro A|
000000a0  6c 69 61 73 24 40 52 75  6e 54 79 70 65 5f 44 44  |lias$@RunType_DD|
000000b0  45 20 20 20 52 75 6e 20  3c 50 69 70 65 44 72 65  |E   Run <PipeDre|
000000c0  61 6d 24 44 69 72 3e 2e  21 52 75 6e 20 25 25 2a  |am$Dir>.!Run %%*|
000000d0  30 0a 53 65 74 4d 61 63  72 6f 20 41 6c 69 61 73  |0.SetMacro Alias|
000000e0  24 40 50 72 69 6e 74 54  79 70 65 5f 44 44 45 20  |$@PrintType_DDE |
000000f0  52 75 6e 20 3c 50 69 70  65 44 72 65 61 6d 24 44  |Run <PipeDream$D|
00000100  69 72 3e 2e 21 52 75 6e  20 2d 50 72 69 6e 74 20  |ir>.!Run -Print |
00000110  25 25 2a 30 0a 53 65 74  20 46 69 6c 65 24 54 79  |%%*0.Set File$Ty|
00000120  70 65 5f 44 44 45 20 50  44 72 65 61 6d 0a 53 65  |pe_DDE PDream.Se|
00000130  74 4d 61 63 72 6f 20 41  6c 69 61 73 24 40 52 75  |tMacro Alias$@Ru|
00000140  6e 54 79 70 65 5f 44 32  31 20 20 20 52 75 6e 20  |nType_D21   Run |
00000150  3c 50 69 70 65 44 72 65  61 6d 24 44 69 72 3e 2e  |<PipeDream$Dir>.|
00000160  21 52 75 6e 20 2d 4d 61  63 72 6f 20 25 25 2a 30  |!Run -Macro %%*0|
00000170  0a 53 65 74 20 46 69 6c  65 24 54 79 70 65 5f 44  |.Set File$Type_D|
00000180  32 31 20 50 44 4d 61 63  72 6f 0a 7c 0a 7c 20 45  |21 PDMacro.|.| E|
00000190  6e 73 75 72 65 20 77 65  20 68 61 76 65 20 46 50  |nsure we have FP|
000001a0  45 6d 75 6c 61 74 6f 72  0a 7c 0a 52 4d 45 6e 73  |Emulator.|.RMEns|
000001b0  75 72 65 20 46 50 45 6d  75 6c 61 74 6f 72 20 32  |ure FPEmulator 2|
000001c0  2e 37 30 20 49 66 20 22  3c 53 79 73 74 65 6d 24  |.70 If "<System$|
000001d0  50 61 74 68 3e 22 20 3d  20 22 22 20 74 68 65 6e  |Path>" = "" then|
000001e0  20 45 72 72 6f 72 20 30  20 53 79 73 74 65 6d 20  | Error 0 System |
000001f0  72 65 73 6f 75 72 63 65  73 20 63 61 6e 6e 6f 74  |resources cannot|
00000200  20 62 65 20 66 6f 75 6e  64 0a 52 4d 45 6e 73 75  | be found.RMEnsu|
00000210  72 65 20 46 50 45 6d 75  6c 61 74 6f 72 20 32 2e  |re FPEmulator 2.|
00000220  37 30 20 52 4d 4c 6f 61  64 20 53 79 73 74 65 6d  |70 RMLoad System|
00000230  3a 4d 6f 64 75 6c 65 73  2e 46 50 45 6d 75 6c 61  |:Modules.FPEmula|
00000240  74 6f 72 0a 52 4d 45 6e  73 75 72 65 20 46 50 45  |tor.RMEnsure FPE|
00000250  6d 75 6c 61 74 6f 72 20  32 2e 37 30 20 45 72 72  |mulator 2.70 Err|
00000260  6f 72 20 59 6f 75 20 6e  65 65 64 20 46 50 45 6d  |or You need FPEm|
00000270  75 6c 61 74 6f 72 20 32  2e 37 30 20 6f 72 20 6c  |ulator 2.70 or l|
00000280  61 74 65 72 0a 7c 0a 7c  20 45 6e 73 75 72 65 20  |ater.|.| Ensure |
00000290  77 65 20 68 61 76 65 20  43 6f 6c 6f 75 72 54 72  |we have ColourTr|
000002a0  61 6e 73 0a 7c 0a 52 4d  45 6e 73 75 72 65 20 43  |ans.|.RMEnsure C|
000002b0  6f 6c 6f 75 72 54 72 61  6e 73 20 30 2e 35 31 20  |olourTrans 0.51 |
000002c0  49 66 20 22 3c 53 79 73  74 65 6d 24 50 61 74 68  |If "<System$Path|
000002d0  3e 22 20 3d 20 22 22 20  74 68 65 6e 20 45 72 72  |>" = "" then Err|
000002e0  6f 72 20 30 20 53 79 73  74 65 6d 20 72 65 73 6f  |or 0 System reso|
000002f0  75 72 63 65 73 20 63 61  6e 6e 6f 74 20 62 65 20  |urces cannot be |
00000300  66 6f 75 6e 64 0a 52 4d  45 6e 73 75 72 65 20 43  |found.RMEnsure C|
00000310  6f 6c 6f 75 72 54 72 61  6e 73 20 30 2e 35 31 20  |olourTrans 0.51 |
00000320  52 4d 4c 6f 61 64 20 53  79 73 74 65 6d 3a 4d 6f  |RMLoad System:Mo|
00000330  64 75 6c 65 73 2e 43 6f  6c 6f 75 72 73 0a 52 4d  |dules.Colours.RM|
00000340  45 6e 73 75 72 65 20 43  6f 6c 6f 75 72 54 72 61  |Ensure ColourTra|
00000350  6e 73 20 30 2e 35 31 20  45 72 72 6f 72 20 59 6f  |ns 0.51 Error Yo|
00000360  75 20 6e 65 65 64 20 43  6f 6c 6f 75 72 54 72 61  |u need ColourTra|
00000370  6e 73 20 30 2e 35 31 20  6f 72 20 6c 61 74 65 72  |ns 0.51 or later|
00000380  0a 7c 0a 7c 20 45 6e 73  75 72 65 20 77 65 20 68  |.|.| Ensure we h|
00000390  61 76 65 20 74 68 65 20  73 68 61 72 65 64 20 43  |ave the shared C|
000003a0  20 6c 69 62 72 61 72 79  20 61 6e 64 20 64 65 74  | library and det|
000003b0  65 72 6d 69 6e 65 20 69  74 73 20 76 69 6e 74 61  |ermine its vinta|
000003c0  67 65 0a 7c 0a 53 65 74  20 50 69 70 65 44 72 65  |ge.|.Set PipeDre|
000003d0  61 6d 24 43 4c 69 62 4c  6f 61 64 65 64 20 31 0a  |am$CLibLoaded 1.|
000003e0  52 4d 45 6e 73 75 72 65  20 53 68 61 72 65 64 43  |RMEnsure SharedC|
000003f0  4c 69 62 72 61 72 79 20  30 2e 30 30 20 53 65 74  |Library 0.00 Set|
00000400  20 50 69 70 65 44 72 65  61 6d 24 43 4c 69 62 4c  | PipeDream$CLibL|
00000410  6f 61 64 65 64 20 30 0a  49 66 20 50 69 70 65 44  |oaded 0.If PipeD|
00000420  72 65 61 6d 24 43 4c 69  62 4c 6f 61 64 65 64 3d  |ream$CLibLoaded=|
00000430  30 20 74 68 65 6e 20 49  66 20 22 3c 53 79 73 74  |0 then If "<Syst|
00000440  65 6d 24 50 61 74 68 3e  22 20 3d 20 22 22 20 74  |em$Path>" = "" t|
00000450  68 65 6e 20 45 72 72 6f  72 20 30 20 53 79 73 74  |hen Error 0 Syst|
00000460  65 6d 20 72 65 73 6f 75  72 63 65 73 20 63 61 6e  |em resources can|
00000470  6e 6f 74 20 62 65 20 66  6f 75 6e 64 0a 49 66 20  |not be found.If |
00000480  50 69 70 65 44 72 65 61  6d 24 43 4c 69 62 4c 6f  |PipeDream$CLibLo|
00000490  61 64 65 64 3d 30 20 74  68 65 6e 20 52 4d 4c 6f  |aded=0 then RMLo|
000004a0  61 64 20 53 79 73 74 65  6d 3a 4d 6f 64 75 6c 65  |ad System:Module|
000004b0  73 2e 43 4c 69 62 0a 52  4d 45 6e 73 75 72 65 20  |s.CLib.RMEnsure |
000004c0  53 68 61 72 65 64 43 4c  69 62 72 61 72 79 20 33  |SharedCLibrary 3|
000004d0  2e 35 30 20 45 72 72 6f  72 20 59 6f 75 20 6e 65  |.50 Error You ne|
000004e0  65 64 20 53 68 61 72 65  64 43 4c 69 62 72 61 72  |ed SharedCLibrar|
000004f0  79 20 33 2e 35 30 20 6f  72 20 6c 61 74 65 72 0a  |y 3.50 or later.|
00000500  53 65 74 20 50 69 70 65  44 72 65 61 6d 24 4e 65  |Set PipeDream$Ne|
00000510  77 43 4c 69 62 20 30 0a  52 4d 45 6e 73 75 72 65  |wCLib 0.RMEnsure|
00000520  20 53 68 61 72 65 64 43  4c 69 62 72 61 72 79 20  | SharedCLibrary |
00000530  33 2e 36 36 20 53 65 74  20 50 69 70 65 44 72 65  |3.66 Set PipeDre|
00000540  61 6d 24 4e 65 77 43 4c  69 62 20 30 0a 55 6e 73  |am$NewCLib 0.Uns|
00000550  65 74 20 50 69 70 65 44  72 65 61 6d 24 43 4c 69  |et PipeDream$CLi|
00000560  62 4c 6f 61 64 65 64 0a  7c 0a 49 66 20 22 3c 50  |bLoaded.|.If "<P|
00000570  69 70 65 44 72 65 61 6d  24 50 61 74 68 3e 22 20  |ipeDream$Path>" |
00000580  3d 20 22 22 20 74 68 65  6e 20 4f 62 65 79 20 3c  |= "" then Obey <|
00000590  50 69 70 65 44 72 65 61  6d 24 44 69 72 3e 2e 21  |PipeDream$Dir>.!|
000005a0  50 61 74 68 0a 7c 0a 7c  20 41 6c 6c 6f 63 61 74  |Path.|.| Allocat|
000005b0  65 20 66 69 78 65 64 20  6d 65 6d 6f 72 79 20 66  |e fixed memory f|
000005c0  6f 72 20 64 6f 63 75 6d  65 6e 74 73 0a 7c 0a 57  |or documents.|.W|
000005d0  69 6d 70 53 6c 6f 74 20  2d 6d 69 6e 20 34 36 34  |impSlot -min 464|
000005e0  6b 20 2d 6d 61 78 20 34  36 34 6b 0a 57 69 6d 70  |k -max 464k.Wimp|
000005f0  53 6c 6f 74 20 2d 6d 69  6e 20 34 33 32 6b 20 2d  |Slot -min 432k -|
00000600  6d 61 78 20 34 33 32 6b  0a 7c 0a 7c 20 47 6f 2c  |max 432k.|.| Go,|
00000610  20 47 6f 2c 20 47 6f 0a  7c 0a 52 75 6e 20 3c 50  | Go, Go.|.Run <P|
00000620  69 70 65 44 72 65 61 6d  24 44 69 72 3e 2e 21 52  |ipeDream$Dir>.!R|
00000630  75 6e 49 6d 61 67 65 20  25 2a 30 0a              |unImage %*0.|
0000063c