Home » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf » Preload

Preload

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) (Examples Disc).adf
Filename: Preload
Read OK:
File size: 041A bytes
Load address: FFFFEB43
Exec address: ADF57AC7
File contents
|
| Preload obey file for PipeDream 4
|
Set PipeDream_Preload$Dir <Obey$Dir>
|
| Ensure we have a System and Scrap
|
If "<System$Path>" = "" then Set System$Path <PipeDream_Preload$Dir>.!System.
If "<Wimp$Scrap>"  = "" then Set Wimp$Scrap  <PipeDream_Preload$Dir>.!System.ScrapFile
|
| 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 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 3.50 Error You need SharedCLibrary 3.50 or later
Set PipeDream$NewCLib 0
RMEnsure SharedCLibrary 3.75 Set PipeDream$NewCLib 1
Unset PipeDream$CLibLoaded
|
| Ensure we have ColourTrans
|
RMEnsure ColourTrans 0.52 RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.52 Error You need ColourTrans 0.52 or later
|
| Ensure we have FPEmulator
|
RMEnsure FPEmulator 2.70 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.70 Error You need FPEmulator 2.70 or later
|
Unset PipeDream_Preload$Dir
|
Run adfs::PipeDream4.$.!PipeDream.!Run
00000000  7c 0a 7c 20 50 72 65 6c  6f 61 64 20 6f 62 65 79  ||.| Preload obey|
00000010  20 66 69 6c 65 20 66 6f  72 20 50 69 70 65 44 72  | file for PipeDr|
00000020  65 61 6d 20 34 0a 7c 0a  53 65 74 20 50 69 70 65  |eam 4.|.Set Pipe|
00000030  44 72 65 61 6d 5f 50 72  65 6c 6f 61 64 24 44 69  |Dream_Preload$Di|
00000040  72 20 3c 4f 62 65 79 24  44 69 72 3e 0a 7c 0a 7c  |r <Obey$Dir>.|.||
00000050  20 45 6e 73 75 72 65 20  77 65 20 68 61 76 65 20  | Ensure we have |
00000060  61 20 53 79 73 74 65 6d  20 61 6e 64 20 53 63 72  |a System and Scr|
00000070  61 70 0a 7c 0a 49 66 20  22 3c 53 79 73 74 65 6d  |ap.|.If "<System|
00000080  24 50 61 74 68 3e 22 20  3d 20 22 22 20 74 68 65  |$Path>" = "" the|
00000090  6e 20 53 65 74 20 53 79  73 74 65 6d 24 50 61 74  |n Set System$Pat|
000000a0  68 20 3c 50 69 70 65 44  72 65 61 6d 5f 50 72 65  |h <PipeDream_Pre|
000000b0  6c 6f 61 64 24 44 69 72  3e 2e 21 53 79 73 74 65  |load$Dir>.!Syste|
000000c0  6d 2e 0a 49 66 20 22 3c  57 69 6d 70 24 53 63 72  |m..If "<Wimp$Scr|
000000d0  61 70 3e 22 20 20 3d 20  22 22 20 74 68 65 6e 20  |ap>"  = "" then |
000000e0  53 65 74 20 57 69 6d 70  24 53 63 72 61 70 20 20  |Set Wimp$Scrap  |
000000f0  3c 50 69 70 65 44 72 65  61 6d 5f 50 72 65 6c 6f  |<PipeDream_Prelo|
00000100  61 64 24 44 69 72 3e 2e  21 53 79 73 74 65 6d 2e  |ad$Dir>.!System.|
00000110  53 63 72 61 70 46 69 6c  65 0a 7c 0a 7c 20 45 6e  |ScrapFile.|.| En|
00000120  73 75 72 65 20 77 65 20  68 61 76 65 20 74 68 65  |sure we have the|
00000130  20 73 68 61 72 65 64 20  43 20 6c 69 62 72 61 72  | shared C librar|
00000140  79 20 61 6e 64 20 64 65  74 65 72 6d 69 6e 65 20  |y and determine |
00000150  69 74 73 20 76 69 6e 74  61 67 65 0a 7c 0a 53 65  |its vintage.|.Se|
00000160  74 20 50 69 70 65 44 72  65 61 6d 24 43 4c 69 62  |t PipeDream$CLib|
00000170  4c 6f 61 64 65 64 20 31  0a 52 4d 45 6e 73 75 72  |Loaded 1.RMEnsur|
00000180  65 20 53 68 61 72 65 64  43 4c 69 62 72 61 72 79  |e SharedCLibrary|
00000190  20 30 2e 30 30 20 53 65  74 20 50 69 70 65 44 72  | 0.00 Set PipeDr|
000001a0  65 61 6d 24 43 4c 69 62  4c 6f 61 64 65 64 20 30  |eam$CLibLoaded 0|
000001b0  0a 49 66 20 50 69 70 65  44 72 65 61 6d 24 43 4c  |.If PipeDream$CL|
000001c0  69 62 4c 6f 61 64 65 64  3d 30 20 74 68 65 6e 20  |ibLoaded=0 then |
000001d0  52 4d 4c 6f 61 64 20 53  79 73 74 65 6d 3a 4d 6f  |RMLoad System:Mo|
000001e0  64 75 6c 65 73 2e 43 4c  69 62 0a 52 4d 45 6e 73  |dules.CLib.RMEns|
000001f0  75 72 65 20 53 68 61 72  65 64 43 4c 69 62 72 61  |ure SharedCLibra|
00000200  72 79 20 33 2e 35 30 20  45 72 72 6f 72 20 59 6f  |ry 3.50 Error Yo|
00000210  75 20 6e 65 65 64 20 53  68 61 72 65 64 43 4c 69  |u need SharedCLi|
00000220  62 72 61 72 79 20 33 2e  35 30 20 6f 72 20 6c 61  |brary 3.50 or la|
00000230  74 65 72 0a 53 65 74 20  50 69 70 65 44 72 65 61  |ter.Set PipeDrea|
00000240  6d 24 4e 65 77 43 4c 69  62 20 30 0a 52 4d 45 6e  |m$NewCLib 0.RMEn|
00000250  73 75 72 65 20 53 68 61  72 65 64 43 4c 69 62 72  |sure SharedCLibr|
00000260  61 72 79 20 33 2e 37 35  20 53 65 74 20 50 69 70  |ary 3.75 Set Pip|
00000270  65 44 72 65 61 6d 24 4e  65 77 43 4c 69 62 20 31  |eDream$NewCLib 1|
00000280  0a 55 6e 73 65 74 20 50  69 70 65 44 72 65 61 6d  |.Unset PipeDream|
00000290  24 43 4c 69 62 4c 6f 61  64 65 64 0a 7c 0a 7c 20  |$CLibLoaded.|.| |
000002a0  45 6e 73 75 72 65 20 77  65 20 68 61 76 65 20 43  |Ensure we have C|
000002b0  6f 6c 6f 75 72 54 72 61  6e 73 0a 7c 0a 52 4d 45  |olourTrans.|.RME|
000002c0  6e 73 75 72 65 20 43 6f  6c 6f 75 72 54 72 61 6e  |nsure ColourTran|
000002d0  73 20 30 2e 35 32 20 52  4d 4c 6f 61 64 20 53 79  |s 0.52 RMLoad Sy|
000002e0  73 74 65 6d 3a 4d 6f 64  75 6c 65 73 2e 43 6f 6c  |stem:Modules.Col|
000002f0  6f 75 72 73 0a 52 4d 45  6e 73 75 72 65 20 43 6f  |ours.RMEnsure Co|
00000300  6c 6f 75 72 54 72 61 6e  73 20 30 2e 35 32 20 45  |lourTrans 0.52 E|
00000310  72 72 6f 72 20 59 6f 75  20 6e 65 65 64 20 43 6f  |rror You need Co|
00000320  6c 6f 75 72 54 72 61 6e  73 20 30 2e 35 32 20 6f  |lourTrans 0.52 o|
00000330  72 20 6c 61 74 65 72 0a  7c 0a 7c 20 45 6e 73 75  |r later.|.| Ensu|
00000340  72 65 20 77 65 20 68 61  76 65 20 46 50 45 6d 75  |re we have FPEmu|
00000350  6c 61 74 6f 72 0a 7c 0a  52 4d 45 6e 73 75 72 65  |lator.|.RMEnsure|
00000360  20 46 50 45 6d 75 6c 61  74 6f 72 20 32 2e 37 30  | FPEmulator 2.70|
00000370  20 52 4d 4c 6f 61 64 20  53 79 73 74 65 6d 3a 4d  | RMLoad System:M|
00000380  6f 64 75 6c 65 73 2e 46  50 45 6d 75 6c 61 74 6f  |odules.FPEmulato|
00000390  72 0a 52 4d 45 6e 73 75  72 65 20 46 50 45 6d 75  |r.RMEnsure FPEmu|
000003a0  6c 61 74 6f 72 20 32 2e  37 30 20 45 72 72 6f 72  |lator 2.70 Error|
000003b0  20 59 6f 75 20 6e 65 65  64 20 46 50 45 6d 75 6c  | You need FPEmul|
000003c0  61 74 6f 72 20 32 2e 37  30 20 6f 72 20 6c 61 74  |ator 2.70 or lat|
000003d0  65 72 0a 7c 0a 55 6e 73  65 74 20 50 69 70 65 44  |er.|.Unset PipeD|
000003e0  72 65 61 6d 5f 50 72 65  6c 6f 61 64 24 44 69 72  |ream_Preload$Dir|
000003f0  0a 7c 0a 52 75 6e 20 61  64 66 73 3a 3a 50 69 70  |.|.Run adfs::Pip|
00000400  65 44 72 65 61 6d 34 2e  24 2e 21 50 69 70 65 44  |eDream4.$.!PipeD|
00000410  72 65 61 6d 2e 21 52 75  6e 0a                    |ream.!Run.|
0000041a