Home » Archimedes archive » Archimedes World » AW-1996-02-Disc2.adf » !DazDemo_Dazzle » !DazDemo/!Run

!DazDemo/!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-1996-02-Disc2.adf » !DazDemo_Dazzle
Filename: !DazDemo/!Run
Read OK:
File size: 051F bytes
Load address: 0000
Exec address: 0000
File contents
| run file for Dazzle
|

RMEnsure SharedCLibrary 3.50 If "<System$Path>" <> "" then RMLoad System:Modules.Clib
RMEnsure SharedCLibrary 3.50 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure SharedCLibrary 3.50 Error You need Clib 3.50 or later

RMEnsure ColourTrans 0.52 If "<System$Path>" <> "" then RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.52 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure ColourTrans 0.52 Error 0 You need ColourTrans 0.52 or later

RMEnsure FPEmulator 2.70 If "<System$Path>" <> "" then RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.70 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure FPEmulator 2.70 Error You need FPEmulator 2.70 or later

RMEnsure BorderUtils 0 RMEnsure WindowManager 3.17 RMLoad <Obey$Dir>.BorderUtil

IconSprites <Obey$Dir>.!Sprites  
Set Alias$@RunType_FF9 Run <Obey$Dir>.!Run %%*0  
   
Set Dazzle$Dir <Obey$Dir>
Set Dazzle$Palettes <Obey$Dir>.Palettes
Set Dazzle$Choices <Obey$Dir>.Choices
Set Dazzle$Files <Obey$Dir>.^.Pictures


