Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!WinSave2/!Run
!AWJan95/Goodies/Event/Examples/!WinSave2/!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/!WinSave2/!Run |
Read OK: | ✔ |
File size: | 0402 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
| !Run Obey file for WinSave2 Application Set WinSave2$Dir <Obey$Dir> Set WinSave2Data$Dir <Obey$Dir>.data Set WinSave2$BasicFile <Obey$Dir>.!WinSave2 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_200 Run <Obey$Dir>.!Run %%*0 IconSprites <Obey$Dir>.!Sprites Run <Obey$Dir>.ChkSpr Set Dummy$Path <Run$Path>,<Obey$Dir>.Resources. Run Dummy:ResFind WinSave2 Unset Dummy$Path WimpSlot -min 192K -max 192K |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 192K -max 192K Run <WinSave2$Dir>.!WinSave2 %*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 57 69 6e 53 61 76 65 32 20 41 70 | for WinSave2 Ap| 00000020 70 6c 69 63 61 74 69 6f 6e 0a 53 65 74 20 57 69 |plication.Set Wi| 00000030 6e 53 61 76 65 32 24 44 69 72 20 3c 4f 62 65 79 |nSave2$Dir <Obey| 00000040 24 44 69 72 3e 0a 53 65 74 20 57 69 6e 53 61 76 |$Dir>.Set WinSav| 00000050 65 32 44 61 74 61 24 44 69 72 20 3c 4f 62 65 79 |e2Data$Dir <Obey| 00000060 24 44 69 72 3e 2e 64 61 74 61 0a 53 65 74 20 57 |$Dir>.data.Set W| 00000070 69 6e 53 61 76 65 32 24 42 61 73 69 63 46 69 6c |inSave2$BasicFil| 00000080 65 20 3c 4f 62 65 79 24 44 69 72 3e 2e 21 57 69 |e <Obey$Dir>.!Wi| 00000090 6e 53 61 76 65 32 0a 49 46 20 22 3c 45 76 6e 74 |nSave2.IF "<Evnt| 000000a0 53 68 65 6c 6c 24 50 61 74 68 3e 22 3d 22 22 20 |Shell$Path>"="" | 000000b0 54 48 45 4e 20 45 52 52 4f 52 20 30 20 53 68 65 |THEN ERROR 0 She| 000000c0 6c 6c 20 72 65 73 6f 75 72 63 65 73 20 6e 6f 74 |ll resources not| 000000d0 20 66 6f 75 6e 64 0a 7c 43 68 61 6e 67 65 20 74 | found.|Change t| 000000e0 68 65 20 6e 65 78 74 20 6c 69 6e 65 20 69 66 20 |he next line if | 000000f0 79 6f 75 20 61 72 65 20 75 73 69 6e 67 20 61 20 |you are using a | 00000100 64 69 66 66 65 72 65 6e 74 0a 7c 66 69 6c 65 74 |different.|filet| 00000110 79 70 65 20 6e 75 6d 62 65 72 0a 7c 53 65 74 20 |ype number.|Set | 00000120 41 6c 69 61 73 24 40 52 75 6e 54 79 70 65 5f 32 |Alias$@RunType_2| 00000130 30 30 20 52 75 6e 20 3c 4f 62 65 79 24 44 69 72 |00 Run <Obey$Dir| 00000140 3e 2e 21 52 75 6e 20 25 25 2a 30 0a 49 63 6f 6e |>.!Run %%*0.Icon| 00000150 53 70 72 69 74 65 73 20 3c 4f 62 65 79 24 44 69 |Sprites <Obey$Di| 00000160 72 3e 2e 21 53 70 72 69 74 65 73 0a 52 75 6e 20 |r>.!Sprites.Run | 00000170 3c 4f 62 65 79 24 44 69 72 3e 2e 43 68 6b 53 70 |<Obey$Dir>.ChkSp| 00000180 72 0a 53 65 74 20 44 75 6d 6d 79 24 50 61 74 68 |r.Set Dummy$Path| 00000190 20 3c 52 75 6e 24 50 61 74 68 3e 2c 3c 4f 62 65 | <Run$Path>,<Obe| 000001a0 79 24 44 69 72 3e 2e 52 65 73 6f 75 72 63 65 73 |y$Dir>.Resources| 000001b0 2e 0a 52 75 6e 20 44 75 6d 6d 79 3a 52 65 73 46 |..Run Dummy:ResF| 000001c0 69 6e 64 20 57 69 6e 53 61 76 65 32 0a 55 6e 73 |ind WinSave2.Uns| 000001d0 65 74 20 44 75 6d 6d 79 24 50 61 74 68 0a 57 69 |et Dummy$Path.Wi| 000001e0 6d 70 53 6c 6f 74 20 2d 6d 69 6e 20 31 39 32 4b |mpSlot -min 192K| 000001f0 20 2d 6d 61 78 20 31 39 32 4b 0a 7c 4c 6f 61 64 | -max 192K.|Load| 00000200 20 61 6e 79 20 6d 6f 64 75 6c 65 73 20 72 65 71 | any modules req| 00000210 75 69 72 65 64 20 6e 6f 77 0a 52 4d 45 6e 73 75 |uired now.RMEnsu| 00000220 72 65 20 49 6e 74 65 72 66 61 63 65 4d 61 6e 61 |re InterfaceMana| 00000230 67 65 72 20 32 2e 30 30 20 52 4d 4c 6f 61 64 20 |ger 2.00 RMLoad | 00000240 3c 45 76 6e 74 53 68 65 6c 6c 24 50 61 74 68 3e |<EvntShell$Path>| 00000250 49 6e 74 65 72 66 61 63 65 0a 52 4d 45 6e 73 75 |Interface.RMEnsu| 00000260 72 65 20 49 6e 74 65 72 66 61 63 65 4d 61 6e 61 |re InterfaceMana| 00000270 67 65 72 20 32 2e 30 30 20 45 72 72 6f 72 20 43 |ger 2.00 Error C| 00000280 6f 75 6c 64 6e 27 74 20 6c 6f 61 64 20 49 6e 74 |ouldn't load Int| 00000290 65 72 66 61 63 65 20 6d 6f 64 75 6c 65 0a 52 4d |erface module.RM| 000002a0 45 6e 73 75 72 65 20 4d 65 6e 75 55 74 69 6c 73 |Ensure MenuUtils| 000002b0 20 30 2e 31 31 20 52 4d 4c 6f 61 64 20 3c 45 76 | 0.11 RMLoad <Ev| 000002c0 6e 74 53 68 65 6c 6c 24 50 61 74 68 3e 4d 65 6e |ntShell$Path>Men| 000002d0 75 55 74 69 6c 73 0a 52 4d 45 6e 73 75 72 65 20 |uUtils.RMEnsure | 000002e0 4d 65 6e 75 55 74 69 6c 73 20 30 2e 31 31 20 45 |MenuUtils 0.11 E| 000002f0 72 72 6f 72 20 30 20 45 72 72 6f 72 20 43 6f 75 |rror 0 Error Cou| 00000300 6c 64 6e 27 74 20 6c 6f 61 64 20 4d 65 6e 75 55 |ldn't load MenuU| 00000310 74 69 6c 73 20 4d 6f 64 75 6c 65 0a 52 4d 45 6e |tils Module.RMEn| 00000320 73 75 72 65 20 4d 65 73 73 61 67 65 54 72 61 6e |sure MessageTran| 00000330 73 20 30 2e 30 36 20 52 4d 4c 6f 61 64 20 3c 45 |s 0.06 RMLoad <E| 00000340 76 6e 74 53 68 65 6c 6c 24 50 61 74 68 3e 4d 73 |vntShell$Path>Ms| 00000350 67 54 72 61 6e 73 0a 52 4d 45 6e 73 75 72 65 20 |gTrans.RMEnsure | 00000360 4d 65 73 73 61 67 65 54 72 61 6e 73 20 30 2e 30 |MessageTrans 0.0| 00000370 36 20 45 72 72 6f 72 20 43 6f 75 6c 64 6e 27 74 |6 Error Couldn't| 00000380 20 6c 6f 61 64 20 4d 73 67 54 72 61 6e 73 20 4d | load MsgTrans M| 00000390 6f 64 75 6c 65 0a 7c 41 6e 64 20 63 68 65 63 6b |odule.|And check| 000003a0 20 74 68 61 74 20 74 68 65 72 65 20 69 73 20 73 | that there is s| 000003b0 74 69 6c 6c 20 65 6e 6f 75 67 68 20 6d 65 6d 6f |till enough memo| 000003c0 72 79 21 0a 57 69 6d 70 53 6c 6f 74 20 2d 6d 69 |ry!.WimpSlot -mi| 000003d0 6e 20 31 39 32 4b 20 2d 6d 61 78 20 31 39 32 4b |n 192K -max 192K| 000003e0 0a 52 75 6e 20 3c 57 69 6e 53 61 76 65 32 24 44 |.Run <WinSave2$D| 000003f0 69 72 3e 2e 21 57 69 6e 53 61 76 65 32 20 25 2a |ir>.!WinSave2 %*| 00000400 30 0a |0.| 00000402