Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !ProFiler_ProFiler » !ProFiler/Dox/RunAndBoot
!ProFiler/Dox/RunAndBoot
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_1_scp.adf » !ProFiler_ProFiler |
Filename: | !ProFiler/Dox/RunAndBoot |
Read OK: | ✔ |
File size: | 0E35 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
<html><head><title>Running and booting</title></head> <body> <h2><center>Running and booting objects</center></h2> A plain directory is a special case when the name doesn't start with "!", and the type is &FFD, i.e. extended type &1FFD. All other directories are considered 'applications' of various types, and can make things happen when seen or opened.<br> The plain directories are treated thus: <ol> <li>When doubleclicking on one, the dir is opened rather than having the RunDir variable checked. <li>When Filer_Running a plain dir, the same thing happens. <li>The sprites used are different, see below. </ol> <p>This roundabout way of seeing applications and directories could have been defined in several more obvious ways. The main problem with the nicer definitions is read-only devices like CD-ROMs. The directories here can't be modified, so they all have the same type (&FFD). As a result of this, type &FFD has to be treated as a special case, as both directories and applications can have this type. <p>Resources: is a worse problem, because the apps and directories have various types and still can't be modified. So the action when running an application of type &2xxx is to look for <code>Alias$@RunDir_2xxx</code>, and if it doesn't exist, run <code>@RunDir_2FFD</code>. The same applies to <code>Alias$@BootDir_2xxx</code>. <p>The Set type menu uses normal file types rather than extended ones. The reason for this is, that you couldn't settype an object from type &1xxx to type &2xxx, because this would involve changing the name (removing the "!").<br> So you are allowed to change the type within the current group of extended types, e.g. from &1xxx to &1yyy. You can only enter <kbd>yyy</kbd>, not <kbd>1yyy</kbd>. Also, if you have selected items of more than one group, settype is not allowed. The <kbd>*SetType</kbd> command works in the same way, except you can only use textual filetypes for types &0xxx and &3xxx. <p>As mentioned above, directories of type &1FFD are just opened. When double-clicking or Filer_Running another directory, the following happens: <ol> <li>If SHIFT is held, it is treated exactly like it was type &1FFD, i.e. it is opened, or if it is already open, it is closed. <li>If the variable <code>Alias$@RunDir_xxxx</code> doesn't exist, it is treated as type &1FFD or &2FFD depending on the name, but regardless of the actual type. <li>Otherwise the command "<code>@RunDir_xxxx </code><directory>" is started as a wimp task. </ol> <p>In order to make normal applications work as expected, the following variable is defined in the !SetVars file:<br> <code>Set Alias$@RunDir_2FFD /%0.!Run %*1</code> <br><i>Note: The %'s are different because it's in an obey file.</i> <p>So the !Run file is executed when you doubleclick on anything that starts with '!', unless a variable is set for that type of application. <p>A similar system is used for booting dirs. If the type is &1FFD, nothing happens. If not, the variable <code>Alias$@BootDir_xxxx</code> is checked. If it exists, the command "<code>@BootDir_xxxx </code><directory>" is started as a task. Otherwise nothing happens, except if the name starts with '!', in which case <code>@BootDir_2FFD</code> is started as mentioned above. <p>Again, normal apps work because the following is in the !SetVars file:<br> <code>Set Alias$@BootDir_2FFD RunIfThere %0.!Boot IconSprites %0.!Sprites</code> <p><kbd>*RunIfThere</kbd> is implemented by the Filer module. <kbd>*IfThere</kbd> is in the ROM, but it doesn't seem to work very well, maybe because it starts itself as an application (it's C).<br> </body></html>
00000000 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 74 69 74 |<html><head><tit| 00000010 6c 65 3e 52 75 6e 6e 69 6e 67 20 61 6e 64 20 62 |le>Running and b| 00000020 6f 6f 74 69 6e 67 3c 2f 74 69 74 6c 65 3e 3c 2f |ooting</title></| 00000030 68 65 61 64 3e 0a 0a 3c 62 6f 64 79 3e 0a 3c 68 |head>..<body>.<h| 00000040 32 3e 3c 63 65 6e 74 65 72 3e 52 75 6e 6e 69 6e |2><center>Runnin| 00000050 67 20 61 6e 64 20 62 6f 6f 74 69 6e 67 20 6f 62 |g and booting ob| 00000060 6a 65 63 74 73 3c 2f 63 65 6e 74 65 72 3e 3c 2f |jects</center></| 00000070 68 32 3e 0a 0a 41 20 70 6c 61 69 6e 20 64 69 72 |h2>..A plain dir| 00000080 65 63 74 6f 72 79 20 69 73 20 61 20 73 70 65 63 |ectory is a spec| 00000090 69 61 6c 20 63 61 73 65 20 77 68 65 6e 20 74 68 |ial case when th| 000000a0 65 20 6e 61 6d 65 20 64 6f 65 73 6e 27 74 20 73 |e name doesn't s| 000000b0 74 61 72 74 20 77 69 74 68 20 22 21 22 2c 20 61 |tart with "!", a| 000000c0 6e 64 20 20 74 68 65 20 74 79 70 65 20 69 73 20 |nd the type is | 000000d0 26 46 46 44 2c 20 69 2e 65 2e 20 65 78 74 65 6e |&FFD, i.e. exten| 000000e0 64 65 64 20 74 79 70 65 20 26 31 46 46 44 2e 20 |ded type &1FFD. | 000000f0 41 6c 6c 20 6f 74 68 65 72 20 64 69 72 65 63 74 |All other direct| 00000100 6f 72 69 65 73 20 61 72 65 20 63 6f 6e 73 69 64 |ories are consid| 00000110 65 72 65 64 20 27 61 70 70 6c 69 63 61 74 69 6f |ered 'applicatio| 00000120 6e 73 27 20 6f 66 20 76 61 72 69 6f 75 73 20 74 |ns' of various t| 00000130 79 70 65 73 2c 20 61 6e 64 20 63 61 6e 20 6d 61 |ypes, and can ma| 00000140 6b 65 20 74 68 69 6e 67 73 20 68 61 70 70 65 6e |ke things happen| 00000150 20 77 68 65 6e 20 73 65 65 6e 20 6f 72 20 6f 70 | when seen or op| 00000160 65 6e 65 64 2e 3c 62 72 3e 0a 54 68 65 20 70 6c |ened.<br>.The pl| 00000170 61 69 6e 20 64 69 72 65 63 74 6f 72 69 65 73 20 |ain directories | 00000180 61 72 65 20 74 72 65 61 74 65 64 20 74 68 75 73 |are treated thus| 00000190 3a 0a 0a 3c 6f 6c 3e 0a 3c 6c 69 3e 57 68 65 6e |:..<ol>.<li>When| 000001a0 20 64 6f 75 62 6c 65 63 6c 69 63 6b 69 6e 67 20 | doubleclicking | 000001b0 6f 6e 20 6f 6e 65 2c 20 74 68 65 20 64 69 72 20 |on one, the dir | 000001c0 69 73 20 6f 70 65 6e 65 64 20 72 61 74 68 65 72 |is opened rather| 000001d0 20 74 68 61 6e 20 68 61 76 69 6e 67 20 74 68 65 | than having the| 000001e0 20 52 75 6e 44 69 72 20 76 61 72 69 61 62 6c 65 | RunDir variable| 000001f0 20 63 68 65 63 6b 65 64 2e 0a 3c 6c 69 3e 57 68 | checked..<li>Wh| 00000200 65 6e 20 46 69 6c 65 72 5f 52 75 6e 6e 69 6e 67 |en Filer_Running| 00000210 20 61 20 70 6c 61 69 6e 20 64 69 72 2c 20 74 68 | a plain dir, th| 00000220 65 20 73 61 6d 65 20 74 68 69 6e 67 20 68 61 70 |e same thing hap| 00000230 70 65 6e 73 2e 0a 3c 6c 69 3e 54 68 65 20 73 70 |pens..<li>The sp| 00000240 72 69 74 65 73 20 75 73 65 64 20 61 72 65 20 64 |rites used are d| 00000250 69 66 66 65 72 65 6e 74 2c 20 73 65 65 20 62 65 |ifferent, see be| 00000260 6c 6f 77 2e 0a 3c 2f 6f 6c 3e 0a 0a 3c 70 3e 54 |low..</ol>..<p>T| 00000270 68 69 73 20 72 6f 75 6e 64 61 62 6f 75 74 20 77 |his roundabout w| 00000280 61 79 20 6f 66 20 73 65 65 69 6e 67 20 61 70 70 |ay of seeing app| 00000290 6c 69 63 61 74 69 6f 6e 73 20 61 6e 64 20 64 69 |lications and di| 000002a0 72 65 63 74 6f 72 69 65 73 20 63 6f 75 6c 64 20 |rectories could | 000002b0 68 61 76 65 20 62 65 65 6e 20 64 65 66 69 6e 65 |have been define| 000002c0 64 20 69 6e 20 73 65 76 65 72 61 6c 20 6d 6f 72 |d in several mor| 000002d0 65 20 6f 62 76 69 6f 75 73 20 77 61 79 73 2e 20 |e obvious ways. | 000002e0 54 68 65 20 6d 61 69 6e 20 70 72 6f 62 6c 65 6d |The main problem| 000002f0 20 77 69 74 68 20 74 68 65 20 6e 69 63 65 72 20 | with the nicer | 00000300 64 65 66 69 6e 69 74 69 6f 6e 73 20 69 73 20 72 |definitions is r| 00000310 65 61 64 2d 6f 6e 6c 79 20 64 65 76 69 63 65 73 |ead-only devices| 00000320 20 6c 69 6b 65 20 43 44 2d 52 4f 4d 73 2e 20 54 | like CD-ROMs. T| 00000330 68 65 20 64 69 72 65 63 74 6f 72 69 65 73 20 68 |he directories h| 00000340 65 72 65 20 63 61 6e 27 74 20 62 65 20 6d 6f 64 |ere can't be mod| 00000350 69 66 69 65 64 2c 20 73 6f 20 74 68 65 79 20 61 |ified, so they a| 00000360 6c 6c 20 68 61 76 65 20 74 68 65 20 73 61 6d 65 |ll have the same| 00000370 20 74 79 70 65 20 28 26 46 46 44 29 2e 20 41 73 | type (&FFD). As| 00000380 20 61 20 72 65 73 75 6c 74 20 6f 66 20 74 68 69 | a result of thi| 00000390 73 2c 20 74 79 70 65 20 26 46 46 44 20 68 61 73 |s, type &FFD has| 000003a0 20 74 6f 20 62 65 20 74 72 65 61 74 65 64 20 61 | to be treated a| 000003b0 73 20 61 20 73 70 65 63 69 61 6c 20 63 61 73 65 |s a special case| 000003c0 2c 20 61 73 20 62 6f 74 68 20 64 69 72 65 63 74 |, as both direct| 000003d0 6f 72 69 65 73 20 61 6e 64 20 61 70 70 6c 69 63 |ories and applic| 000003e0 61 74 69 6f 6e 73 20 63 61 6e 20 68 61 76 65 20 |ations can have | 000003f0 74 68 69 73 20 74 79 70 65 2e 0a 3c 70 3e 52 65 |this type..<p>Re| 00000400 73 6f 75 72 63 65 73 3a 20 69 73 20 61 20 77 6f |sources: is a wo| 00000410 72 73 65 20 70 72 6f 62 6c 65 6d 2c 20 62 65 63 |rse problem, bec| 00000420 61 75 73 65 20 74 68 65 20 61 70 70 73 20 61 6e |ause the apps an| 00000430 64 20 64 69 72 65 63 74 6f 72 69 65 73 20 68 61 |d directories ha| 00000440 76 65 20 76 61 72 69 6f 75 73 20 74 79 70 65 73 |ve various types| 00000450 20 61 6e 64 20 73 74 69 6c 6c 20 63 61 6e 27 74 | and still can't| 00000460 20 62 65 20 6d 6f 64 69 66 69 65 64 2e 20 53 6f | be modified. So| 00000470 20 74 68 65 20 61 63 74 69 6f 6e 20 77 68 65 6e | the action when| 00000480 20 72 75 6e 6e 69 6e 67 20 61 6e 20 61 70 70 6c | running an appl| 00000490 69 63 61 74 69 6f 6e 20 6f 66 20 74 79 70 65 20 |ication of type | 000004a0 26 32 78 78 78 20 69 73 20 74 6f 20 6c 6f 6f 6b |&2xxx is to look| 000004b0 20 66 6f 72 20 3c 63 6f 64 65 3e 41 6c 69 61 73 | for <code>Alias| 000004c0 24 40 52 75 6e 44 69 72 5f 32 78 78 78 3c 2f 63 |$@RunDir_2xxx</c| 000004d0 6f 64 65 3e 2c 20 61 6e 64 20 69 66 20 69 74 20 |ode>, and if it | 000004e0 64 6f 65 73 6e 27 74 20 65 78 69 73 74 2c 20 72 |doesn't exist, r| 000004f0 75 6e 20 3c 63 6f 64 65 3e 40 52 75 6e 44 69 72 |un <code>@RunDir| 00000500 5f 32 46 46 44 3c 2f 63 6f 64 65 3e 2e 20 54 68 |_2FFD</code>. Th| 00000510 65 20 73 61 6d 65 20 61 70 70 6c 69 65 73 20 74 |e same applies t| 00000520 6f 20 3c 63 6f 64 65 3e 41 6c 69 61 73 24 40 42 |o <code>Alias$@B| 00000530 6f 6f 74 44 69 72 5f 32 78 78 78 3c 2f 63 6f 64 |ootDir_2xxx</cod| 00000540 65 3e 2e 0a 0a 3c 70 3e 54 68 65 20 53 65 74 20 |e>...<p>The Set | 00000550 74 79 70 65 20 6d 65 6e 75 20 75 73 65 73 20 6e |type menu uses n| 00000560 6f 72 6d 61 6c 20 66 69 6c 65 20 74 79 70 65 73 |ormal file types| 00000570 20 72 61 74 68 65 72 20 74 68 61 6e 20 65 78 74 | rather than ext| 00000580 65 6e 64 65 64 20 6f 6e 65 73 2e 20 54 68 65 20 |ended ones. The | 00000590 72 65 61 73 6f 6e 20 66 6f 72 20 74 68 69 73 20 |reason for this | 000005a0 69 73 2c 20 74 68 61 74 20 79 6f 75 20 63 6f 75 |is, that you cou| 000005b0 6c 64 6e 27 74 20 73 65 74 74 79 70 65 20 61 6e |ldn't settype an| 000005c0 20 6f 62 6a 65 63 74 20 66 72 6f 6d 20 74 79 70 | object from typ| 000005d0 65 20 26 31 78 78 78 20 74 6f 20 74 79 70 65 20 |e &1xxx to type | 000005e0 26 32 78 78 78 2c 20 62 65 63 61 75 73 65 20 74 |&2xxx, because t| 000005f0 68 69 73 20 77 6f 75 6c 64 20 69 6e 76 6f 6c 76 |his would involv| 00000600 65 20 63 68 61 6e 67 69 6e 67 20 74 68 65 20 6e |e changing the n| 00000610 61 6d 65 20 28 72 65 6d 6f 76 69 6e 67 20 74 68 |ame (removing th| 00000620 65 20 22 21 22 29 2e 3c 62 72 3e 0a 53 6f 20 79 |e "!").<br>.So y| 00000630 6f 75 20 61 72 65 20 61 6c 6c 6f 77 65 64 20 74 |ou are allowed t| 00000640 6f 20 63 68 61 6e 67 65 20 74 68 65 20 74 79 70 |o change the typ| 00000650 65 20 77 69 74 68 69 6e 20 74 68 65 20 63 75 72 |e within the cur| 00000660 72 65 6e 74 20 67 72 6f 75 70 20 6f 66 20 65 78 |rent group of ex| 00000670 74 65 6e 64 65 64 20 74 79 70 65 73 2c 20 65 2e |tended types, e.| 00000680 67 2e 20 66 72 6f 6d 20 26 31 78 78 78 20 74 6f |g. from &1xxx to| 00000690 20 26 31 79 79 79 2e 20 59 6f 75 20 63 61 6e 20 | &1yyy. You can | 000006a0 6f 6e 6c 79 20 65 6e 74 65 72 20 3c 6b 62 64 3e |only enter <kbd>| 000006b0 79 79 79 3c 2f 6b 62 64 3e 2c 20 6e 6f 74 20 3c |yyy</kbd>, not <| 000006c0 6b 62 64 3e 31 79 79 79 3c 2f 6b 62 64 3e 2e 20 |kbd>1yyy</kbd>. | 000006d0 41 6c 73 6f 2c 20 69 66 20 79 6f 75 20 68 61 76 |Also, if you hav| 000006e0 65 20 73 65 6c 65 63 74 65 64 20 69 74 65 6d 73 |e selected items| 000006f0 20 6f 66 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e | of more than on| 00000700 65 20 67 72 6f 75 70 2c 20 73 65 74 74 79 70 65 |e group, settype| 00000710 20 69 73 20 6e 6f 74 20 61 6c 6c 6f 77 65 64 2e | is not allowed.| 00000720 20 54 68 65 20 3c 6b 62 64 3e 2a 53 65 74 54 79 | The <kbd>*SetTy| 00000730 70 65 3c 2f 6b 62 64 3e 20 63 6f 6d 6d 61 6e 64 |pe</kbd> command| 00000740 20 77 6f 72 6b 73 20 69 6e 20 74 68 65 20 73 61 | works in the sa| 00000750 6d 65 20 77 61 79 2c 20 65 78 63 65 70 74 20 79 |me way, except y| 00000760 6f 75 20 63 61 6e 20 6f 6e 6c 79 20 75 73 65 20 |ou can only use | 00000770 74 65 78 74 75 61 6c 20 66 69 6c 65 74 79 70 65 |textual filetype| 00000780 73 20 66 6f 72 20 74 79 70 65 73 20 26 30 78 78 |s for types &0xx| 00000790 78 20 61 6e 64 20 26 33 78 78 78 2e 0a 0a 3c 70 |x and &3xxx...<p| 000007a0 3e 41 73 20 6d 65 6e 74 69 6f 6e 65 64 20 61 62 |>As mentioned ab| 000007b0 6f 76 65 2c 20 64 69 72 65 63 74 6f 72 69 65 73 |ove, directories| 000007c0 20 6f 66 20 74 79 70 65 20 26 31 46 46 44 20 61 | of type &1FFD a| 000007d0 72 65 20 6a 75 73 74 20 6f 70 65 6e 65 64 2e 20 |re just opened. | 000007e0 57 68 65 6e 20 64 6f 75 62 6c 65 2d 63 6c 69 63 |When double-clic| 000007f0 6b 69 6e 67 20 6f 72 20 46 69 6c 65 72 5f 52 75 |king or Filer_Ru| 00000800 6e 6e 69 6e 67 20 61 6e 6f 74 68 65 72 20 64 69 |nning another di| 00000810 72 65 63 74 6f 72 79 2c 20 74 68 65 20 66 6f 6c |rectory, the fol| 00000820 6c 6f 77 69 6e 67 20 68 61 70 70 65 6e 73 3a 0a |lowing happens:.| 00000830 0a 3c 6f 6c 3e 0a 3c 6c 69 3e 49 66 20 53 48 49 |.<ol>.<li>If SHI| 00000840 46 54 20 69 73 20 68 65 6c 64 2c 20 69 74 20 69 |FT is held, it i| 00000850 73 20 74 72 65 61 74 65 64 20 65 78 61 63 74 6c |s treated exactl| 00000860 79 20 6c 69 6b 65 20 69 74 20 77 61 73 20 74 79 |y like it was ty| 00000870 70 65 20 26 31 46 46 44 2c 20 69 2e 65 2e 20 69 |pe &1FFD, i.e. i| 00000880 74 20 69 73 20 6f 70 65 6e 65 64 2c 20 6f 72 20 |t is opened, or | 00000890 69 66 20 69 74 20 69 73 20 61 6c 72 65 61 64 79 |if it is already| 000008a0 20 6f 70 65 6e 2c 20 69 74 20 69 73 20 63 6c 6f | open, it is clo| 000008b0 73 65 64 2e 0a 3c 6c 69 3e 49 66 20 74 68 65 20 |sed..<li>If the | 000008c0 76 61 72 69 61 62 6c 65 20 3c 63 6f 64 65 3e 41 |variable <code>A| 000008d0 6c 69 61 73 24 40 52 75 6e 44 69 72 5f 78 78 78 |lias$@RunDir_xxx| 000008e0 78 3c 2f 63 6f 64 65 3e 20 64 6f 65 73 6e 27 74 |x</code> doesn't| 000008f0 20 65 78 69 73 74 2c 20 69 74 20 69 73 20 74 72 | exist, it is tr| 00000900 65 61 74 65 64 20 61 73 20 74 79 70 65 20 26 31 |eated as type &1| 00000910 46 46 44 20 6f 72 20 26 32 46 46 44 20 64 65 70 |FFD or &2FFD dep| 00000920 65 6e 64 69 6e 67 20 6f 6e 20 74 68 65 20 6e 61 |ending on the na| 00000930 6d 65 2c 20 62 75 74 20 72 65 67 61 72 64 6c 65 |me, but regardle| 00000940 73 73 20 6f 66 20 74 68 65 20 61 63 74 75 61 6c |ss of the actual| 00000950 20 74 79 70 65 2e 0a 3c 6c 69 3e 4f 74 68 65 72 | type..<li>Other| 00000960 77 69 73 65 20 74 68 65 20 63 6f 6d 6d 61 6e 64 |wise the command| 00000970 20 22 3c 63 6f 64 65 3e 40 52 75 6e 44 69 72 5f | "<code>@RunDir_| 00000980 78 78 78 78 20 3c 2f 63 6f 64 65 3e 26 6c 74 3b |xxxx </code><| 00000990 64 69 72 65 63 74 6f 72 79 26 67 74 3b 22 20 69 |directory>" i| 000009a0 73 20 73 74 61 72 74 65 64 20 61 73 20 61 20 77 |s started as a w| 000009b0 69 6d 70 20 74 61 73 6b 2e 0a 3c 2f 6f 6c 3e 0a |imp task..</ol>.| 000009c0 0a 3c 70 3e 49 6e 20 6f 72 64 65 72 20 74 6f 20 |.<p>In order to | 000009d0 6d 61 6b 65 20 6e 6f 72 6d 61 6c 20 61 70 70 6c |make normal appl| 000009e0 69 63 61 74 69 6f 6e 73 20 77 6f 72 6b 20 61 73 |ications work as| 000009f0 20 65 78 70 65 63 74 65 64 2c 20 74 68 65 20 66 | expected, the f| 00000a00 6f 6c 6c 6f 77 69 6e 67 20 76 61 72 69 61 62 6c |ollowing variabl| 00000a10 65 20 69 73 20 64 65 66 69 6e 65 64 20 69 6e 20 |e is defined in | 00000a20 74 68 65 20 21 53 65 74 56 61 72 73 20 66 69 6c |the !SetVars fil| 00000a30 65 3a 3c 62 72 3e 0a 0a 3c 63 6f 64 65 3e 53 65 |e:<br>..<code>Se| 00000a40 74 20 41 6c 69 61 73 24 40 52 75 6e 44 69 72 5f |t Alias$@RunDir_| 00000a50 32 46 46 44 20 2f 25 30 2e 21 52 75 6e 20 25 2a |2FFD /%0.!Run %*| 00000a60 31 3c 2f 63 6f 64 65 3e 0a 3c 62 72 3e 3c 69 3e |1</code>.<br><i>| 00000a70 4e 6f 74 65 3a 20 54 68 65 20 25 27 73 20 61 72 |Note: The %'s ar| 00000a80 65 20 64 69 66 66 65 72 65 6e 74 20 62 65 63 61 |e different beca| 00000a90 75 73 65 20 69 74 27 73 20 69 6e 20 61 6e 20 6f |use it's in an o| 00000aa0 62 65 79 20 66 69 6c 65 2e 3c 2f 69 3e 0a 0a 3c |bey file.</i>..<| 00000ab0 70 3e 53 6f 20 74 68 65 20 21 52 75 6e 20 66 69 |p>So the !Run fi| 00000ac0 6c 65 20 69 73 20 65 78 65 63 75 74 65 64 20 77 |le is executed w| 00000ad0 68 65 6e 20 79 6f 75 20 64 6f 75 62 6c 65 63 6c |hen you doublecl| 00000ae0 69 63 6b 20 6f 6e 20 61 6e 79 74 68 69 6e 67 20 |ick on anything | 00000af0 74 68 61 74 20 73 74 61 72 74 73 20 77 69 74 68 |that starts with| 00000b00 20 27 21 27 2c 20 75 6e 6c 65 73 73 20 61 20 76 | '!', unless a v| 00000b10 61 72 69 61 62 6c 65 20 69 73 20 73 65 74 20 66 |ariable is set f| 00000b20 6f 72 20 74 68 61 74 20 74 79 70 65 20 6f 66 20 |or that type of | 00000b30 61 70 70 6c 69 63 61 74 69 6f 6e 2e 0a 0a 3c 70 |application...<p| 00000b40 3e 41 20 73 69 6d 69 6c 61 72 20 73 79 73 74 65 |>A similar syste| 00000b50 6d 20 69 73 20 75 73 65 64 20 66 6f 72 20 62 6f |m is used for bo| 00000b60 6f 74 69 6e 67 20 64 69 72 73 2e 20 49 66 20 74 |oting dirs. If t| 00000b70 68 65 20 74 79 70 65 20 69 73 20 26 31 46 46 44 |he type is &1FFD| 00000b80 2c 20 6e 6f 74 68 69 6e 67 0a 68 61 70 70 65 6e |, nothing.happen| 00000b90 73 2e 20 49 66 20 6e 6f 74 2c 20 74 68 65 20 76 |s. If not, the v| 00000ba0 61 72 69 61 62 6c 65 20 3c 63 6f 64 65 3e 41 6c |ariable <code>Al| 00000bb0 69 61 73 24 40 42 6f 6f 74 44 69 72 5f 78 78 78 |ias$@BootDir_xxx| 00000bc0 78 3c 2f 63 6f 64 65 3e 20 69 73 20 63 68 65 63 |x</code> is chec| 00000bd0 6b 65 64 2e 20 49 66 20 69 74 20 65 78 69 73 74 |ked. If it exist| 00000be0 73 2c 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 22 |s, the command "| 00000bf0 3c 63 6f 64 65 3e 40 42 6f 6f 74 44 69 72 5f 78 |<code>@BootDir_x| 00000c00 78 78 78 20 3c 2f 63 6f 64 65 3e 26 6c 74 3b 64 |xxx </code><d| 00000c10 69 72 65 63 74 6f 72 79 26 67 74 3b 22 20 69 73 |irectory>" is| 00000c20 20 73 74 61 72 74 65 64 20 61 73 20 61 20 74 61 | started as a ta| 00000c30 73 6b 2e 20 4f 74 68 65 72 77 69 73 65 20 6e 6f |sk. Otherwise no| 00000c40 74 68 69 6e 67 20 68 61 70 70 65 6e 73 2c 20 65 |thing happens, e| 00000c50 78 63 65 70 74 20 69 66 20 74 68 65 20 6e 61 6d |xcept if the nam| 00000c60 65 20 73 74 61 72 74 73 20 77 69 74 68 20 27 21 |e starts with '!| 00000c70 27 2c 20 69 6e 20 77 68 69 63 68 20 63 61 73 65 |', in which case| 00000c80 20 3c 63 6f 64 65 3e 40 42 6f 6f 74 44 69 72 5f | <code>@BootDir_| 00000c90 32 46 46 44 3c 2f 63 6f 64 65 3e 20 69 73 20 73 |2FFD</code> is s| 00000ca0 74 61 72 74 65 64 20 61 73 20 6d 65 6e 74 69 6f |tarted as mentio| 00000cb0 6e 65 64 20 61 62 6f 76 65 2e 0a 0a 3c 70 3e 41 |ned above...<p>A| 00000cc0 67 61 69 6e 2c 20 6e 6f 72 6d 61 6c 20 61 70 70 |gain, normal app| 00000cd0 73 20 77 6f 72 6b 20 62 65 63 61 75 73 65 20 74 |s work because t| 00000ce0 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 69 73 20 |he following is | 00000cf0 69 6e 20 74 68 65 20 21 53 65 74 56 61 72 73 20 |in the !SetVars | 00000d00 66 69 6c 65 3a 3c 62 72 3e 0a 0a 3c 63 6f 64 65 |file:<br>..<code| 00000d10 3e 53 65 74 20 41 6c 69 61 73 24 40 42 6f 6f 74 |>Set Alias$@Boot| 00000d20 44 69 72 5f 32 46 46 44 20 52 75 6e 49 66 54 68 |Dir_2FFD RunIfTh| 00000d30 65 72 65 20 25 30 2e 21 42 6f 6f 74 20 49 63 6f |ere %0.!Boot Ico| 00000d40 6e 53 70 72 69 74 65 73 20 25 30 2e 21 53 70 72 |nSprites %0.!Spr| 00000d50 69 74 65 73 3c 2f 63 6f 64 65 3e 0a 0a 3c 70 3e |ites</code>..<p>| 00000d60 3c 6b 62 64 3e 2a 52 75 6e 49 66 54 68 65 72 65 |<kbd>*RunIfThere| 00000d70 3c 2f 6b 62 64 3e 20 69 73 20 69 6d 70 6c 65 6d |</kbd> is implem| 00000d80 65 6e 74 65 64 20 62 79 20 74 68 65 20 46 69 6c |ented by the Fil| 00000d90 65 72 20 6d 6f 64 75 6c 65 2e 20 3c 6b 62 64 3e |er module. <kbd>| 00000da0 2a 49 66 54 68 65 72 65 3c 2f 6b 62 64 3e 20 69 |*IfThere</kbd> i| 00000db0 73 20 69 6e 20 74 68 65 20 52 4f 4d 2c 20 62 75 |s in the ROM, bu| 00000dc0 74 20 69 74 20 64 6f 65 73 6e 27 74 20 73 65 65 |t it doesn't see| 00000dd0 6d 20 74 6f 20 77 6f 72 6b 20 76 65 72 79 20 77 |m to work very w| 00000de0 65 6c 6c 2c 20 6d 61 79 62 65 20 62 65 63 61 75 |ell, maybe becau| 00000df0 73 65 20 69 74 20 73 74 61 72 74 73 20 69 74 73 |se it starts its| 00000e00 65 6c 66 20 61 73 20 61 6e 20 61 70 70 6c 69 63 |elf as an applic| 00000e10 61 74 69 6f 6e 20 28 69 74 27 73 20 43 29 2e 3c |ation (it's C).<| 00000e20 62 72 3e 0a 0a 0a 3c 2f 62 6f 64 79 3e 3c 2f 68 |br>...</body></h| 00000e30 74 6d 6c 3e 0a |tml>.| 00000e35