| we do a double WimpSlot because the C libraries claim 64k as soon as we are loaded
WimpSlot -min 364k 
WimpSlot -min 300k -max 300k
Run <Dazzle$Dir>.!RunImage %*0
00000000  7c 20 72 75 6e 20 66 69  6c 65 20 66 6f 72 20 44  || run file for D|
00000010  61 7a 7a 6c 65 0a 7c 0a  0a 52 4d 45 6e 73 75 72  |azzle.|..RMEnsur|
00000020  65 20 53 68 61 72 65 64  43 4c 69 62 72 61 72 79  |e SharedCLibrary|
00000030  20 33 2e 35 30 20 49 66  20 22 3c 53 79 73 74 65  | 3.50 If "<Syste|
00000040  6d 24 50 61 74 68 3e 22  20 3c 3e 20 22 22 20 74  |m$Path>" <> "" t|
00000050  68 65 6e 20 52 4d 4c 6f  61 64 20 53 79 73 74 65  |hen RMLoad Syste|
00000060  6d 3a 4d 6f 64 75 6c 65  73 2e 43 6c 69 62 0a 52  |m:Modules.Clib.R|
00000070  4d 45 6e 73 75 72 65 20  53 68 61 72 65 64 43 4c  |MEnsure SharedCL|
00000080  69 62 72 61 72 79 20 33  2e 35 30 20 49 66 20 22  |ibrary 3.50 If "|
00000090  3c 53 79 73 74 65 6d 24  50 61 74 68 3e 22 20 20  |<System$Path>"  |
000000a0  3d 20 22 22 20 74 68 65  6e 20 45 72 72 6f 72 20  |= "" then Error |
000000b0  30 20 50 6c 65 61 73 65  20 6f 70 65 6e 20 61 20  |0 Please open a |
000000c0  64 69 72 65 63 74 6f 72  79 20 64 69 73 70 6c 61  |directory displa|
000000d0  79 20 63 6f 6e 74 61 69  6e 69 6e 67 20 21 53 79  |y containing !Sy|
000000e0  73 74 65 6d 0a 52 4d 45  6e 73 75 72 65 20 53 68  |stem.RMEnsure Sh|
000000f0  61 72 65 64 43 4c 69 62  72 61 72 79 20 33 2e 35  |aredCLibrary 3.5|
00000100  30 20 45 72 72 6f 72 20  59 6f 75 20 6e 65 65 64  |0 Error You need|
00000110  20 43 6c 69 62 20 33 2e  35 30 20 6f 72 20 6c 61  | Clib 3.50 or la|
00000120  74 65 72 0a 0a 52 4d 45  6e 73 75 72 65 20 43 6f  |ter..RMEnsure Co|
00000130  6c 6f 75 72 54 72 61 6e  73 20 30 2e 35 32 20 49  |lourTrans 0.52 I|
00000140  66 20 22 3c 53 79 73 74  65 6d 24 50 61 74 68 3e  |f "<System$Path>|
00000150  22 20 3c 3e 20 22 22 20  74 68 65 6e 20 52 4d 4c  |" <> "" then RML|
00000160  6f 61 64 20 53 79 73 74  65 6d 3a 4d 6f 64 75 6c  |oad System:Modul|
00000170  65 73 2e 43 6f 6c 6f 75  72 73 0a 52 4d 45 6e 73  |es.Colours.RMEns|
00000180  75 72 65 20 43 6f 6c 6f  75 72 54 72 61 6e 73 20  |ure ColourTrans |
00000190  30 2e 35 32 20 49 66 20  22 3c 53 79 73 74 65 6d  |0.52 If "<System|
000001a0  24 50 61 74 68 3e 22 20  20 3d 20 22 22 20 74 68  |$Path>"  = "" th|
000001b0  65 6e 20 45 72 72 6f 72  20 30 20 50 6c 65 61 73  |en Error 0 Pleas|
000001c0  65 20 6f 70 65 6e 20 61  20 64 69 72 65 63 74 6f  |e open a directo|
000001d0  72 79 20 64 69 73 70 6c  61 79 20 63 6f 6e 74 61  |ry display conta|
000001e0  69 6e 69 6e 67 20 21 53  79 73 74 65 6d 0a 52 4d  |ining !System.RM|
000001f0  45 6e 73 75 72 65 20 43  6f 6c 6f 75 72 54 72 61  |Ensure ColourTra|
00000200  6e 73 20 30 2e 35 32 20  45 72 72 6f 72 20 30 20  |ns 0.52 Error 0 |
00000210  59 6f 75 20 6e 65 65 64  20 43 6f 6c 6f 75 72 54  |You need ColourT|
00000220  72 61 6e 73 20 30 2e 35  32 20 6f 72 20 6c 61 74  |rans 0.52 or lat|
00000230  65 72 0a 0a 52 4d 45 6e  73 75 72 65 20 46 50 45  |er..RMEnsure FPE|
00000240  6d 75 6c 61 74 6f 72 20  32 2e 37 30 20 49 66 20  |mulator 2.70 If |
00000250  22 3c 53 79 73 74 65 6d  24 50 61 74 68 3e 22 20  |"<System$Path>" |
00000260  3c 3e 20 22 22 20 74 68  65 6e 20 52 4d 4c 6f 61  |<> "" then RMLoa|
00000270  64 20 53 79 73 74 65 6d  3a 4d 6f 64 75 6c 65 73  |d System:Modules|
00000280  2e 46 50 45 6d 75 6c 61  74 6f 72 0a 52 4d 45 6e  |.FPEmulator.RMEn|
00000290  73 75 72 65 20 46 50 45  6d 75 6c 61 74 6f 72 20  |sure FPEmulator |
000002a0  32 2e 37 30 20 49 66 20  22 3c 53 79 73 74 65 6d  |2.70 If "<System|
000002b0  24 50 61 74 68 3e 22 20  20 3d 20 22 22 20 74 68  |$Path>"  = "" th|
000002c0  65 6e 20 45 72 72 6f 72  20 30 20 50 6c 65 61 73  |en Error 0 Pleas|
000002d0  65 20 6f 70 65 6e 20 61  20 64 69 72 65 63 74 6f  |e open a directo|
000002e0  72 79 20 64 69 73 70 6c  61 79 20 63 6f 6e 74 61  |ry display conta|
000002f0  69 6e 69 6e 67 20 21 53  79 73 74 65 6d 0a 52 4d  |ining !System.RM|
00000300  45 6e 73 75 72 65 20 46  50 45 6d 75 6c 61 74 6f  |Ensure FPEmulato|
00000310  72 20 32 2e 37 30 20 45  72 72 6f 72 20 59 6f 75  |r 2.70 Error You|
00000320  20 6e 65 65 64 20 46 50  45 6d 75 6c 61 74 6f 72  | need FPEmulator|
00000330  20 32 2e 37 30 20 6f 72  20 6c 61 74 65 72 0a 0a  | 2.70 or later..|
00000340  52 4d 45 6e 73 75 72 65  20 42 6f 72 64 65 72 55  |RMEnsure BorderU|
00000350  74 69 6c 73 20 30 20 52  4d 45 6e 73 75 72 65 20  |tils 0 RMEnsure |
00000360  57 69 6e 64 6f 77 4d 61  6e 61 67 65 72 20 33 2e  |WindowManager 3.|
00000370  31 37 20 52 4d 4c 6f 61  64 20 3c 4f 62 65 79 24  |17 RMLoad <Obey$|
00000380  44 69 72 3e 2e 42 6f 72  64 65 72 55 74 69 6c 0a  |Dir>.BorderUtil.|
00000390  0a 49 63 6f 6e 53 70 72  69 74 65 73 20 3c 4f 62  |.IconSprites <Ob|
000003a0  65 79 24 44 69 72 3e 2e  21 53 70 72 69 74 65 73  |ey$Dir>.!Sprites|
000003b0  20 20 0a 53 65 74 20 41  6c 69 61 73 24 40 52 75  |  .Set Alias$@Ru|
000003c0  6e 54 79 70 65 5f 46 46  39 20 52 75 6e 20 3c 4f  |nType_FF9 Run <O|
000003d0  62 65 79 24 44 69 72 3e  2e 21 52 75 6e 20 25 25  |bey$Dir>.!Run %%|
000003e0  2a 30 20 20 0a 20 20 20  0a 53 65 74 20 44 61 7a  |*0  .   .Set Daz|
000003f0  7a 6c 65 24 44 69 72 20  3c 4f 62 65 79 24 44 69  |zle$Dir <Obey$Di|
00000400  72 3e 0a 53 65 74 20 44  61 7a 7a 6c 65 24 50 61  |r>.Set Dazzle$Pa|
00000410  6c 65 74 74 65 73 20 3c  4f 62 65 79 24 44 69 72  |lettes <Obey$Dir|
00000420  3e 2e 50 61 6c 65 74 74  65 73 0a 53 65 74 20 44  |>.Palettes.Set D|
00000430  61 7a 7a 6c 65 24 43 68  6f 69 63 65 73 20 3c 4f  |azzle$Choices <O|
00000440  62 65 79 24 44 69 72 3e  2e 43 68 6f 69 63 65 73  |bey$Dir>.Choices|
00000450  0a 53 65 74 20 44 61 7a  7a 6c 65 24 46 69 6c 65  |.Set Dazzle$File|
00000460  73 20 3c 4f 62 65 79 24  44 69 72 3e 2e 5e 2e 50  |s <Obey$Dir>.^.P|
00000470  69 63 74 75 72 65 73 0a  0a 0a 7c 20 77 65 20 64  |ictures...| we d|
00000480  6f 20 61 20 64 6f 75 62  6c 65 20 57 69 6d 70 53  |o a double WimpS|
00000490  6c 6f 74 20 62 65 63 61  75 73 65 20 74 68 65 20  |lot because the |
000004a0  43 20 6c 69 62 72 61 72  69 65 73 20 63 6c 61 69  |C libraries clai|
000004b0  6d 20 36 34 6b 20 61 73  20 73 6f 6f 6e 20 61 73  |m 64k as soon as|
000004c0  20 77 65 20 61 72 65 20  6c 6f 61 64 65 64 0a 57  | we are loaded.W|
000004d0  69 6d 70 53 6c 6f 74 20  2d 6d 69 6e 20 33 36 34  |impSlot -min 364|
000004e0  6b 20 0a 57 69 6d 70 53  6c 6f 74 20 2d 6d 69 6e  |k .WimpSlot -min|
000004f0  20 33 30 30 6b 20 2d 6d  61 78 20 33 30 30 6b 0a  | 300k -max 300k.|
00000500  52 75 6e 20 3c 44 61 7a  7a 6c 65 24 44 69 72 3e  |Run <Dazzle$Dir>|
00000510  2e 21 52 75 6e 49 6d 61  67 65 20 25 2a 30 0a     |.!RunImage %*0.|
0000051f