Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/!AppBuild/NewApp/!Run

!AWJan95/Goodies/Event/!AppBuild/NewApp/!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 » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95
Filename: !AWJan95/Goodies/Event/!AppBuild/NewApp/!Run
Read OK:
File size: 03E7 bytes
Load address: 0000
Exec address: 0000
File contents
| !Run Obey file for @@@@@@@@@ Application
Set @@@@@@@@@$Dir <Obey$Dir>
Set @@@@@@@@@$BasicFile <Obey$Dir>.!@@@@@@@@@
IF "<EvntShell$Path>"="" THEN ERROR 0 Shell resources not found
|Change the next line if you are using a different
|filetype number
|Set Alias$@RunType_200 Run <Obey$Dir>.!Run %%*0
IconSprites <Obey$Dir>.!Sprites
Run <Obey$Dir>.ChkSpr
|Set Dummy$Path <Run$Path>,<Obey$Dir>.Resources.
|Run Dummy:ResFind @@@@@@@@@
|Unset Dummy$Path
WimpSlot -min xxxK -max xxxK
|Load any modules required now
RMEnsure InterfaceManager 2.00 RMLoad <EvntShell$Path>Interface
RMEnsure InterfaceManager 2.00 Error Couldn't load Interface module
RMEnsure MenuUtils 0.11 RMLoad <EvntShell$Path>MenuUtils
RMEnsure MenuUtils 0.11 Error 0 Error Couldn't load MenuUtils Module
RMEnsure MessageTrans 0.06 RMLoad <EvntShell$Path>MsgTrans
RMEnsure MessageTrans 0.06 Error Couldn't load MsgTrans Module
|And check that there is still enough memory!
WimpSlot -min xxxK -max xxxK
Run <@@@@@@@@@$Dir>.!@@@@@@@@@ %*0
00000000  7c 20 21 52 75 6e 20 4f  62 65 79 20 66 69 6c 65  || !Run Obey file|
00000010  20 66 6f 72 20 40 40 40  40 40 40 40 40 40 20 41  | for @@@@@@@@@ A|
00000020  70 70 6c 69 63 61 74 69  6f 6e 0a 53 65 74 20 40  |pplication.Set @|
00000030  40 40 40 40 40 40 40 40  24 44 69 72 20 3c 4f 62  |@@@@@@@@$Dir <Ob|
00000040  65 79 24 44 69 72 3e 0a  53 65 74 20 40 40 40 40  |ey$Dir>.Set @@@@|
00000050  40 40 40 40 40 24 42 61  73 69 63 46 69 6c 65 20  |@@@@@$BasicFile |
00000060  3c 4f 62 65 79 24 44 69  72 3e 2e 21 40 40 40 40  |<Obey$Dir>.!@@@@|
00000070  40 40 40 40 40 0a 49 46  20 22 3c 45 76 6e 74 53  |@@@@@.IF "<EvntS|
00000080  68 65 6c 6c 24 50 61 74  68 3e 22 3d 22 22 20 54  |hell$Path>"="" T|
00000090  48 45 4e 20 45 52 52 4f  52 20 30 20 53 68 65 6c  |HEN ERROR 0 Shel|
000000a0  6c 20 72 65 73 6f 75 72  63 65 73 20 6e 6f 74 20  |l resources not |
000000b0  66 6f 75 6e 64 0a 7c 43  68 61 6e 67 65 20 74 68  |found.|Change th|
000000c0  65 20 6e 65 78 74 20 6c  69 6e 65 20 69 66 20 79  |e next line if y|
000000d0  6f 75 20 61 72 65 20 75  73 69 6e 67 20 61 20 64  |ou are using a d|
000000e0  69 66 66 65 72 65 6e 74  0a 7c 66 69 6c 65 74 79  |ifferent.|filety|
000000f0  70 65 20 6e 75 6d 62 65  72 0a 7c 53 65 74 20 41  |pe number.|Set A|
00000100  6c 69 61 73 24 40 52 75  6e 54 79 70 65 5f 32 30  |lias$@RunType_20|
00000110  30 20 52 75 6e 20 3c 4f  62 65 79 24 44 69 72 3e  |0 Run <Obey$Dir>|
00000120  2e 21 52 75 6e 20 25 25  2a 30 0a 49 63 6f 6e 53  |.!Run %%*0.IconS|
00000130  70 72 69 74 65 73 20 3c  4f 62 65 79 24 44 69 72  |prites <Obey$Dir|
00000140  3e 2e 21 53 70 72 69 74  65 73 0a 52 75 6e 20 3c  |>.!Sprites.Run <|
00000150  4f 62 65 79 24 44 69 72  3e 2e 43 68 6b 53 70 72  |Obey$Dir>.ChkSpr|
00000160  0a 7c 53 65 74 20 44 75  6d 6d 79 24 50 61 74 68  |.|Set Dummy$Path|
00000170  20 3c 52 75 6e 24 50 61  74 68 3e 2c 3c 4f 62 65  | <Run$Path>,<Obe|
00000180  79 24 44 69 72 3e 2e 52  65 73 6f 75 72 63 65 73  |y$Dir>.Resources|
00000190  2e 0a 7c 52 75 6e 20 44  75 6d 6d 79 3a 52 65 73  |..|Run Dummy:Res|
000001a0  46 69 6e 64 20 40 40 40  40 40 40 40 40 40 0a 7c  |Find @@@@@@@@@.||
000001b0  55 6e 73 65 74 20 44 75  6d 6d 79 24 50 61 74 68  |Unset Dummy$Path|
000001c0  0a 57 69 6d 70 53 6c 6f  74 20 2d 6d 69 6e 20 78  |.WimpSlot -min x|
000001d0  78 78 4b 20 2d 6d 61 78  20 78 78 78 4b 0a 7c 4c  |xxK -max xxxK.|L|
000001e0  6f 61 64 20 61 6e 79 20  6d 6f 64 75 6c 65 73 20  |oad any modules |
000001f0  72 65 71 75 69 72 65 64  20 6e 6f 77 0a 52 4d 45  |required now.RME|
00000200  6e 73 75 72 65 20 49 6e  74 65 72 66 61 63 65 4d  |nsure InterfaceM|
00000210  61 6e 61 67 65 72 20 32  2e 30 30 20 52 4d 4c 6f  |anager 2.00 RMLo|
00000220  61 64 20 3c 45 76 6e 74  53 68 65 6c 6c 24 50 61  |ad <EvntShell$Pa|
00000230  74 68 3e 49 6e 74 65 72  66 61 63 65 0a 52 4d 45  |th>Interface.RME|
00000240  6e 73 75 72 65 20 49 6e  74 65 72 66 61 63 65 4d  |nsure InterfaceM|
00000250  61 6e 61 67 65 72 20 32  2e 30 30 20 45 72 72 6f  |anager 2.00 Erro|
00000260  72 20 43 6f 75 6c 64 6e  27 74 20 6c 6f 61 64 20  |r Couldn't load |
00000270  49 6e 74 65 72 66 61 63  65 20 6d 6f 64 75 6c 65  |Interface module|
00000280  0a 52 4d 45 6e 73 75 72  65 20 4d 65 6e 75 55 74  |.RMEnsure MenuUt|
00000290  69 6c 73 20 30 2e 31 31  20 52 4d 4c 6f 61 64 20  |ils 0.11 RMLoad |
000002a0  3c 45 76 6e 74 53 68 65  6c 6c 24 50 61 74 68 3e  |<EvntShell$Path>|
000002b0  4d 65 6e 75 55 74 69 6c  73 0a 52 4d 45 6e 73 75  |MenuUtils.RMEnsu|
000002c0  72 65 20 4d 65 6e 75 55  74 69 6c 73 20 30 2e 31  |re MenuUtils 0.1|
000002d0  31 20 45 72 72 6f 72 20  30 20 45 72 72 6f 72 20  |1 Error 0 Error |
000002e0  43 6f 75 6c 64 6e 27 74  20 6c 6f 61 64 20 4d 65  |Couldn't load Me|
000002f0  6e 75 55 74 69 6c 73 20  4d 6f 64 75 6c 65 0a 52  |nuUtils Module.R|
00000300  4d 45 6e 73 75 72 65 20  4d 65 73 73 61 67 65 54  |MEnsure MessageT|
00000310  72 61 6e 73 20 30 2e 30  36 20 52 4d 4c 6f 61 64  |rans 0.06 RMLoad|
00000320  20 3c 45 76 6e 74 53 68  65 6c 6c 24 50 61 74 68  | <EvntShell$Path|
00000330  3e 4d 73 67 54 72 61 6e  73 0a 52 4d 45 6e 73 75  |>MsgTrans.RMEnsu|
00000340  72 65 20 4d 65 73 73 61  67 65 54 72 61 6e 73 20  |re MessageTrans |
00000350  30 2e 30 36 20 45 72 72  6f 72 20 43 6f 75 6c 64  |0.06 Error Could|
00000360  6e 27 74 20 6c 6f 61 64  20 4d 73 67 54 72 61 6e  |n't load MsgTran|
00000370  73 20 4d 6f 64 75 6c 65  0a 7c 41 6e 64 20 63 68  |s Module.|And ch|
00000380  65 63 6b 20 74 68 61 74  20 74 68 65 72 65 20 69  |eck that there i|
00000390  73 20 73 74 69 6c 6c 20  65 6e 6f 75 67 68 20 6d  |s still enough m|
000003a0  65 6d 6f 72 79 21 0a 57  69 6d 70 53 6c 6f 74 20  |emory!.WimpSlot |
000003b0  2d 6d 69 6e 20 78 78 78  4b 20 2d 6d 61 78 20 78  |-min xxxK -max x|
000003c0  78 78 4b 0a 52 75 6e 20  3c 40 40 40 40 40 40 40  |xxK.Run <@@@@@@@|
000003d0  40 40 24 44 69 72 3e 2e  21 40 40 40 40 40 40 40  |@@$Dir>.!@@@@@@@|
000003e0  40 40 20 25 2a 30 0a                              |@@ %*0.|
000003e7