Home » Archimedes archive » Acorn User » AU 1994-10.adf » !StarInfo_StarInfo » Gladding/!HDSamples/!Run

Gladding/!HDSamples/!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 » Acorn User » AU 1994-10.adf » !StarInfo_StarInfo
Filename: Gladding/!HDSamples/!Run
Read OK:
File size: 0594 bytes
Load address: 0000
Exec address: 0000
File contents
| !Run for !HDSamples 0.86 (16 July 1994)
| By Tim Gladding, � 1994.

| Voice    : +44 0223 573133
| Fidonet  : Tim Gladding @ 2:254/27.2 (Arcade BBS)
| Internet : tgladding@arcade.demon.co.uk

SET HDSamples$Dir <Obey$Dir>
SET File$Type_1CD HDScript
SET File$Type_D3C Sample
SET Alias$@RunType_1CD Run <HDSamples$Dir>.!Run %%*0
SET Alias$@RunType_D3C Run <HDSamples$Dir>.!Run %%*0
IconSprites <HDSamples$Dir>.!Sprites
RMEnsure UtilityModule 3.10 Error Hard Drive Samples requires RISC OS 3.10 or later

RMEnsure SoundDMA       1.20 SET HDSamples$Error YES
RMEnsure SoundChannels  1.27 SET HDSamples$Error YES
RMEnsure SoundScheduler 1.17 SET HDSamples$Error YES
RMEnsure SoundDMA       1.20 RMReinit SoundDMA
RMEnsure SoundChannels  1.27 RMReInit SoundChannels
RMEnsure SoundScheduler 1.17 RMReInit SoundScheduler
IF "<HDSamples$Error>" = "YES" THEN Error Hard Drive Samples has found part of your sound system disabled.  Please Shutdown and RESET your computer and try again.
UnSet HDSamples$Error

| Set up default system variables, if currently unused.
UNSET HDSamples$AutoLoad
If "<HDSamples$Options>"="" THEN SET HDSamples$Options -~loadany -~stereo -~ignore -~quit -~nodisplay -~noiconbar -~options
If "<HDSamples$StereoDelay>"="" THEN SET HDSamples$StereoDelay 4
If "%*0" <> "" THEN SET HDSamples$AutoLoad %*0

