Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_2_scp.adf » !ARMEdit_ARMEdit » !ARMEdit/!Run

!ARMEdit/!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 » archimedes_world_volume_15_issue_2_scp.adf » !ARMEdit_ARMEdit
Filename: !ARMEdit/!Run
Read OK:
File size: 048D bytes
Load address: 0000
Exec address: 0000
File contents
|   File        : !Run
|   Date        : 07-Dec-97
|   Author      : � A.Thoukydides, 1996, 1997
|   Description : The first part of the script used to start the ARMEdit
|                 application. This checks that the computer is running a
|                 sufficiently recent version of RISC OS, displays a pretty
|                 banner, and starts the second part of the script.

| Set a system variable to the application directory
Set ARMEdit$Dir <Obey$Dir>

| Load the application sprites
IconSprites <ARMEdit$Dir>.!Sprites

| Check that it is a sufficiently recent version of the operating system
RMEnsure UtilityModule 3.10 Error 0 This application is only suitable for use with RISC OS 3.10 or later versions.

| Check that there is likely to be sufficient memory for both programs
WimpSlot -min 164K -max 164K

| Start the next part of the program loading once the banner has initialised
Filer_Run <ARMEdit$Dir>.!Run2

| Ensure that there is sufficient memory for the banner program
WimpSlot -min 52K -max 52K

