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

!ARMEdit/!Run2

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/!Run2
Read OK:
File size: 079D bytes
Load address: 0000
Exec address: 0000
File contents
|   File        : !Run2
|   Date        : 07-Dec-97
|   Author      : � A.Thoukydides, 1996, 1997
|   Description : The second part of the script used to start the ARMEdit
|                 application. This ensures that all required modules are
|                 loaded, and then starts the actual application.

| Check that there is sufficient memory to run
WimpSlot -min 112K -max 112K

| Check that a !Scrap folder exists
If "<Wimp$Scrap>"="" Then Error 0 Scrap folder could not be found. Please double-click on a copy of !Scrap and try again.

| Special care needs to be taken over the C library
Set ARMEdit$CLibLoaded 1
RMEnsure SharedCLibrary 0.00 Set ARMEdit$CLibLoaded 0
If ARMEdit$CLibLoaded=1 Then RMEnsure SharedCLibrary 3.75 Error 0 You are already running a version of CLib which is too old. This application needs SharedCLibrary 3.75 or later.
UnSet ARMEdit$CLibLoaded

| Ensure that the correct versions of modules are loaded
Run <ARMEdit$Dir>.Resources.Ensure SharedCLibrary 3.75 CLib
Run <ARMEdit$Dir>.Resources.Ensure FPEmulator     4.00 FPEmulator
Run <ARMEdit$Dir>.Resources.Ensure MessageTrans   0.28 MsgTrans
Run <ARMEdit$Dir>.Resources.Ensure ColourTrans    0.52 Colours
Run <ARMEdit$Dir>.Resources.Ensure DCS            1.06 Toolbox.DCS_Quit
Run <ARMEdit$Dir>.Resources.Ensure Iconbar        1.11 Toolbox.IconBar
Run <ARMEdit$Dir>.Resources.Ensure Menu           0.22 Toolbox.Menu
Run <ARMEdit$Dir>.Resources.Ensure ProgInfo       0.09 Toolbox.ProgInfo
Run <ARMEdit$Dir>.Resources.Ensure SaveAs         0.10 Toolbox.SaveAs
Run <ARMEdit$Dir>.Resources.Ensure Toolbox        1.33 Toolbox.Toolbox
Run <ARMEdit$Dir>.Resources.Ensure Window         1.29 Toolbox.Window

| Load the latest version of the ARMEdit module
RMEnsure ARMEdit 1.04 Run <ARMEdit$Dir>.Resources.ARMEdit

| Check again that there is sufficient memory to run
WimpSlot -min 112K -max 112K

