Home » Archimedes archive » Archimedes World » AW-1994-05-Disc1.adf » Disk1May94 » !AWMay94/Goodies/Advantage/!Advantage/!Run

!AWMay94/Goodies/Advantage/!Advantage/!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-1994-05-Disc1.adf » Disk1May94
Filename: !AWMay94/Goodies/Advantage/!Advantage/!Run
Read OK:
File size: 0721 bytes
Load address: 0000
Exec address: 0000
File contents
WimpSlot -min 800K -max 800K

Set Advantage$Dir <Obey$Dir>

Obey <Advantage$Dir>.!Boot

if "<System$Path>" = "" then Error 0 System resources cannot be found, (try running !System).

|||||||||| Module section

set clib$flag 0
RMensure SharedClibrary 3.75 set clib$flag 1
RMensure SharedClibrary 0 set clib$flag 0
if "<clib$flag>"="1" then Error !!! Old shared C library !!! An old version of the shared C library (clib) is resident in memory - please refer to your Advantage user guide.
unset clib$flag
RMEnsure SharedCLibrary 3.75 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 3.75 Error You need shared C library (CLib) version 3.75 or later
RMEnsure ColourTrans 0.52 rmload System:Modules.Colours
RMEnsure ColourTrans 0.52 Error You need ColourTrans version 0.52 or later
RMEnsure FPEmulator 2.80 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.80 Error You need version 2.80 or later of the floating point emulator (FPEmulator).
RMEnsure FontManager 2.42 Error You need FontManager 2.42 or later

RMEnsure EurekaUtils 0.01 RMLoad <Advantage$Dir>.EurUtils
RMEnsure EurekaUtils 0.01 Error You need EurekaUtils (EurUtils) version 0.01 or later

Set Eureka$WinResourceDir <Advantage$Dir>
Set Advantage$Randomize 1

UnSet Advantage$Units
Set Advantage$Units centimetres

UnSet Eureka$WinLibSystemFont
UnSet Eureka$WinLibDialogFont
Unset Advantage$WorksheetFont
Unset Advantage$ChartFont

| Default setup for VGA RISC OS 3 users - just remove the character at the start of each line.
|Set Eureka$WinLibSystemFont     : +font=Homerton.Medium +size=12
|Set Eureka$WinLibDialogFont     : +font=Homerton.Bold +size=10
|Set Advantage$WorksheetFont     : +font=Homerton.Medium +size=10
Set Advantage$ChartFont         : +font=Homerton.Medium +size=10

||||||||||||||| Run the program.

