Home » Archimedes archive » Archimedes World » AW-1993-04.adf » AWApril93 » !AWApril93/Goodies/TOPO/!Topo2/!Run

!AWApril93/Goodies/TOPO/!Topo2/!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-1993-04.adf » AWApril93
Filename: !AWApril93/Goodies/TOPO/!Topo2/!Run
Read OK:
File size: 04D6 bytes
Load address: 0000
Exec address: 0000
File contents
| -> <Topo$Dir>.!Run

Set Topo2$Dir <Obey$Dir>

Set File$Type_BFF Map
SetMacro Alias$@RunType_BFF Run |<Topo2$Dir>.!Run %%*0

| Set up file types
IconSprites <Topo2$Dir>.!Sprites

| Ensure we have FPEmulator

RMEnsure FPEmulator 2.80 If "<System$Path>" = "" then Error 0 System resources cannot be found
RMEnsure FPEmulator 2.80 RMLoad system:Modules.FPEmulator
RMEnsure FPEmulator 2.80 Error You need FPEmulator 2.80 or later

| Ensure we have the shared C library

Set Topo$CLibLoaded 1

RMEnsure SharedCLibrary 0.00 Set Topo$CLibLoaded 0
If Topo$CLibLoaded=0 then If "<System$Path>" = "" then Error 0 System resources cannot be found

If Topo$CLibLoaded=0 then RMLoad system:Modules.CLib

RMEnsure SharedCLibrary 3.75 Error You need SharedCLibrary 3.75 or later
Unset Topo$CLibLoaded

RMEnsure Draw 1.01 Error You need Draw 1.01 or later
  
RMEnsure ColourTrans 0.51 RMLoad system:Modules.Colours
RMEnsure ColourTrans 0.51 Error You need ColourTrans 0.51 or later

RMEnsure SpriteExtend 0.20 Error You need SpriteExtend 0.20 or later

Set TopoPrefs$Path <Topo2$Dir>.!Prefs

SetEval TopoRunningCount <TopoRunningCount>+1

wimpslot -min 416k -max 416k

| Go
|
Run <Topo2$Dir>.!RunImage %*0