| Run the banner program, leaving window open for 5 seconds
Run <ARMEdit$Dir>.Resources.Banner 500 -sprites <ARMEdit$Dir>.Resources.Title
00000000  7c 20 20 20 46 69 6c 65  20 20 20 20 20 20 20 20  ||   File        |
00000010  3a 20 21 52 75 6e 0a 7c  20 20 20 44 61 74 65 20  |: !Run.|   Date |
00000020  20 20 20 20 20 20 20 3a  20 30 37 2d 44 65 63 2d  |       : 07-Dec-|
00000030  39 37 0a 7c 20 20 20 41  75 74 68 6f 72 20 20 20  |97.|   Author   |
00000040  20 20 20 3a 20 a9 20 41  2e 54 68 6f 75 6b 79 64  |   : . A.Thoukyd|
00000050  69 64 65 73 2c 20 31 39  39 36 2c 20 31 39 39 37  |ides, 1996, 1997|
00000060  0a 7c 20 20 20 44 65 73  63 72 69 70 74 69 6f 6e  |.|   Description|
00000070  20 3a 20 54 68 65 20 66  69 72 73 74 20 70 61 72  | : The first par|
00000080  74 20 6f 66 20 74 68 65  20 73 63 72 69 70 74 20  |t of the script |
00000090  75 73 65 64 20 74 6f 20  73 74 61 72 74 20 74 68  |used to start th|
000000a0  65 20 41 52 4d 45 64 69  74 0a 7c 20 20 20 20 20  |e ARMEdit.|     |
000000b0  20 20 20 20 20 20 20 20  20 20 20 20 61 70 70 6c  |            appl|
000000c0  69 63 61 74 69 6f 6e 2e  20 54 68 69 73 20 63 68  |ication. This ch|
000000d0  65 63 6b 73 20 74 68 61  74 20 74 68 65 20 63 6f  |ecks that the co|
000000e0  6d 70 75 74 65 72 20 69  73 20 72 75 6e 6e 69 6e  |mputer is runnin|
000000f0  67 20 61 0a 7c 20 20 20  20 20 20 20 20 20 20 20  |g a.|           |
00000100  20 20 20 20 20 20 73 75  66 66 69 63 69 65 6e 74  |      sufficient|
00000110  6c 79 20 72 65 63 65 6e  74 20 76 65 72 73 69 6f  |ly recent versio|
00000120  6e 20 6f 66 20 52 49 53  43 20 4f 53 2c 20 64 69  |n of RISC OS, di|
00000130  73 70 6c 61 79 73 20 61  20 70 72 65 74 74 79 0a  |splays a pretty.|
00000140  7c 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  ||               |
00000150  20 20 62 61 6e 6e 65 72  2c 20 61 6e 64 20 73 74  |  banner, and st|
00000160  61 72 74 73 20 74 68 65  20 73 65 63 6f 6e 64 20  |arts the second |
00000170  70 61 72 74 20 6f 66 20  74 68 65 20 73 63 72 69  |part of the scri|
00000180  70 74 2e 0a 0a 7c 20 53  65 74 20 61 20 73 79 73  |pt...| Set a sys|
00000190  74 65 6d 20 76 61 72 69  61 62 6c 65 20 74 6f 20  |tem variable to |
000001a0  74 68 65 20 61 70 70 6c  69 63 61 74 69 6f 6e 20  |the application |
000001b0  64 69 72 65 63 74 6f 72  79 0a 53 65 74 20 41 52  |directory.Set AR|
000001c0  4d 45 64 69 74 24 44 69  72 20 3c 4f 62 65 79 24  |MEdit$Dir <Obey$|
000001d0  44 69 72 3e 0a 0a 7c 20  4c 6f 61 64 20 74 68 65  |Dir>..| Load the|
000001e0  20 61 70 70 6c 69 63 61  74 69 6f 6e 20 73 70 72  | application spr|
000001f0  69 74 65 73 0a 49 63 6f  6e 53 70 72 69 74 65 73  |ites.IconSprites|
00000200  20 3c 41 52 4d 45 64 69  74 24 44 69 72 3e 2e 21  | <ARMEdit$Dir>.!|
00000210  53 70 72 69 74 65 73 0a  0a 7c 20 43 68 65 63 6b  |Sprites..| Check|
00000220  20 74 68 61 74 20 69 74  20 69 73 20 61 20 73 75  | that it is a su|
00000230  66 66 69 63 69 65 6e 74  6c 79 20 72 65 63 65 6e  |fficiently recen|
00000240  74 20 76 65 72 73 69 6f  6e 20 6f 66 20 74 68 65  |t version of the|
00000250  20 6f 70 65 72 61 74 69  6e 67 20 73 79 73 74 65  | operating syste|
00000260  6d 0a 52 4d 45 6e 73 75  72 65 20 55 74 69 6c 69  |m.RMEnsure Utili|
00000270  74 79 4d 6f 64 75 6c 65  20 33 2e 31 30 20 45 72  |tyModule 3.10 Er|
00000280  72 6f 72 20 30 20 54 68  69 73 20 61 70 70 6c 69  |ror 0 This appli|
00000290  63 61 74 69 6f 6e 20 69  73 20 6f 6e 6c 79 20 73  |cation is only s|
000002a0  75 69 74 61 62 6c 65 20  66 6f 72 20 75 73 65 20  |uitable for use |
000002b0  77 69 74 68 20 52 49 53  43 20 4f 53 20 33 2e 31  |with RISC OS 3.1|
000002c0  30 20 6f 72 20 6c 61 74  65 72 20 76 65 72 73 69  |0 or later versi|
000002d0  6f 6e 73 2e 0a 0a 7c 20  43 68 65 63 6b 20 74 68  |ons...| Check th|
000002e0  61 74 20 74 68 65 72 65  20 69 73 20 6c 69 6b 65  |at there is like|
000002f0  6c 79 20 74 6f 20 62 65  20 73 75 66 66 69 63 69  |ly to be suffici|
00000300  65 6e 74 20 6d 65 6d 6f  72 79 20 66 6f 72 20 62  |ent memory for b|
00000310  6f 74 68 20 70 72 6f 67  72 61 6d 73 0a 57 69 6d  |oth programs.Wim|
00000320  70 53 6c 6f 74 20 2d 6d  69 6e 20 31 36 34 4b 20  |pSlot -min 164K |
00000330  2d 6d 61 78 20 31 36 34  4b 0a 0a 7c 20 53 74 61  |-max 164K..| Sta|
00000340  72 74 20 74 68 65 20 6e  65 78 74 20 70 61 72 74  |rt the next part|
00000350  20 6f 66 20 74 68 65 20  70 72 6f 67 72 61 6d 20  | of the program |
00000360  6c 6f 61 64 69 6e 67 20  6f 6e 63 65 20 74 68 65  |loading once the|
00000370  20 62 61 6e 6e 65 72 20  68 61 73 20 69 6e 69 74  | banner has init|
00000380  69 61 6c 69 73 65 64 0a  46 69 6c 65 72 5f 52 75  |ialised.Filer_Ru|
00000390  6e 20 3c 41 52 4d 45 64  69 74 24 44 69 72 3e 2e  |n <ARMEdit$Dir>.|
000003a0  21 52 75 6e 32 0a 0a 7c  20 45 6e 73 75 72 65 20  |!Run2..| Ensure |
000003b0  74 68 61 74 20 74 68 65  72 65 20 69 73 20 73 75  |that there is su|
000003c0  66 66 69 63 69 65 6e 74  20 6d 65 6d 6f 72 79 20  |fficient memory |
000003d0  66 6f 72 20 74 68 65 20  62 61 6e 6e 65 72 20 70  |for the banner p|
000003e0  72 6f 67 72 61 6d 0a 57  69 6d 70 53 6c 6f 74 20  |rogram.WimpSlot |
000003f0  2d 6d 69 6e 20 35 32 4b  20 2d 6d 61 78 20 35 32  |-min 52K -max 52|
00000400  4b 0a 0a 7c 20 52 75 6e  20 74 68 65 20 62 61 6e  |K..| Run the ban|
00000410  6e 65 72 20 70 72 6f 67  72 61 6d 2c 20 6c 65 61  |ner program, lea|
00000420  76 69 6e 67 20 77 69 6e  64 6f 77 20 6f 70 65 6e  |ving window open|
00000430  20 66 6f 72 20 35 20 73  65 63 6f 6e 64 73 0a 52  | for 5 seconds.R|
00000440  75 6e 20 3c 41 52 4d 45  64 69 74 24 44 69 72 3e  |un <ARMEdit$Dir>|
00000450  2e 52 65 73 6f 75 72 63  65 73 2e 42 61 6e 6e 65  |.Resources.Banne|
00000460  72 20 35 30 30 20 2d 73  70 72 69 74 65 73 20 3c  |r 500 -sprites <|
00000470  41 52 4d 45 64 69 74 24  44 69 72 3e 2e 52 65 73  |ARMEdit$Dir>.Res|
00000480  6f 75 72 63 65 73 2e 54  69 74 6c 65 0a           |ources.Title.|
0000048d