| Finally start the application
Run <ARMEdit$Dir>.Resources.!RunImage
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 32 0a  7c 20 20 20 44 61 74 65  |: !Run2.|   Date|
00000020  20 20 20 20 20 20 20 20  3a 20 30 37 2d 44 65 63  |        : 07-Dec|
00000030  2d 39 37 0a 7c 20 20 20  41 75 74 68 6f 72 20 20  |-97.|   Author  |
00000040  20 20 20 20 3a 20 a9 20  41 2e 54 68 6f 75 6b 79  |    : . A.Thouky|
00000050  64 69 64 65 73 2c 20 31  39 39 36 2c 20 31 39 39  |dides, 1996, 199|
00000060  37 0a 7c 20 20 20 44 65  73 63 72 69 70 74 69 6f  |7.|   Descriptio|
00000070  6e 20 3a 20 54 68 65 20  73 65 63 6f 6e 64 20 70  |n : The second p|
00000080  61 72 74 20 6f 66 20 74  68 65 20 73 63 72 69 70  |art of the scrip|
00000090  74 20 75 73 65 64 20 74  6f 20 73 74 61 72 74 20  |t used to start |
000000a0  74 68 65 20 41 52 4d 45  64 69 74 0a 7c 20 20 20  |the ARMEdit.|   |
000000b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 61 70  |              ap|
000000c0  70 6c 69 63 61 74 69 6f  6e 2e 20 54 68 69 73 20  |plication. This |
000000d0  65 6e 73 75 72 65 73 20  74 68 61 74 20 61 6c 6c  |ensures that all|
000000e0  20 72 65 71 75 69 72 65  64 20 6d 6f 64 75 6c 65  | required module|
000000f0  73 20 61 72 65 0a 7c 20  20 20 20 20 20 20 20 20  |s are.|         |
00000100  20 20 20 20 20 20 20 20  6c 6f 61 64 65 64 2c 20  |        loaded, |
00000110  61 6e 64 20 74 68 65 6e  20 73 74 61 72 74 73 20  |and then starts |
00000120  74 68 65 20 61 63 74 75  61 6c 20 61 70 70 6c 69  |the actual appli|
00000130  63 61 74 69 6f 6e 2e 0a  0a 7c 20 43 68 65 63 6b  |cation...| Check|
00000140  20 74 68 61 74 20 74 68  65 72 65 20 69 73 20 73  | that there is s|
00000150  75 66 66 69 63 69 65 6e  74 20 6d 65 6d 6f 72 79  |ufficient memory|
00000160  20 74 6f 20 72 75 6e 0a  57 69 6d 70 53 6c 6f 74  | to run.WimpSlot|
00000170  20 2d 6d 69 6e 20 31 31  32 4b 20 2d 6d 61 78 20  | -min 112K -max |
00000180  31 31 32 4b 0a 0a 7c 20  43 68 65 63 6b 20 74 68  |112K..| Check th|
00000190  61 74 20 61 20 21 53 63  72 61 70 20 66 6f 6c 64  |at a !Scrap fold|
000001a0  65 72 20 65 78 69 73 74  73 0a 49 66 20 22 3c 57  |er exists.If "<W|
000001b0  69 6d 70 24 53 63 72 61  70 3e 22 3d 22 22 20 54  |imp$Scrap>"="" T|
000001c0  68 65 6e 20 45 72 72 6f  72 20 30 20 53 63 72 61  |hen Error 0 Scra|
000001d0  70 20 66 6f 6c 64 65 72  20 63 6f 75 6c 64 20 6e  |p folder could n|
000001e0  6f 74 20 62 65 20 66 6f  75 6e 64 2e 20 50 6c 65  |ot be found. Ple|
000001f0  61 73 65 20 64 6f 75 62  6c 65 2d 63 6c 69 63 6b  |ase double-click|
00000200  20 6f 6e 20 61 20 63 6f  70 79 20 6f 66 20 21 53  | on a copy of !S|
00000210  63 72 61 70 20 61 6e 64  20 74 72 79 20 61 67 61  |crap and try aga|
00000220  69 6e 2e 0a 0a 7c 20 53  70 65 63 69 61 6c 20 63  |in...| Special c|
00000230  61 72 65 20 6e 65 65 64  73 20 74 6f 20 62 65 20  |are needs to be |
00000240  74 61 6b 65 6e 20 6f 76  65 72 20 74 68 65 20 43  |taken over the C|
00000250  20 6c 69 62 72 61 72 79  0a 53 65 74 20 41 52 4d  | library.Set ARM|
00000260  45 64 69 74 24 43 4c 69  62 4c 6f 61 64 65 64 20  |Edit$CLibLoaded |
00000270  31 0a 52 4d 45 6e 73 75  72 65 20 53 68 61 72 65  |1.RMEnsure Share|
00000280  64 43 4c 69 62 72 61 72  79 20 30 2e 30 30 20 53  |dCLibrary 0.00 S|
00000290  65 74 20 41 52 4d 45 64  69 74 24 43 4c 69 62 4c  |et ARMEdit$CLibL|
000002a0  6f 61 64 65 64 20 30 0a  49 66 20 41 52 4d 45 64  |oaded 0.If ARMEd|
000002b0  69 74 24 43 4c 69 62 4c  6f 61 64 65 64 3d 31 20  |it$CLibLoaded=1 |
000002c0  54 68 65 6e 20 52 4d 45  6e 73 75 72 65 20 53 68  |Then RMEnsure Sh|
000002d0  61 72 65 64 43 4c 69 62  72 61 72 79 20 33 2e 37  |aredCLibrary 3.7|
000002e0  35 20 45 72 72 6f 72 20  30 20 59 6f 75 20 61 72  |5 Error 0 You ar|
000002f0  65 20 61 6c 72 65 61 64  79 20 72 75 6e 6e 69 6e  |e already runnin|
00000300  67 20 61 20 76 65 72 73  69 6f 6e 20 6f 66 20 43  |g a version of C|
00000310  4c 69 62 20 77 68 69 63  68 20 69 73 20 74 6f 6f  |Lib which is too|
00000320  20 6f 6c 64 2e 20 54 68  69 73 20 61 70 70 6c 69  | old. This appli|
00000330  63 61 74 69 6f 6e 20 6e  65 65 64 73 20 53 68 61  |cation needs Sha|
00000340  72 65 64 43 4c 69 62 72  61 72 79 20 33 2e 37 35  |redCLibrary 3.75|
00000350  20 6f 72 20 6c 61 74 65  72 2e 0a 55 6e 53 65 74  | or later..UnSet|
00000360  20 41 52 4d 45 64 69 74  24 43 4c 69 62 4c 6f 61  | ARMEdit$CLibLoa|
00000370  64 65 64 0a 0a 7c 20 45  6e 73 75 72 65 20 74 68  |ded..| Ensure th|
00000380  61 74 20 74 68 65 20 63  6f 72 72 65 63 74 20 76  |at the correct v|
00000390  65 72 73 69 6f 6e 73 20  6f 66 20 6d 6f 64 75 6c  |ersions of modul|
000003a0  65 73 20 61 72 65 20 6c  6f 61 64 65 64 0a 52 75  |es are loaded.Ru|
000003b0  6e 20 3c 41 52 4d 45 64  69 74 24 44 69 72 3e 2e  |n <ARMEdit$Dir>.|
000003c0  52 65 73 6f 75 72 63 65  73 2e 45 6e 73 75 72 65  |Resources.Ensure|
000003d0  20 53 68 61 72 65 64 43  4c 69 62 72 61 72 79 20  | SharedCLibrary |
000003e0  33 2e 37 35 20 43 4c 69  62 0a 52 75 6e 20 3c 41  |3.75 CLib.Run <A|
000003f0  52 4d 45 64 69 74 24 44  69 72 3e 2e 52 65 73 6f  |RMEdit$Dir>.Reso|
00000400  75 72 63 65 73 2e 45 6e  73 75 72 65 20 46 50 45  |urces.Ensure FPE|
00000410  6d 75 6c 61 74 6f 72 20  20 20 20 20 34 2e 30 30  |mulator     4.00|
00000420  20 46 50 45 6d 75 6c 61  74 6f 72 0a 52 75 6e 20  | FPEmulator.Run |
00000430  3c 41 52 4d 45 64 69 74  24 44 69 72 3e 2e 52 65  |<ARMEdit$Dir>.Re|
00000440  73 6f 75 72 63 65 73 2e  45 6e 73 75 72 65 20 4d  |sources.Ensure M|
00000450  65 73 73 61 67 65 54 72  61 6e 73 20 20 20 30 2e  |essageTrans   0.|
00000460  32 38 20 4d 73 67 54 72  61 6e 73 0a 52 75 6e 20  |28 MsgTrans.Run |
00000470  3c 41 52 4d 45 64 69 74  24 44 69 72 3e 2e 52 65  |<ARMEdit$Dir>.Re|
00000480  73 6f 75 72 63 65 73 2e  45 6e 73 75 72 65 20 43  |sources.Ensure C|
00000490  6f 6c 6f 75 72 54 72 61  6e 73 20 20 20 20 30 2e  |olourTrans    0.|
000004a0  35 32 20 43 6f 6c 6f 75  72 73 0a 52 75 6e 20 3c  |52 Colours.Run <|
000004b0  41 52 4d 45 64 69 74 24  44 69 72 3e 2e 52 65 73  |ARMEdit$Dir>.Res|
000004c0  6f 75 72 63 65 73 2e 45  6e 73 75 72 65 20 44 43  |ources.Ensure DC|
000004d0  53 20 20 20 20 20 20 20  20 20 20 20 20 31 2e 30  |S            1.0|
000004e0  36 20 54 6f 6f 6c 62 6f  78 2e 44 43 53 5f 51 75  |6 Toolbox.DCS_Qu|
000004f0  69 74 0a 52 75 6e 20 3c  41 52 4d 45 64 69 74 24  |it.Run <ARMEdit$|
00000500  44 69 72 3e 2e 52 65 73  6f 75 72 63 65 73 2e 45  |Dir>.Resources.E|
00000510  6e 73 75 72 65 20 49 63  6f 6e 62 61 72 20 20 20  |nsure Iconbar   |
00000520  20 20 20 20 20 31 2e 31  31 20 54 6f 6f 6c 62 6f  |     1.11 Toolbo|
00000530  78 2e 49 63 6f 6e 42 61  72 0a 52 75 6e 20 3c 41  |x.IconBar.Run <A|
00000540  52 4d 45 64 69 74 24 44  69 72 3e 2e 52 65 73 6f  |RMEdit$Dir>.Reso|
00000550  75 72 63 65 73 2e 45 6e  73 75 72 65 20 4d 65 6e  |urces.Ensure Men|
00000560  75 20 20 20 20 20 20 20  20 20 20 20 30 2e 32 32  |u           0.22|
00000570  20 54 6f 6f 6c 62 6f 78  2e 4d 65 6e 75 0a 52 75  | Toolbox.Menu.Ru|
00000580  6e 20 3c 41 52 4d 45 64  69 74 24 44 69 72 3e 2e  |n <ARMEdit$Dir>.|
00000590  52 65 73 6f 75 72 63 65  73 2e 45 6e 73 75 72 65  |Resources.Ensure|
000005a0  20 50 72 6f 67 49 6e 66  6f 20 20 20 20 20 20 20  | ProgInfo       |
000005b0  30 2e 30 39 20 54 6f 6f  6c 62 6f 78 2e 50 72 6f  |0.09 Toolbox.Pro|
000005c0  67 49 6e 66 6f 0a 52 75  6e 20 3c 41 52 4d 45 64  |gInfo.Run <ARMEd|
000005d0  69 74 24 44 69 72 3e 2e  52 65 73 6f 75 72 63 65  |it$Dir>.Resource|
000005e0  73 2e 45 6e 73 75 72 65  20 53 61 76 65 41 73 20  |s.Ensure SaveAs |
000005f0  20 20 20 20 20 20 20 20  30 2e 31 30 20 54 6f 6f  |        0.10 Too|
00000600  6c 62 6f 78 2e 53 61 76  65 41 73 0a 52 75 6e 20  |lbox.SaveAs.Run |
00000610  3c 41 52 4d 45 64 69 74  24 44 69 72 3e 2e 52 65  |<ARMEdit$Dir>.Re|
00000620  73 6f 75 72 63 65 73 2e  45 6e 73 75 72 65 20 54  |sources.Ensure T|
00000630  6f 6f 6c 62 6f 78 20 20  20 20 20 20 20 20 31 2e  |oolbox        1.|
00000640  33 33 20 54 6f 6f 6c 62  6f 78 2e 54 6f 6f 6c 62  |33 Toolbox.Toolb|
00000650  6f 78 0a 52 75 6e 20 3c  41 52 4d 45 64 69 74 24  |ox.Run <ARMEdit$|
00000660  44 69 72 3e 2e 52 65 73  6f 75 72 63 65 73 2e 45  |Dir>.Resources.E|
00000670  6e 73 75 72 65 20 57 69  6e 64 6f 77 20 20 20 20  |nsure Window    |
00000680  20 20 20 20 20 31 2e 32  39 20 54 6f 6f 6c 62 6f  |     1.29 Toolbo|
00000690  78 2e 57 69 6e 64 6f 77  0a 0a 7c 20 4c 6f 61 64  |x.Window..| Load|
000006a0  20 74 68 65 20 6c 61 74  65 73 74 20 76 65 72 73  | the latest vers|
000006b0  69 6f 6e 20 6f 66 20 74  68 65 20 41 52 4d 45 64  |ion of the ARMEd|
000006c0  69 74 20 6d 6f 64 75 6c  65 0a 52 4d 45 6e 73 75  |it module.RMEnsu|
000006d0  72 65 20 41 52 4d 45 64  69 74 20 31 2e 30 34 20  |re ARMEdit 1.04 |
000006e0  52 75 6e 20 3c 41 52 4d  45 64 69 74 24 44 69 72  |Run <ARMEdit$Dir|
000006f0  3e 2e 52 65 73 6f 75 72  63 65 73 2e 41 52 4d 45  |>.Resources.ARME|
00000700  64 69 74 0a 0a 7c 20 43  68 65 63 6b 20 61 67 61  |dit..| Check aga|
00000710  69 6e 20 74 68 61 74 20  74 68 65 72 65 20 69 73  |in that there is|
00000720  20 73 75 66 66 69 63 69  65 6e 74 20 6d 65 6d 6f  | sufficient memo|
00000730  72 79 20 74 6f 20 72 75  6e 0a 57 69 6d 70 53 6c  |ry to run.WimpSl|
00000740  6f 74 20 2d 6d 69 6e 20  31 31 32 4b 20 2d 6d 61  |ot -min 112K -ma|
00000750  78 20 31 31 32 4b 0a 0a  7c 20 46 69 6e 61 6c 6c  |x 112K..| Finall|
00000760  79 20 73 74 61 72 74 20  74 68 65 20 61 70 70 6c  |y start the appl|
00000770  69 63 61 74 69 6f 6e 0a  52 75 6e 20 3c 41 52 4d  |ication.Run <ARM|
00000780  45 64 69 74 24 44 69 72  3e 2e 52 65 73 6f 75 72  |Edit$Dir>.Resour|
00000790  63 65 73 2e 21 52 75 6e  49 6d 61 67 65           |ces.!RunImage|
0000079d