| Allocate enough memory for the main program code...
WimpSlot -min 64k -max 64k
Run <HDSamples$Dir>.!RunImage
00000000  7c 20 21 52 75 6e 20 66  6f 72 20 21 48 44 53 61  || !Run for !HDSa|
00000010  6d 70 6c 65 73 20 30 2e  38 36 20 28 31 36 20 4a  |mples 0.86 (16 J|
00000020  75 6c 79 20 31 39 39 34  29 0a 7c 20 42 79 20 54  |uly 1994).| By T|
00000030  69 6d 20 47 6c 61 64 64  69 6e 67 2c 20 a9 20 31  |im Gladding, . 1|
00000040  39 39 34 2e 0a 0a 7c 20  56 6f 69 63 65 20 20 20  |994...| Voice   |
00000050  20 3a 20 2b 34 34 20 30  32 32 33 20 35 37 33 31  | : +44 0223 5731|
00000060  33 33 0a 7c 20 46 69 64  6f 6e 65 74 20 20 3a 20  |33.| Fidonet  : |
00000070  54 69 6d 20 47 6c 61 64  64 69 6e 67 20 40 20 32  |Tim Gladding @ 2|
00000080  3a 32 35 34 2f 32 37 2e  32 20 28 41 72 63 61 64  |:254/27.2 (Arcad|
00000090  65 20 42 42 53 29 0a 7c  20 49 6e 74 65 72 6e 65  |e BBS).| Interne|
000000a0  74 20 3a 20 74 67 6c 61  64 64 69 6e 67 40 61 72  |t : tgladding@ar|
000000b0  63 61 64 65 2e 64 65 6d  6f 6e 2e 63 6f 2e 75 6b  |cade.demon.co.uk|
000000c0  0a 0a 53 45 54 20 48 44  53 61 6d 70 6c 65 73 24  |..SET HDSamples$|
000000d0  44 69 72 20 3c 4f 62 65  79 24 44 69 72 3e 0a 53  |Dir <Obey$Dir>.S|
000000e0  45 54 20 46 69 6c 65 24  54 79 70 65 5f 31 43 44  |ET File$Type_1CD|
000000f0  20 48 44 53 63 72 69 70  74 0a 53 45 54 20 46 69  | HDScript.SET Fi|
00000100  6c 65 24 54 79 70 65 5f  44 33 43 20 53 61 6d 70  |le$Type_D3C Samp|
00000110  6c 65 0a 53 45 54 20 41  6c 69 61 73 24 40 52 75  |le.SET Alias$@Ru|
00000120  6e 54 79 70 65 5f 31 43  44 20 52 75 6e 20 3c 48  |nType_1CD Run <H|
00000130  44 53 61 6d 70 6c 65 73  24 44 69 72 3e 2e 21 52  |DSamples$Dir>.!R|
00000140  75 6e 20 25 25 2a 30 0a  53 45 54 20 41 6c 69 61  |un %%*0.SET Alia|
00000150  73 24 40 52 75 6e 54 79  70 65 5f 44 33 43 20 52  |s$@RunType_D3C R|
00000160  75 6e 20 3c 48 44 53 61  6d 70 6c 65 73 24 44 69  |un <HDSamples$Di|
00000170  72 3e 2e 21 52 75 6e 20  25 25 2a 30 0a 49 63 6f  |r>.!Run %%*0.Ico|
00000180  6e 53 70 72 69 74 65 73  20 3c 48 44 53 61 6d 70  |nSprites <HDSamp|
00000190  6c 65 73 24 44 69 72 3e  2e 21 53 70 72 69 74 65  |les$Dir>.!Sprite|
000001a0  73 0a 52 4d 45 6e 73 75  72 65 20 55 74 69 6c 69  |s.RMEnsure Utili|
000001b0  74 79 4d 6f 64 75 6c 65  20 33 2e 31 30 20 45 72  |tyModule 3.10 Er|
000001c0  72 6f 72 20 48 61 72 64  20 44 72 69 76 65 20 53  |ror Hard Drive S|
000001d0  61 6d 70 6c 65 73 20 72  65 71 75 69 72 65 73 20  |amples requires |
000001e0  52 49 53 43 20 4f 53 20  33 2e 31 30 20 6f 72 20  |RISC OS 3.10 or |
000001f0  6c 61 74 65 72 0a 0a 52  4d 45 6e 73 75 72 65 20  |later..RMEnsure |
00000200  53 6f 75 6e 64 44 4d 41  20 20 20 20 20 20 20 31  |SoundDMA       1|
00000210  2e 32 30 20 53 45 54 20  48 44 53 61 6d 70 6c 65  |.20 SET HDSample|
00000220  73 24 45 72 72 6f 72 20  59 45 53 0a 52 4d 45 6e  |s$Error YES.RMEn|
00000230  73 75 72 65 20 53 6f 75  6e 64 43 68 61 6e 6e 65  |sure SoundChanne|
00000240  6c 73 20 20 31 2e 32 37  20 53 45 54 20 48 44 53  |ls  1.27 SET HDS|
00000250  61 6d 70 6c 65 73 24 45  72 72 6f 72 20 59 45 53  |amples$Error YES|
00000260  0a 52 4d 45 6e 73 75 72  65 20 53 6f 75 6e 64 53  |.RMEnsure SoundS|
00000270  63 68 65 64 75 6c 65 72  20 31 2e 31 37 20 53 45  |cheduler 1.17 SE|
00000280  54 20 48 44 53 61 6d 70  6c 65 73 24 45 72 72 6f  |T HDSamples$Erro|
00000290  72 20 59 45 53 0a 52 4d  45 6e 73 75 72 65 20 53  |r YES.RMEnsure S|
000002a0  6f 75 6e 64 44 4d 41 20  20 20 20 20 20 20 31 2e  |oundDMA       1.|
000002b0  32 30 20 52 4d 52 65 69  6e 69 74 20 53 6f 75 6e  |20 RMReinit Soun|
000002c0  64 44 4d 41 0a 52 4d 45  6e 73 75 72 65 20 53 6f  |dDMA.RMEnsure So|
000002d0  75 6e 64 43 68 61 6e 6e  65 6c 73 20 20 31 2e 32  |undChannels  1.2|
000002e0  37 20 52 4d 52 65 49 6e  69 74 20 53 6f 75 6e 64  |7 RMReInit Sound|
000002f0  43 68 61 6e 6e 65 6c 73  0a 52 4d 45 6e 73 75 72  |Channels.RMEnsur|
00000300  65 20 53 6f 75 6e 64 53  63 68 65 64 75 6c 65 72  |e SoundScheduler|
00000310  20 31 2e 31 37 20 52 4d  52 65 49 6e 69 74 20 53  | 1.17 RMReInit S|
00000320  6f 75 6e 64 53 63 68 65  64 75 6c 65 72 0a 49 46  |oundScheduler.IF|
00000330  20 22 3c 48 44 53 61 6d  70 6c 65 73 24 45 72 72  | "<HDSamples$Err|
00000340  6f 72 3e 22 20 3d 20 22  59 45 53 22 20 54 48 45  |or>" = "YES" THE|
00000350  4e 20 45 72 72 6f 72 20  48 61 72 64 20 44 72 69  |N Error Hard Dri|
00000360  76 65 20 53 61 6d 70 6c  65 73 20 68 61 73 20 66  |ve Samples has f|
00000370  6f 75 6e 64 20 70 61 72  74 20 6f 66 20 79 6f 75  |ound part of you|
00000380  72 20 73 6f 75 6e 64 20  73 79 73 74 65 6d 20 64  |r sound system d|
00000390  69 73 61 62 6c 65 64 2e  20 20 50 6c 65 61 73 65  |isabled.  Please|
000003a0  20 53 68 75 74 64 6f 77  6e 20 61 6e 64 20 52 45  | Shutdown and RE|
000003b0  53 45 54 20 79 6f 75 72  20 63 6f 6d 70 75 74 65  |SET your compute|
000003c0  72 20 61 6e 64 20 74 72  79 20 61 67 61 69 6e 2e  |r and try again.|
000003d0  0a 55 6e 53 65 74 20 48  44 53 61 6d 70 6c 65 73  |.UnSet HDSamples|
000003e0  24 45 72 72 6f 72 0a 0a  7c 20 53 65 74 20 75 70  |$Error..| Set up|
000003f0  20 64 65 66 61 75 6c 74  20 73 79 73 74 65 6d 20  | default system |
00000400  76 61 72 69 61 62 6c 65  73 2c 20 69 66 20 63 75  |variables, if cu|
00000410  72 72 65 6e 74 6c 79 20  75 6e 75 73 65 64 2e 0a  |rrently unused..|
00000420  55 4e 53 45 54 20 48 44  53 61 6d 70 6c 65 73 24  |UNSET HDSamples$|
00000430  41 75 74 6f 4c 6f 61 64  0a 49 66 20 22 3c 48 44  |AutoLoad.If "<HD|
00000440  53 61 6d 70 6c 65 73 24  4f 70 74 69 6f 6e 73 3e  |Samples$Options>|
00000450  22 3d 22 22 20 54 48 45  4e 20 53 45 54 20 48 44  |"="" THEN SET HD|
00000460  53 61 6d 70 6c 65 73 24  4f 70 74 69 6f 6e 73 20  |Samples$Options |
00000470  2d 7e 6c 6f 61 64 61 6e  79 20 2d 7e 73 74 65 72  |-~loadany -~ster|
00000480  65 6f 20 2d 7e 69 67 6e  6f 72 65 20 2d 7e 71 75  |eo -~ignore -~qu|
00000490  69 74 20 2d 7e 6e 6f 64  69 73 70 6c 61 79 20 2d  |it -~nodisplay -|
000004a0  7e 6e 6f 69 63 6f 6e 62  61 72 20 2d 7e 6f 70 74  |~noiconbar -~opt|
000004b0  69 6f 6e 73 0a 49 66 20  22 3c 48 44 53 61 6d 70  |ions.If "<HDSamp|
000004c0  6c 65 73 24 53 74 65 72  65 6f 44 65 6c 61 79 3e  |les$StereoDelay>|
000004d0  22 3d 22 22 20 54 48 45  4e 20 53 45 54 20 48 44  |"="" THEN SET HD|
000004e0  53 61 6d 70 6c 65 73 24  53 74 65 72 65 6f 44 65  |Samples$StereoDe|
000004f0  6c 61 79 20 34 0a 49 66  20 22 25 2a 30 22 20 3c  |lay 4.If "%*0" <|
00000500  3e 20 22 22 20 54 48 45  4e 20 53 45 54 20 48 44  |> "" THEN SET HD|
00000510  53 61 6d 70 6c 65 73 24  41 75 74 6f 4c 6f 61 64  |Samples$AutoLoad|
00000520  20 25 2a 30 0a 0a 7c 20  41 6c 6c 6f 63 61 74 65  | %*0..| Allocate|
00000530  20 65 6e 6f 75 67 68 20  6d 65 6d 6f 72 79 20 66  | enough memory f|
00000540  6f 72 20 74 68 65 20 6d  61 69 6e 20 70 72 6f 67  |or the main prog|
00000550  72 61 6d 20 63 6f 64 65  2e 2e 2e 0a 57 69 6d 70  |ram code....Wimp|
00000560  53 6c 6f 74 20 2d 6d 69  6e 20 36 34 6b 20 2d 6d  |Slot -min 64k -m|
00000570  61 78 20 36 34 6b 0a 52  75 6e 20 3c 48 44 53 61  |ax 64k.Run <HDSa|
00000580  6d 70 6c 65 73 24 44 69  72 3e 2e 21 52 75 6e 49  |mples$Dir>.!RunI|
00000590  6d 61 67 65                                       |mage|
00000594