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

!AWJan95/Goodies/Event/Examples/!VBase2/!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/Examples/!VBase2/!Run
Read OK:
File size: 0419 bytes
Load address: 0000
Exec address: 0000
File contents
| !Run Obey file for VBase2 Application
Set VBase2$Dir <Obey$Dir>
Set VBase2$BasicFile <Obey$Dir>.!VBase2
Set Alias$@RunType_FD1 Basic -quit |"%%0|" %%*1
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_344 Run <Obey$Dir>.!Run %%*0
Set File$Type_344 VideoDat
IconSprites <Obey$Dir>.!Sprites
Run <Obey$Dir>.ChkSpr
Set Dummy$Path <Run$Path>,<Obey$Dir>.Resources.
Run Dummy:ResFind VBase2
Unset Dummy$Path
WimpSlot -min 256K -max 256K
|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 256K -max 256K
Run <VBase2$Dir>.!VBase2 %*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 56 42 61  73 65 32 20 41 70 70 6c  | for VBase2 Appl|
00000020  69 63 61 74 69 6f 6e 0d  53 65 74 20 56 42 61 73  |ication.Set VBas|
00000030  65 32 24 44 69 72 20 3c  4f 62 65 79 24 44 69 72  |e2$Dir <Obey$Dir|
00000040  3e 0d 53 65 74 20 56 42  61 73 65 32 24 42 61 73  |>.Set VBase2$Bas|
00000050  69 63 46 69 6c 65 20 3c  4f 62 65 79 24 44 69 72  |icFile <Obey$Dir|
00000060  3e 2e 21 56 42 61 73 65  32 0d 53 65 74 20 41 6c  |>.!VBase2.Set Al|
00000070  69 61 73 24 40 52 75 6e  54 79 70 65 5f 46 44 31  |ias$@RunType_FD1|
00000080  20 42 61 73 69 63 20 2d  71 75 69 74 20 7c 22 25  | Basic -quit |"%|
00000090  25 30 7c 22 20 25 25 2a  31 0d 49 46 20 22 3c 45  |%0|" %%*1.IF "<E|
000000a0  76 6e 74 53 68 65 6c 6c  24 50 61 74 68 3e 22 3d  |vntShell$Path>"=|
000000b0  22 22 20 54 48 45 4e 20  45 52 52 4f 52 20 30 20  |"" THEN ERROR 0 |
000000c0  53 68 65 6c 6c 20 72 65  73 6f 75 72 63 65 73 20  |Shell resources |
000000d0  6e 6f 74 20 66 6f 75 6e  64 0d 7c 43 68 61 6e 67  |not found.|Chang|
000000e0  65 20 74 68 65 20 6e 65  78 74 20 6c 69 6e 65 20  |e the next line |
000000f0  69 66 20 79 6f 75 20 61  72 65 20 75 73 69 6e 67  |if you are using|
00000100  20 61 20 64 69 66 66 65  72 65 6e 74 0d 7c 66 69  | a different.|fi|
00000110  6c 65 74 79 70 65 20 6e  75 6d 62 65 72 0d 53 65  |letype number.Se|
00000120  74 20 41 6c 69 61 73 24  40 52 75 6e 54 79 70 65  |t Alias$@RunType|
00000130  5f 33 34 34 20 52 75 6e  20 3c 4f 62 65 79 24 44  |_344 Run <Obey$D|
00000140  69 72 3e 2e 21 52 75 6e  20 25 25 2a 30 0d 53 65  |ir>.!Run %%*0.Se|
00000150  74 20 46 69 6c 65 24 54  79 70 65 5f 33 34 34 20  |t File$Type_344 |
00000160  56 69 64 65 6f 44 61 74  0d 49 63 6f 6e 53 70 72  |VideoDat.IconSpr|
00000170  69 74 65 73 20 3c 4f 62  65 79 24 44 69 72 3e 2e  |ites <Obey$Dir>.|
00000180  21 53 70 72 69 74 65 73  0d 52 75 6e 20 3c 4f 62  |!Sprites.Run <Ob|
00000190  65 79 24 44 69 72 3e 2e  43 68 6b 53 70 72 0d 53  |ey$Dir>.ChkSpr.S|
000001a0  65 74 20 44 75 6d 6d 79  24 50 61 74 68 20 3c 52  |et Dummy$Path <R|
000001b0  75 6e 24 50 61 74 68 3e  2c 3c 4f 62 65 79 24 44  |un$Path>,<Obey$D|
000001c0  69 72 3e 2e 52 65 73 6f  75 72 63 65 73 2e 0d 52  |ir>.Resources..R|
000001d0  75 6e 20 44 75 6d 6d 79  3a 52 65 73 46 69 6e 64  |un Dummy:ResFind|
000001e0  20 56 42 61 73 65 32 0d  55 6e 73 65 74 20 44 75  | VBase2.Unset Du|
000001f0  6d 6d 79 24 50 61 74 68  0d 57 69 6d 70 53 6c 6f  |mmy$Path.WimpSlo|
00000200  74 20 2d 6d 69 6e 20 32  35 36 4b 20 2d 6d 61 78  |t -min 256K -max|
00000210  20 32 35 36 4b 0d 7c 4c  6f 61 64 20 61 6e 79 20  | 256K.|Load any |
00000220  6d 6f 64 75 6c 65 73 20  72 65 71 75 69 72 65 64  |modules required|
00000230  20 6e 6f 77 0d 52 4d 45  6e 73 75 72 65 20 49 6e  | now.RMEnsure In|
00000240  74 65 72 66 61 63 65 4d  61 6e 61 67 65 72 20 32  |terfaceManager 2|
00000250  2e 30 30 20 52 4d 4c 6f  61 64 20 3c 45 76 6e 74  |.00 RMLoad <Evnt|
00000260  53 68 65 6c 6c 24 50 61  74 68 3e 49 6e 74 65 72  |Shell$Path>Inter|
00000270  66 61 63 65 0d 52 4d 45  6e 73 75 72 65 20 49 6e  |face.RMEnsure In|
00000280  74 65 72 66 61 63 65 4d  61 6e 61 67 65 72 20 32  |terfaceManager 2|
00000290  2e 30 30 20 45 72 72 6f  72 20 43 6f 75 6c 64 6e  |.00 Error Couldn|
000002a0  27 74 20 6c 6f 61 64 20  49 6e 74 65 72 66 61 63  |'t load Interfac|
000002b0  65 20 6d 6f 64 75 6c 65  0d 52 4d 45 6e 73 75 72  |e module.RMEnsur|
000002c0  65 20 4d 65 6e 75 55 74  69 6c 73 20 30 2e 31 31  |e MenuUtils 0.11|
000002d0  20 52 4d 4c 6f 61 64 20  3c 45 76 6e 74 53 68 65  | RMLoad <EvntShe|
000002e0  6c 6c 24 50 61 74 68 3e  4d 65 6e 75 55 74 69 6c  |ll$Path>MenuUtil|
000002f0  73 0d 52 4d 45 6e 73 75  72 65 20 4d 65 6e 75 55  |s.RMEnsure MenuU|
00000300  74 69 6c 73 20 30 2e 31  31 20 45 72 72 6f 72 20  |tils 0.11 Error |
00000310  30 20 45 72 72 6f 72 20  43 6f 75 6c 64 6e 27 74  |0 Error Couldn't|
00000320  20 6c 6f 61 64 20 4d 65  6e 75 55 74 69 6c 73 20  | load MenuUtils |
00000330  4d 6f 64 75 6c 65 0d 52  4d 45 6e 73 75 72 65 20  |Module.RMEnsure |
00000340  4d 65 73 73 61 67 65 54  72 61 6e 73 20 30 2e 30  |MessageTrans 0.0|
00000350  36 20 52 4d 4c 6f 61 64  20 3c 45 76 6e 74 53 68  |6 RMLoad <EvntSh|
00000360  65 6c 6c 24 50 61 74 68  3e 4d 73 67 54 72 61 6e  |ell$Path>MsgTran|
00000370  73 0d 52 4d 45 6e 73 75  72 65 20 4d 65 73 73 61  |s.RMEnsure Messa|
00000380  67 65 54 72 61 6e 73 20  30 2e 30 36 20 45 72 72  |geTrans 0.06 Err|
00000390  6f 72 20 43 6f 75 6c 64  6e 27 74 20 6c 6f 61 64  |or Couldn't load|
000003a0  20 4d 73 67 54 72 61 6e  73 20 4d 6f 64 75 6c 65  | MsgTrans Module|
000003b0  0d 7c 41 6e 64 20 63 68  65 63 6b 20 74 68 61 74  |.|And check that|
000003c0  20 74 68 65 72 65 20 69  73 20 73 74 69 6c 6c 20  | there is still |
000003d0  65 6e 6f 75 67 68 20 6d  65 6d 6f 72 79 21 0d 57  |enough memory!.W|
000003e0  69 6d 70 53 6c 6f 74 20  2d 6d 69 6e 20 32 35 36  |impSlot -min 256|
000003f0  4b 20 2d 6d 61 78 20 32  35 36 4b 0d 52 75 6e 20  |K -max 256K.Run |
00000400  3c 56 42 61 73 65 32 24  44 69 72 3e 2e 21 56 42  |<VBase2$Dir>.!VB|
00000410  61 73 65 32 20 25 2a 30  0d                       |ase2 %*0.|
00000419