Run "<Advantage$Dir>.!RunImage" %*0
00000000  57 69 6d 70 53 6c 6f 74  20 2d 6d 69 6e 20 38 30  |WimpSlot -min 80|
00000010  30 4b 20 2d 6d 61 78 20  38 30 30 4b 0a 0a 53 65  |0K -max 800K..Se|
00000020  74 20 41 64 76 61 6e 74  61 67 65 24 44 69 72 20  |t Advantage$Dir |
00000030  3c 4f 62 65 79 24 44 69  72 3e 0a 0a 4f 62 65 79  |<Obey$Dir>..Obey|
00000040  20 3c 41 64 76 61 6e 74  61 67 65 24 44 69 72 3e  | <Advantage$Dir>|
00000050  2e 21 42 6f 6f 74 0a 0a  69 66 20 22 3c 53 79 73  |.!Boot..if "<Sys|
00000060  74 65 6d 24 50 61 74 68  3e 22 20 3d 20 22 22 20  |tem$Path>" = "" |
00000070  74 68 65 6e 20 45 72 72  6f 72 20 30 20 53 79 73  |then Error 0 Sys|
00000080  74 65 6d 20 72 65 73 6f  75 72 63 65 73 20 63 61  |tem resources ca|
00000090  6e 6e 6f 74 20 62 65 20  66 6f 75 6e 64 2c 20 28  |nnot be found, (|
000000a0  74 72 79 20 72 75 6e 6e  69 6e 67 20 21 53 79 73  |try running !Sys|
000000b0  74 65 6d 29 2e 0a 0a 7c  7c 7c 7c 7c 7c 7c 7c 7c  |tem)...||||||||||
000000c0  7c 20 4d 6f 64 75 6c 65  20 73 65 63 74 69 6f 6e  || Module section|
000000d0  0a 0a 73 65 74 20 63 6c  69 62 24 66 6c 61 67 20  |..set clib$flag |
000000e0  30 0a 52 4d 65 6e 73 75  72 65 20 53 68 61 72 65  |0.RMensure Share|
000000f0  64 43 6c 69 62 72 61 72  79 20 33 2e 37 35 20 73  |dClibrary 3.75 s|
00000100  65 74 20 63 6c 69 62 24  66 6c 61 67 20 31 0a 52  |et clib$flag 1.R|
00000110  4d 65 6e 73 75 72 65 20  53 68 61 72 65 64 43 6c  |Mensure SharedCl|
00000120  69 62 72 61 72 79 20 30  20 73 65 74 20 63 6c 69  |ibrary 0 set cli|
00000130  62 24 66 6c 61 67 20 30  0a 69 66 20 22 3c 63 6c  |b$flag 0.if "<cl|
00000140  69 62 24 66 6c 61 67 3e  22 3d 22 31 22 20 74 68  |ib$flag>"="1" th|
00000150  65 6e 20 45 72 72 6f 72  20 21 21 21 20 4f 6c 64  |en Error !!! Old|
00000160  20 73 68 61 72 65 64 20  43 20 6c 69 62 72 61 72  | shared C librar|
00000170  79 20 21 21 21 20 41 6e  20 6f 6c 64 20 76 65 72  |y !!! An old ver|
00000180  73 69 6f 6e 20 6f 66 20  74 68 65 20 73 68 61 72  |sion of the shar|
00000190  65 64 20 43 20 6c 69 62  72 61 72 79 20 28 63 6c  |ed C library (cl|
000001a0  69 62 29 20 69 73 20 72  65 73 69 64 65 6e 74 20  |ib) is resident |
000001b0  69 6e 20 6d 65 6d 6f 72  79 20 2d 20 70 6c 65 61  |in memory - plea|
000001c0  73 65 20 72 65 66 65 72  20 74 6f 20 79 6f 75 72  |se refer to your|
000001d0  20 41 64 76 61 6e 74 61  67 65 20 75 73 65 72 20  | Advantage user |
000001e0  67 75 69 64 65 2e 0a 75  6e 73 65 74 20 63 6c 69  |guide..unset cli|
000001f0  62 24 66 6c 61 67 0a 52  4d 45 6e 73 75 72 65 20  |b$flag.RMEnsure |
00000200  53 68 61 72 65 64 43 4c  69 62 72 61 72 79 20 33  |SharedCLibrary 3|
00000210  2e 37 35 20 52 4d 4c 6f  61 64 20 53 79 73 74 65  |.75 RMLoad Syste|
00000220  6d 3a 4d 6f 64 75 6c 65  73 2e 43 4c 69 62 0a 52  |m:Modules.CLib.R|
00000230  4d 45 6e 73 75 72 65 20  53 68 61 72 65 64 43 4c  |MEnsure SharedCL|
00000240  69 62 72 61 72 79 20 33  2e 37 35 20 45 72 72 6f  |ibrary 3.75 Erro|
00000250  72 20 59 6f 75 20 6e 65  65 64 20 73 68 61 72 65  |r You need share|
00000260  64 20 43 20 6c 69 62 72  61 72 79 20 28 43 4c 69  |d C library (CLi|
00000270  62 29 20 76 65 72 73 69  6f 6e 20 33 2e 37 35 20  |b) version 3.75 |
00000280  6f 72 20 6c 61 74 65 72  0a 52 4d 45 6e 73 75 72  |or later.RMEnsur|
00000290  65 20 43 6f 6c 6f 75 72  54 72 61 6e 73 20 30 2e  |e ColourTrans 0.|
000002a0  35 32 20 72 6d 6c 6f 61  64 20 53 79 73 74 65 6d  |52 rmload System|
000002b0  3a 4d 6f 64 75 6c 65 73  2e 43 6f 6c 6f 75 72 73  |:Modules.Colours|
000002c0  0a 52 4d 45 6e 73 75 72  65 20 43 6f 6c 6f 75 72  |.RMEnsure Colour|
000002d0  54 72 61 6e 73 20 30 2e  35 32 20 45 72 72 6f 72  |Trans 0.52 Error|
000002e0  20 59 6f 75 20 6e 65 65  64 20 43 6f 6c 6f 75 72  | You need Colour|
000002f0  54 72 61 6e 73 20 76 65  72 73 69 6f 6e 20 30 2e  |Trans version 0.|
00000300  35 32 20 6f 72 20 6c 61  74 65 72 0a 52 4d 45 6e  |52 or later.RMEn|
00000310  73 75 72 65 20 46 50 45  6d 75 6c 61 74 6f 72 20  |sure FPEmulator |
00000320  32 2e 38 30 20 52 4d 4c  6f 61 64 20 53 79 73 74  |2.80 RMLoad Syst|
00000330  65 6d 3a 4d 6f 64 75 6c  65 73 2e 46 50 45 6d 75  |em:Modules.FPEmu|
00000340  6c 61 74 6f 72 0a 52 4d  45 6e 73 75 72 65 20 46  |lator.RMEnsure F|
00000350  50 45 6d 75 6c 61 74 6f  72 20 32 2e 38 30 20 45  |PEmulator 2.80 E|
00000360  72 72 6f 72 20 59 6f 75  20 6e 65 65 64 20 76 65  |rror You need ve|
00000370  72 73 69 6f 6e 20 32 2e  38 30 20 6f 72 20 6c 61  |rsion 2.80 or la|
00000380  74 65 72 20 6f 66 20 74  68 65 20 66 6c 6f 61 74  |ter of the float|
00000390  69 6e 67 20 70 6f 69 6e  74 20 65 6d 75 6c 61 74  |ing point emulat|
000003a0  6f 72 20 28 46 50 45 6d  75 6c 61 74 6f 72 29 2e  |or (FPEmulator).|
000003b0  0a 52 4d 45 6e 73 75 72  65 20 46 6f 6e 74 4d 61  |.RMEnsure FontMa|
000003c0  6e 61 67 65 72 20 32 2e  34 32 20 45 72 72 6f 72  |nager 2.42 Error|
000003d0  20 59 6f 75 20 6e 65 65  64 20 46 6f 6e 74 4d 61  | You need FontMa|
000003e0  6e 61 67 65 72 20 32 2e  34 32 20 6f 72 20 6c 61  |nager 2.42 or la|
000003f0  74 65 72 0a 0a 52 4d 45  6e 73 75 72 65 20 45 75  |ter..RMEnsure Eu|
00000400  72 65 6b 61 55 74 69 6c  73 20 30 2e 30 31 20 52  |rekaUtils 0.01 R|
00000410  4d 4c 6f 61 64 20 3c 41  64 76 61 6e 74 61 67 65  |MLoad <Advantage|
00000420  24 44 69 72 3e 2e 45 75  72 55 74 69 6c 73 0a 52  |$Dir>.EurUtils.R|
00000430  4d 45 6e 73 75 72 65 20  45 75 72 65 6b 61 55 74  |MEnsure EurekaUt|
00000440  69 6c 73 20 30 2e 30 31  20 45 72 72 6f 72 20 59  |ils 0.01 Error Y|
00000450  6f 75 20 6e 65 65 64 20  45 75 72 65 6b 61 55 74  |ou need EurekaUt|
00000460  69 6c 73 20 28 45 75 72  55 74 69 6c 73 29 20 76  |ils (EurUtils) v|
00000470  65 72 73 69 6f 6e 20 30  2e 30 31 20 6f 72 20 6c  |ersion 0.01 or l|
00000480  61 74 65 72 0a 0a 53 65  74 20 45 75 72 65 6b 61  |ater..Set Eureka|
00000490  24 57 69 6e 52 65 73 6f  75 72 63 65 44 69 72 20  |$WinResourceDir |
000004a0  3c 41 64 76 61 6e 74 61  67 65 24 44 69 72 3e 0a  |<Advantage$Dir>.|
000004b0  53 65 74 20 41 64 76 61  6e 74 61 67 65 24 52 61  |Set Advantage$Ra|
000004c0  6e 64 6f 6d 69 7a 65 20  31 0a 0a 55 6e 53 65 74  |ndomize 1..UnSet|
000004d0  20 41 64 76 61 6e 74 61  67 65 24 55 6e 69 74 73  | Advantage$Units|
000004e0  0a 53 65 74 20 41 64 76  61 6e 74 61 67 65 24 55  |.Set Advantage$U|
000004f0  6e 69 74 73 20 63 65 6e  74 69 6d 65 74 72 65 73  |nits centimetres|
00000500  0a 0a 55 6e 53 65 74 20  45 75 72 65 6b 61 24 57  |..UnSet Eureka$W|
00000510  69 6e 4c 69 62 53 79 73  74 65 6d 46 6f 6e 74 0a  |inLibSystemFont.|
00000520  55 6e 53 65 74 20 45 75  72 65 6b 61 24 57 69 6e  |UnSet Eureka$Win|
00000530  4c 69 62 44 69 61 6c 6f  67 46 6f 6e 74 0a 55 6e  |LibDialogFont.Un|
00000540  73 65 74 20 41 64 76 61  6e 74 61 67 65 24 57 6f  |set Advantage$Wo|
00000550  72 6b 73 68 65 65 74 46  6f 6e 74 0a 55 6e 73 65  |rksheetFont.Unse|
00000560  74 20 41 64 76 61 6e 74  61 67 65 24 43 68 61 72  |t Advantage$Char|
00000570  74 46 6f 6e 74 0a 0a 7c  20 44 65 66 61 75 6c 74  |tFont..| Default|
00000580  20 73 65 74 75 70 20 66  6f 72 20 56 47 41 20 52  | setup for VGA R|
00000590  49 53 43 20 4f 53 20 33  20 75 73 65 72 73 20 2d  |ISC OS 3 users -|
000005a0  20 6a 75 73 74 20 72 65  6d 6f 76 65 20 74 68 65  | just remove the|
000005b0  20 63 68 61 72 61 63 74  65 72 20 61 74 20 74 68  | character at th|
000005c0  65 20 73 74 61 72 74 20  6f 66 20 65 61 63 68 20  |e start of each |
000005d0  6c 69 6e 65 2e 0a 7c 53  65 74 20 45 75 72 65 6b  |line..|Set Eurek|
000005e0  61 24 57 69 6e 4c 69 62  53 79 73 74 65 6d 46 6f  |a$WinLibSystemFo|
000005f0  6e 74 20 20 20 20 20 3a  20 2b 66 6f 6e 74 3d 48  |nt     : +font=H|
00000600  6f 6d 65 72 74 6f 6e 2e  4d 65 64 69 75 6d 20 2b  |omerton.Medium +|
00000610  73 69 7a 65 3d 31 32 0a  7c 53 65 74 20 45 75 72  |size=12.|Set Eur|
00000620  65 6b 61 24 57 69 6e 4c  69 62 44 69 61 6c 6f 67  |eka$WinLibDialog|
00000630  46 6f 6e 74 20 20 20 20  20 3a 20 2b 66 6f 6e 74  |Font     : +font|
00000640  3d 48 6f 6d 65 72 74 6f  6e 2e 42 6f 6c 64 20 2b  |=Homerton.Bold +|
00000650  73 69 7a 65 3d 31 30 0a  7c 53 65 74 20 41 64 76  |size=10.|Set Adv|
00000660  61 6e 74 61 67 65 24 57  6f 72 6b 73 68 65 65 74  |antage$Worksheet|
00000670  46 6f 6e 74 20 20 20 20  20 3a 20 2b 66 6f 6e 74  |Font     : +font|
00000680  3d 48 6f 6d 65 72 74 6f  6e 2e 4d 65 64 69 75 6d  |=Homerton.Medium|
00000690  20 2b 73 69 7a 65 3d 31  30 0a 53 65 74 20 41 64  | +size=10.Set Ad|
000006a0  76 61 6e 74 61 67 65 24  43 68 61 72 74 46 6f 6e  |vantage$ChartFon|
000006b0  74 20 20 20 20 20 20 20  20 20 3a 20 2b 66 6f 6e  |t         : +fon|
000006c0  74 3d 48 6f 6d 65 72 74  6f 6e 2e 4d 65 64 69 75  |t=Homerton.Mediu|
000006d0  6d 20 2b 73 69 7a 65 3d  31 30 0a 0a 7c 7c 7c 7c  |m +size=10..|||||
000006e0  7c 7c 7c 7c 7c 7c 7c 7c  7c 7c 7c 20 52 75 6e 20  |||||||||||| Run |
000006f0  74 68 65 20 70 72 6f 67  72 61 6d 2e 0a 0a 52 75  |the program...Ru|
00000700  6e 20 22 3c 41 64 76 61  6e 74 61 67 65 24 44 69  |n "<Advantage$Di|
00000710  72 3e 2e 21 52 75 6e 49  6d 61 67 65 22 20 25 2a  |r>.!RunImage" %*|
00000720  30                                                |0|
00000721