Home » Personal collection » Acorn hard disk » apps » Spark » !SparkPlug/!Run

!SparkPlug/!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 » Spark
Filename: !SparkPlug/!Run
Read OK:
File size: 02E8 bytes
Load address: 0000
Exec address: 0000
File contents
|>$.Spark.!Spark.!Run   Spark Run file
|
| Startup file for Spark
|
WimpSlot -min 160K -max 160K
|
|
IconSprites <Obey$Dir>.!Sprites
Set Alias$@RunType_DDC Run <Obey$Dir>.!Run -l %%*0
Set Alias$@RunType_5F4 Run <Obey$Dir>.!Run -r %%*0
Set File$Type_DDC Archive
Set File$Type_5F4 SparkScr
|
RMEnsure WindowManager 2.00 Error Spark needs a newer Wimp
|
if "<System$Path>" = "" then Error 0 System resources cannot be found
|
RMEnsure SharedCLibrary 0.00 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 3.75 Error You need SharedCLibrary 3.75 or later
|
Set Spark$Path  <Obey$Dir>
|
| Uncomment the next line for hard disc etc.
|
|Set Spark$Scrap <Spark$Path>
|
WimpSlot -min 224K
|WimpSlot -min 300K -max 300K
Run "<Spark$Path>.!RunImage" %*0
00000000  7c 3e 24 2e 53 70 61 72  6b 2e 21 53 70 61 72 6b  ||>$.Spark.!Spark|
00000010  2e 21 52 75 6e 20 20 20  53 70 61 72 6b 20 52 75  |.!Run   Spark Ru|
00000020  6e 20 66 69 6c 65 0a 7c  0a 7c 20 53 74 61 72 74  |n file.|.| Start|
00000030  75 70 20 66 69 6c 65 20  66 6f 72 20 53 70 61 72  |up file for Spar|
00000040  6b 0a 7c 0a 57 69 6d 70  53 6c 6f 74 20 2d 6d 69  |k.|.WimpSlot -mi|
00000050  6e 20 31 36 30 4b 20 2d  6d 61 78 20 31 36 30 4b  |n 160K -max 160K|
00000060  0a 7c 0a 7c 0a 49 63 6f  6e 53 70 72 69 74 65 73  |.|.|.IconSprites|
00000070  20 3c 4f 62 65 79 24 44  69 72 3e 2e 21 53 70 72  | <Obey$Dir>.!Spr|
00000080  69 74 65 73 0a 53 65 74  20 41 6c 69 61 73 24 40  |ites.Set Alias$@|
00000090  52 75 6e 54 79 70 65 5f  44 44 43 20 52 75 6e 20  |RunType_DDC Run |
000000a0  3c 4f 62 65 79 24 44 69  72 3e 2e 21 52 75 6e 20  |<Obey$Dir>.!Run |
000000b0  2d 6c 20 25 25 2a 30 0a  53 65 74 20 41 6c 69 61  |-l %%*0.Set Alia|
000000c0  73 24 40 52 75 6e 54 79  70 65 5f 35 46 34 20 52  |s$@RunType_5F4 R|
000000d0  75 6e 20 3c 4f 62 65 79  24 44 69 72 3e 2e 21 52  |un <Obey$Dir>.!R|
000000e0  75 6e 20 2d 72 20 25 25  2a 30 0a 53 65 74 20 46  |un -r %%*0.Set F|
000000f0  69 6c 65 24 54 79 70 65  5f 44 44 43 20 41 72 63  |ile$Type_DDC Arc|
00000100  68 69 76 65 0a 53 65 74  20 46 69 6c 65 24 54 79  |hive.Set File$Ty|
00000110  70 65 5f 35 46 34 20 53  70 61 72 6b 53 63 72 0a  |pe_5F4 SparkScr.|
00000120  7c 0a 52 4d 45 6e 73 75  72 65 20 57 69 6e 64 6f  ||.RMEnsure Windo|
00000130  77 4d 61 6e 61 67 65 72  20 32 2e 30 30 20 45 72  |wManager 2.00 Er|
00000140  72 6f 72 20 53 70 61 72  6b 20 6e 65 65 64 73 20  |ror Spark needs |
00000150  61 20 6e 65 77 65 72 20  57 69 6d 70 0a 7c 0a 69  |a newer Wimp.|.i|
00000160  66 20 22 3c 53 79 73 74  65 6d 24 50 61 74 68 3e  |f "<System$Path>|
00000170  22 20 3d 20 22 22 20 74  68 65 6e 20 45 72 72 6f  |" = "" then Erro|
00000180  72 20 30 20 53 79 73 74  65 6d 20 72 65 73 6f 75  |r 0 System resou|
00000190  72 63 65 73 20 63 61 6e  6e 6f 74 20 62 65 20 66  |rces cannot be f|
000001a0  6f 75 6e 64 0a 7c 0a 52  4d 45 6e 73 75 72 65 20  |ound.|.RMEnsure |
000001b0  53 68 61 72 65 64 43 4c  69 62 72 61 72 79 20 30  |SharedCLibrary 0|
000001c0  2e 30 30 20 52 4d 4c 6f  61 64 20 53 79 73 74 65  |.00 RMLoad Syste|
000001d0  6d 3a 4d 6f 64 75 6c 65  73 2e 43 4c 69 62 0a 52  |m:Modules.CLib.R|
000001e0  4d 45 6e 73 75 72 65 20  53 68 61 72 65 64 43 4c  |MEnsure SharedCL|
000001f0  69 62 72 61 72 79 20 33  2e 37 35 20 45 72 72 6f  |ibrary 3.75 Erro|
00000200  72 20 59 6f 75 20 6e 65  65 64 20 53 68 61 72 65  |r You need Share|
00000210  64 43 4c 69 62 72 61 72  79 20 33 2e 37 35 20 6f  |dCLibrary 3.75 o|
00000220  72 20 6c 61 74 65 72 0a  7c 0a 53 65 74 20 53 70  |r later.|.Set Sp|
00000230  61 72 6b 24 50 61 74 68  20 20 3c 4f 62 65 79 24  |ark$Path  <Obey$|
00000240  44 69 72 3e 0a 7c 0a 7c  20 55 6e 63 6f 6d 6d 65  |Dir>.|.| Uncomme|
00000250  6e 74 20 74 68 65 20 6e  65 78 74 20 6c 69 6e 65  |nt the next line|
00000260  20 66 6f 72 20 68 61 72  64 20 64 69 73 63 20 65  | for hard disc e|
00000270  74 63 2e 0a 7c 0a 7c 53  65 74 20 53 70 61 72 6b  |tc..|.|Set Spark|
00000280  24 53 63 72 61 70 20 3c  53 70 61 72 6b 24 50 61  |$Scrap <Spark$Pa|
00000290  74 68 3e 0a 7c 0a 57 69  6d 70 53 6c 6f 74 20 2d  |th>.|.WimpSlot -|
000002a0  6d 69 6e 20 32 32 34 4b  0a 7c 57 69 6d 70 53 6c  |min 224K.|WimpSl|
000002b0  6f 74 20 2d 6d 69 6e 20  33 30 30 4b 20 2d 6d 61  |ot -min 300K -ma|
000002c0  78 20 33 30 30 4b 0a 52  75 6e 20 22 3c 53 70 61  |x 300K.Run "<Spa|
000002d0  72 6b 24 50 61 74 68 3e  2e 21 52 75 6e 49 6d 61  |rk$Path>.!RunIma|
000002e0  67 65 22 20 25 2a 30 0a                           |ge" %*0.|
000002e8