SetEval TopoRunningCount <TopoRunningCount>-1
00000000  7c 20 2d 3e 20 3c 54 6f  70 6f 24 44 69 72 3e 2e  || -> <Topo$Dir>.|
00000010  21 52 75 6e 0a 0a 53 65  74 20 54 6f 70 6f 32 24  |!Run..Set Topo2$|
00000020  44 69 72 20 3c 4f 62 65  79 24 44 69 72 3e 0a 0a  |Dir <Obey$Dir>..|
00000030  53 65 74 20 46 69 6c 65  24 54 79 70 65 5f 42 46  |Set File$Type_BF|
00000040  46 20 4d 61 70 0a 53 65  74 4d 61 63 72 6f 20 41  |F Map.SetMacro A|
00000050  6c 69 61 73 24 40 52 75  6e 54 79 70 65 5f 42 46  |lias$@RunType_BF|
00000060  46 20 52 75 6e 20 7c 3c  54 6f 70 6f 32 24 44 69  |F Run |<Topo2$Di|
00000070  72 3e 2e 21 52 75 6e 20  25 25 2a 30 0a 0a 7c 20  |r>.!Run %%*0..| |
00000080  53 65 74 20 75 70 20 66  69 6c 65 20 74 79 70 65  |Set up file type|
00000090  73 0a 49 63 6f 6e 53 70  72 69 74 65 73 20 3c 54  |s.IconSprites <T|
000000a0  6f 70 6f 32 24 44 69 72  3e 2e 21 53 70 72 69 74  |opo2$Dir>.!Sprit|
000000b0  65 73 0a 0a 7c 20 45 6e  73 75 72 65 20 77 65 20  |es..| Ensure we |
000000c0  68 61 76 65 20 46 50 45  6d 75 6c 61 74 6f 72 0a  |have FPEmulator.|
000000d0  0a 52 4d 45 6e 73 75 72  65 20 46 50 45 6d 75 6c  |.RMEnsure FPEmul|
000000e0  61 74 6f 72 20 32 2e 38  30 20 49 66 20 22 3c 53  |ator 2.80 If "<S|
000000f0  79 73 74 65 6d 24 50 61  74 68 3e 22 20 3d 20 22  |ystem$Path>" = "|
00000100  22 20 74 68 65 6e 20 45  72 72 6f 72 20 30 20 53  |" then Error 0 S|
00000110  79 73 74 65 6d 20 72 65  73 6f 75 72 63 65 73 20  |ystem resources |
00000120  63 61 6e 6e 6f 74 20 62  65 20 66 6f 75 6e 64 0a  |cannot be found.|
00000130  52 4d 45 6e 73 75 72 65  20 46 50 45 6d 75 6c 61  |RMEnsure FPEmula|
00000140  74 6f 72 20 32 2e 38 30  20 52 4d 4c 6f 61 64 20  |tor 2.80 RMLoad |
00000150  73 79 73 74 65 6d 3a 4d  6f 64 75 6c 65 73 2e 46  |system:Modules.F|
00000160  50 45 6d 75 6c 61 74 6f  72 0a 52 4d 45 6e 73 75  |PEmulator.RMEnsu|
00000170  72 65 20 46 50 45 6d 75  6c 61 74 6f 72 20 32 2e  |re FPEmulator 2.|
00000180  38 30 20 45 72 72 6f 72  20 59 6f 75 20 6e 65 65  |80 Error You nee|
00000190  64 20 46 50 45 6d 75 6c  61 74 6f 72 20 32 2e 38  |d FPEmulator 2.8|
000001a0  30 20 6f 72 20 6c 61 74  65 72 0a 0a 7c 20 45 6e  |0 or later..| En|
000001b0  73 75 72 65 20 77 65 20  68 61 76 65 20 74 68 65  |sure we have the|
000001c0  20 73 68 61 72 65 64 20  43 20 6c 69 62 72 61 72  | shared C librar|
000001d0  79 0a 0a 53 65 74 20 54  6f 70 6f 24 43 4c 69 62  |y..Set Topo$CLib|
000001e0  4c 6f 61 64 65 64 20 31  0a 0a 52 4d 45 6e 73 75  |Loaded 1..RMEnsu|
000001f0  72 65 20 53 68 61 72 65  64 43 4c 69 62 72 61 72  |re SharedCLibrar|
00000200  79 20 30 2e 30 30 20 53  65 74 20 54 6f 70 6f 24  |y 0.00 Set Topo$|
00000210  43 4c 69 62 4c 6f 61 64  65 64 20 30 0a 49 66 20  |CLibLoaded 0.If |
00000220  54 6f 70 6f 24 43 4c 69  62 4c 6f 61 64 65 64 3d  |Topo$CLibLoaded=|
00000230  30 20 74 68 65 6e 20 49  66 20 22 3c 53 79 73 74  |0 then If "<Syst|
00000240  65 6d 24 50 61 74 68 3e  22 20 3d 20 22 22 20 74  |em$Path>" = "" t|
00000250  68 65 6e 20 45 72 72 6f  72 20 30 20 53 79 73 74  |hen Error 0 Syst|
00000260  65 6d 20 72 65 73 6f 75  72 63 65 73 20 63 61 6e  |em resources can|
00000270  6e 6f 74 20 62 65 20 66  6f 75 6e 64 0a 0a 49 66  |not be found..If|
00000280  20 54 6f 70 6f 24 43 4c  69 62 4c 6f 61 64 65 64  | Topo$CLibLoaded|
00000290  3d 30 20 74 68 65 6e 20  52 4d 4c 6f 61 64 20 73  |=0 then RMLoad s|
000002a0  79 73 74 65 6d 3a 4d 6f  64 75 6c 65 73 2e 43 4c  |ystem:Modules.CL|
000002b0  69 62 0a 0a 52 4d 45 6e  73 75 72 65 20 53 68 61  |ib..RMEnsure Sha|
000002c0  72 65 64 43 4c 69 62 72  61 72 79 20 33 2e 37 35  |redCLibrary 3.75|
000002d0  20 45 72 72 6f 72 20 59  6f 75 20 6e 65 65 64 20  | Error You need |
000002e0  53 68 61 72 65 64 43 4c  69 62 72 61 72 79 20 33  |SharedCLibrary 3|
000002f0  2e 37 35 20 6f 72 20 6c  61 74 65 72 0a 55 6e 73  |.75 or later.Uns|
00000300  65 74 20 54 6f 70 6f 24  43 4c 69 62 4c 6f 61 64  |et Topo$CLibLoad|
00000310  65 64 0a 0a 52 4d 45 6e  73 75 72 65 20 44 72 61  |ed..RMEnsure Dra|
00000320  77 20 31 2e 30 31 20 45  72 72 6f 72 20 59 6f 75  |w 1.01 Error You|
00000330  20 6e 65 65 64 20 44 72  61 77 20 31 2e 30 31 20  | need Draw 1.01 |
00000340  6f 72 20 6c 61 74 65 72  0a 20 20 0a 52 4d 45 6e  |or later.  .RMEn|
00000350  73 75 72 65 20 43 6f 6c  6f 75 72 54 72 61 6e 73  |sure ColourTrans|
00000360  20 30 2e 35 31 20 52 4d  4c 6f 61 64 20 73 79 73  | 0.51 RMLoad sys|
00000370  74 65 6d 3a 4d 6f 64 75  6c 65 73 2e 43 6f 6c 6f  |tem:Modules.Colo|
00000380  75 72 73 0a 52 4d 45 6e  73 75 72 65 20 43 6f 6c  |urs.RMEnsure Col|
00000390  6f 75 72 54 72 61 6e 73  20 30 2e 35 31 20 45 72  |ourTrans 0.51 Er|
000003a0  72 6f 72 20 59 6f 75 20  6e 65 65 64 20 43 6f 6c  |ror You need Col|
000003b0  6f 75 72 54 72 61 6e 73  20 30 2e 35 31 20 6f 72  |ourTrans 0.51 or|
000003c0  20 6c 61 74 65 72 0a 0a  52 4d 45 6e 73 75 72 65  | later..RMEnsure|
000003d0  20 53 70 72 69 74 65 45  78 74 65 6e 64 20 30 2e  | SpriteExtend 0.|
000003e0  32 30 20 45 72 72 6f 72  20 59 6f 75 20 6e 65 65  |20 Error You nee|
000003f0  64 20 53 70 72 69 74 65  45 78 74 65 6e 64 20 30  |d SpriteExtend 0|
00000400  2e 32 30 20 6f 72 20 6c  61 74 65 72 0a 0a 53 65  |.20 or later..Se|
00000410  74 20 54 6f 70 6f 50 72  65 66 73 24 50 61 74 68  |t TopoPrefs$Path|
00000420  20 3c 54 6f 70 6f 32 24  44 69 72 3e 2e 21 50 72  | <Topo2$Dir>.!Pr|
00000430  65 66 73 0a 0a 53 65 74  45 76 61 6c 20 54 6f 70  |efs..SetEval Top|
00000440  6f 52 75 6e 6e 69 6e 67  43 6f 75 6e 74 20 3c 54  |oRunningCount <T|
00000450  6f 70 6f 52 75 6e 6e 69  6e 67 43 6f 75 6e 74 3e  |opoRunningCount>|
00000460  2b 31 0a 0a 77 69 6d 70  73 6c 6f 74 20 2d 6d 69  |+1..wimpslot -mi|
00000470  6e 20 34 31 36 6b 20 2d  6d 61 78 20 34 31 36 6b  |n 416k -max 416k|
00000480  0a 0a 7c 20 47 6f 0a 7c  0a 52 75 6e 20 3c 54 6f  |..| Go.|.Run <To|
00000490  70 6f 32 24 44 69 72 3e  2e 21 52 75 6e 49 6d 61  |po2$Dir>.!RunIma|
000004a0  67 65 20 25 2a 30 0a 0a  53 65 74 45 76 61 6c 20  |ge %*0..SetEval |
000004b0  54 6f 70 6f 52 75 6e 6e  69 6e 67 43 6f 75 6e 74  |TopoRunningCount|
000004c0  20 3c 54 6f 70 6f 52 75  6e 6e 69 6e 67 43 6f 75  | <TopoRunningCou|
000004d0  6e 74 3e 2d 31 0a                                 |nt>-1.|
000004d6