Home » Archimedes archive » Acorn Computing » 1994 09.adf » 9409 » DrawChange/!DrCh/!Run

DrawChange/!DrCh/!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 Computing » 1994 09.adf » 9409
Filename: DrawChange/!DrCh/!Run
Read OK:
File size: 02DA bytes
Load address: 0000
Exec address: 0000
File contents
| <Obey$Dir>.!Boot
Set DrawMaster$Dir <Obey$Dir>
If "<System$Path>" = "" Then Error 0 System resources cannot be found

Set CLib$Flag 0
RMensure SharedClibrary 3.00 Set CLib$Flag 1
RMensure SharedClibrary 0 Set CLib$Flag 0
if "<CLib$Flag>"="1" Then Error An old version of the shared C library (clib) is resident in your machine, to use this application plese get a new one.
UnSet CLib$Flag
RMensure SharedClibrary 3.00 RMload system:modules.clib
RMensure SharedClibrary 3.00 Error You need at least version 3.00 of the shared C library

RMensure DrawFile 1.01 RMload <DrawMaster$Dir>.DrawFile

WimpSlot -min 160K -max 160K
| WimpSlot -min 256K -max 256K
Set Alias$Start Run <DrawMaster$Dir>.!RunImage %*0
Start
Unset Alias$Start
00000000  7c 20 3c 4f 62 65 79 24  44 69 72 3e 2e 21 42 6f  || <Obey$Dir>.!Bo|
00000010  6f 74 0a 53 65 74 20 44  72 61 77 4d 61 73 74 65  |ot.Set DrawMaste|
00000020  72 24 44 69 72 20 3c 4f  62 65 79 24 44 69 72 3e  |r$Dir <Obey$Dir>|
00000030  0a 49 66 20 22 3c 53 79  73 74 65 6d 24 50 61 74  |.If "<System$Pat|
00000040  68 3e 22 20 3d 20 22 22  20 54 68 65 6e 20 45 72  |h>" = "" Then Er|
00000050  72 6f 72 20 30 20 53 79  73 74 65 6d 20 72 65 73  |ror 0 System res|
00000060  6f 75 72 63 65 73 20 63  61 6e 6e 6f 74 20 62 65  |ources cannot be|
00000070  20 66 6f 75 6e 64 0a 0a  53 65 74 20 43 4c 69 62  | found..Set CLib|
00000080  24 46 6c 61 67 20 30 0a  52 4d 65 6e 73 75 72 65  |$Flag 0.RMensure|
00000090  20 53 68 61 72 65 64 43  6c 69 62 72 61 72 79 20  | SharedClibrary |
000000a0  33 2e 30 30 20 53 65 74  20 43 4c 69 62 24 46 6c  |3.00 Set CLib$Fl|
000000b0  61 67 20 31 0a 52 4d 65  6e 73 75 72 65 20 53 68  |ag 1.RMensure Sh|
000000c0  61 72 65 64 43 6c 69 62  72 61 72 79 20 30 20 53  |aredClibrary 0 S|
000000d0  65 74 20 43 4c 69 62 24  46 6c 61 67 20 30 0a 69  |et CLib$Flag 0.i|
000000e0  66 20 22 3c 43 4c 69 62  24 46 6c 61 67 3e 22 3d  |f "<CLib$Flag>"=|
000000f0  22 31 22 20 54 68 65 6e  20 45 72 72 6f 72 20 41  |"1" Then Error A|
00000100  6e 20 6f 6c 64 20 76 65  72 73 69 6f 6e 20 6f 66  |n old version of|
00000110  20 74 68 65 20 73 68 61  72 65 64 20 43 20 6c 69  | the shared C li|
00000120  62 72 61 72 79 20 28 63  6c 69 62 29 20 69 73 20  |brary (clib) is |
00000130  72 65 73 69 64 65 6e 74  20 69 6e 20 79 6f 75 72  |resident in your|
00000140  20 6d 61 63 68 69 6e 65  2c 20 74 6f 20 75 73 65  | machine, to use|
00000150  20 74 68 69 73 20 61 70  70 6c 69 63 61 74 69 6f  | this applicatio|
00000160  6e 20 70 6c 65 73 65 20  67 65 74 20 61 20 6e 65  |n plese get a ne|
00000170  77 20 6f 6e 65 2e 0a 55  6e 53 65 74 20 43 4c 69  |w one..UnSet CLi|
00000180  62 24 46 6c 61 67 0a 52  4d 65 6e 73 75 72 65 20  |b$Flag.RMensure |
00000190  53 68 61 72 65 64 43 6c  69 62 72 61 72 79 20 33  |SharedClibrary 3|
000001a0  2e 30 30 20 52 4d 6c 6f  61 64 20 73 79 73 74 65  |.00 RMload syste|
000001b0  6d 3a 6d 6f 64 75 6c 65  73 2e 63 6c 69 62 0a 52  |m:modules.clib.R|
000001c0  4d 65 6e 73 75 72 65 20  53 68 61 72 65 64 43 6c  |Mensure SharedCl|
000001d0  69 62 72 61 72 79 20 33  2e 30 30 20 45 72 72 6f  |ibrary 3.00 Erro|
000001e0  72 20 59 6f 75 20 6e 65  65 64 20 61 74 20 6c 65  |r You need at le|
000001f0  61 73 74 20 76 65 72 73  69 6f 6e 20 33 2e 30 30  |ast version 3.00|
00000200  20 6f 66 20 74 68 65 20  73 68 61 72 65 64 20 43  | of the shared C|
00000210  20 6c 69 62 72 61 72 79  0a 0a 52 4d 65 6e 73 75  | library..RMensu|
00000220  72 65 20 44 72 61 77 46  69 6c 65 20 31 2e 30 31  |re DrawFile 1.01|
00000230  20 52 4d 6c 6f 61 64 20  3c 44 72 61 77 4d 61 73  | RMload <DrawMas|
00000240  74 65 72 24 44 69 72 3e  2e 44 72 61 77 46 69 6c  |ter$Dir>.DrawFil|
00000250  65 0a 0a 57 69 6d 70 53  6c 6f 74 20 2d 6d 69 6e  |e..WimpSlot -min|
00000260  20 31 36 30 4b 20 2d 6d  61 78 20 31 36 30 4b 0a  | 160K -max 160K.|
00000270  7c 20 57 69 6d 70 53 6c  6f 74 20 2d 6d 69 6e 20  || WimpSlot -min |
00000280  32 35 36 4b 20 2d 6d 61  78 20 32 35 36 4b 0a 53  |256K -max 256K.S|
00000290  65 74 20 41 6c 69 61 73  24 53 74 61 72 74 20 52  |et Alias$Start R|
000002a0  75 6e 20 3c 44 72 61 77  4d 61 73 74 65 72 24 44  |un <DrawMaster$D|
000002b0  69 72 3e 2e 21 52 75 6e  49 6d 61 67 65 20 25 2a  |ir>.!RunImage %*|
000002c0  30 0a 53 74 61 72 74 0a  55 6e 73 65 74 20 41 6c  |0.Start.Unset Al|
000002d0  69 61 73 24 53 74 61 72  74 0a                    |ias$Start.|
000002da