Home » Archimedes archive » Archimedes World » AW-1993-10.adf » AWOct93 » !AWOct93/Goodies/Disc/Example3/!DeskApp/!Help
!AWOct93/Goodies/Disc/Example3/!DeskApp/!Help
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-10.adf » AWOct93 |
Filename: | !AWOct93/Goodies/Disc/Example3/!DeskApp/!Help |
Read OK: | ✔ |
File size: | 02ED bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Program : !DeskApp Purpose : To illustrate how parameters are passed to applications Usage : Method 1: --------- Double-click the Acorn application !TinyDirs. This places a blue folder on the left-hand icon bar. Now drag !DeskApp onto this folder. The icon will change to that of !DeskApp. When a file is now dragged onto this icon its full path name is printed. Method 2: --------- Place !DeskApp in a directory from where it can be called as a *command (e.g. CSD, library, or see !Extend). Now type *!DeskApp <parameter list> Explanation : Obvious. Examine the !Run file of !DeskApp.
00000000 50 72 6f 67 72 61 6d 20 3a 20 21 44 65 73 6b 41 |Program : !DeskA| 00000010 70 70 0a 0a 50 75 72 70 6f 73 65 20 3a 20 54 6f |pp..Purpose : To| 00000020 20 69 6c 6c 75 73 74 72 61 74 65 20 68 6f 77 20 | illustrate how | 00000030 70 61 72 61 6d 65 74 65 72 73 20 61 72 65 20 70 |parameters are p| 00000040 61 73 73 65 64 20 74 6f 20 61 70 70 6c 69 63 61 |assed to applica| 00000050 74 69 6f 6e 73 0a 0a 55 73 61 67 65 20 20 20 3a |tions..Usage :| 00000060 20 4d 65 74 68 6f 64 20 31 3a 0a 20 20 20 20 20 | Method 1:. | 00000070 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 20 | ---------. | 00000080 20 20 20 20 20 20 20 20 20 44 6f 75 62 6c 65 2d | Double-| 00000090 63 6c 69 63 6b 20 74 68 65 20 41 63 6f 72 6e 20 |click the Acorn | 000000a0 61 70 70 6c 69 63 61 74 69 6f 6e 20 21 54 69 6e |application !Tin| 000000b0 79 44 69 72 73 2e 20 54 68 69 73 20 70 6c 61 63 |yDirs. This plac| 000000c0 65 73 0a 20 20 20 20 20 20 20 20 20 20 61 20 62 |es. a b| 000000d0 6c 75 65 20 66 6f 6c 64 65 72 20 6f 6e 20 74 68 |lue folder on th| 000000e0 65 20 6c 65 66 74 2d 68 61 6e 64 20 69 63 6f 6e |e left-hand icon| 000000f0 20 62 61 72 2e 0a 0a 20 20 20 20 20 20 20 20 20 | bar... | 00000100 20 4e 6f 77 20 64 72 61 67 20 21 44 65 73 6b 41 | Now drag !DeskA| 00000110 70 70 20 6f 6e 74 6f 20 74 68 69 73 20 66 6f 6c |pp onto this fol| 00000120 64 65 72 2e 20 54 68 65 20 69 63 6f 6e 20 77 69 |der. The icon wi| 00000130 6c 6c 20 63 68 61 6e 67 65 20 74 6f 0a 20 20 20 |ll change to. | 00000140 20 20 20 20 20 20 20 74 68 61 74 20 6f 66 20 21 | that of !| 00000150 44 65 73 6b 41 70 70 2e 0a 0a 20 20 20 20 20 20 |DeskApp... | 00000160 20 20 20 20 57 68 65 6e 20 61 20 66 69 6c 65 20 | When a file | 00000170 69 73 20 6e 6f 77 20 64 72 61 67 67 65 64 20 6f |is now dragged o| 00000180 6e 74 6f 20 74 68 69 73 20 69 63 6f 6e 20 69 74 |nto this icon it| 00000190 73 20 66 75 6c 6c 20 70 61 74 68 20 6e 61 6d 65 |s full path name| 000001a0 0a 20 20 20 20 20 20 20 20 20 20 69 73 20 70 72 |. is pr| 000001b0 69 6e 74 65 64 2e 0a 0a 0a 20 20 20 20 20 20 20 |inted.... | 000001c0 20 20 20 4d 65 74 68 6f 64 20 32 3a 0a 20 20 20 | Method 2:. | 000001d0 20 20 20 20 20 20 20 2d 2d 2d 2d 2d 2d 2d 2d 2d | ---------| 000001e0 0a 20 20 20 20 20 20 20 20 20 20 50 6c 61 63 65 |. Place| 000001f0 20 21 44 65 73 6b 41 70 70 20 69 6e 20 61 20 64 | !DeskApp in a d| 00000200 69 72 65 63 74 6f 72 79 20 66 72 6f 6d 20 77 68 |irectory from wh| 00000210 65 72 65 20 69 74 20 63 61 6e 20 62 65 20 63 61 |ere it can be ca| 00000220 6c 6c 65 64 0a 20 20 20 20 20 20 20 20 20 20 61 |lled. a| 00000230 73 20 61 20 2a 63 6f 6d 6d 61 6e 64 20 28 65 2e |s a *command (e.| 00000240 67 2e 20 43 53 44 2c 20 6c 69 62 72 61 72 79 2c |g. CSD, library,| 00000250 20 6f 72 20 73 65 65 20 21 45 78 74 65 6e 64 29 | or see !Extend)| 00000260 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 4e 6f 77 |... Now| 00000270 20 74 79 70 65 0a 0a 20 20 20 20 20 20 20 20 20 | type.. | 00000280 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 21 44 | *!D| 00000290 65 73 6b 41 70 70 20 3c 70 61 72 61 6d 65 74 65 |eskApp <paramete| 000002a0 72 20 6c 69 73 74 3e 0a 0a 45 78 70 6c 61 6e 61 |r list>..Explana| 000002b0 74 69 6f 6e 20 3a 20 4f 62 76 69 6f 75 73 2e 20 |tion : Obvious. | 000002c0 45 78 61 6d 69 6e 65 20 74 68 65 20 21 52 75 6e |Examine the !Run| 000002d0 20 66 69 6c 65 20 6f 66 20 21 44 65 73 6b 41 70 | file of !DeskAp| 000002e0 70 2e 0a 20 20 20 20 20 20 20 20 20 20 |p.. | 000002ed