Home » Personal collection » Acorn hard disk » apps » !Scanner » !Run

!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 » Personal collection » Acorn hard disk » apps » !Scanner
Filename: !Run
Read OK:
File size: 099A bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
| > !Run

|
| Computer Concepts ScanLight-Plus v2.05
| --------------------------------------
|
| (c)1990/1991/1992 Computer Concepts Limited.
|
| All rights reserved.
|

Set Scanner$Dir <Obey$Dir>

If "<Scanner$Options>"="" Then Set Scanner$Options -outputs 16 -sampling 4 -originalview -originalscale 100 -alteredscale 100 -alteredangle 0 -file <Scanner$Dir>.Settings -halftone

Set Scanner$Options -outputs 16 -sampling 1 -originalview -originalscale 100 -alteredscale 100 -alteredangle 0 -file <Scanner$Dir>.Settings -halftone

IconSprites <Scanner$Dir>.!Sprites

Set File$Type_D8C Settings

Set IRQutils$ "no"
RMEnsure UtilityModule 2.01 Set IRQutils$ "yes"
If IRQutils$="yes" Then RMEnsure IRQUtils 0.12 RMLoad <Scanner$Dir>.Modules.IRQUtils
UnSet IRQutils$

RMEnsure Hourglass 2.02 RMLoad <Scanner$Dir>.Modules.Hourglass
RMEnsure SoundScheduler 1.13 RMLoad <Scanner$Dir>.Modules.Sound2
RMEnsure ColourTrans 0.52 RMLoad <Scanner$Dir>.Modules.Colours
RMEnsure ImageExtend 0.81 RMLoad <Scanner$Dir>.Modules.ImageExtnd
|
|  Look for ABI in the !System directory.  If it's not there then try to load
|  it from inside the application...
|
SetEval SysABI 0
RMEnsure ABI 2.85 SetEval SysABI -1
IF "<System$Path>"="" Then SetEval SysABI 0
If SysABI Then Run <Scanner$Dir>.FileEnsure System:Modules.ABIMod SysABI
If SysABI Then RMEnsure ABI 2.85 RMLoad System:Modules.ABIMod
If SysABI Then RMEnsure ABI 2.85 Error "The copy of ABIModule in !System is out of date. Please refer to the section titled 'Updating ABI' in the documentation supplied with the package."
RMEnsure ABI 2.85 RMLoad <Scanner$Dir>.Modules.ABIMod
RMEnsure ABI 2.85 Error "The copy of ABI in !Scanner is out of date. !Scanner may have been incorrectly installed. Please re-install !Scanner or seek technical help."
Unset SysABI
|
| Now we must install the new scanner drivers, including the SAM module.
| We must decide which podule the user had originally and load in the
| appropriate modules.
|

RMEnsure SAM 1.03 RMLoad <Scanner$Dir>.Drivers.!Sam

Set ScanSenior$  "yes"
Set ScanSenior$2 "yes"
Set ScanJunior$  "yes"
Set ScanLight$Run <Scanner$Dir>.!RunImage

RMEnsure ScanLight 0.00 Set ScanSenior$ "no"
RMEnsure ScanLight2 0.00 Set ScanSenior$2 "no"
RMEnsure ScanJunior 0.00 Set ScanJunior$ "no"

obey <Scanner$Dir>.RunInst

UnSet ScanSenior$
UnSet ScanSenior$2
UnSet ScanJunior$

WimpSlot -Min 96K

If "<Wimp$Scrap>"="" Then Set Wimp$Scrap <Scanner$Dir>.ScrapFile

Run <ScanLight$Run>
00000000  7c 20 3e 20 21 52 75 6e  0a 0a 7c 0a 7c 20 43 6f  || > !Run..|.| Co|
00000010  6d 70 75 74 65 72 20 43  6f 6e 63 65 70 74 73 20  |mputer Concepts |
00000020  53 63 61 6e 4c 69 67 68  74 2d 50 6c 75 73 20 76  |ScanLight-Plus v|
00000030  32 2e 30 35 0a 7c 20 2d  2d 2d 2d 2d 2d 2d 2d 2d  |2.05.| ---------|
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000050  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 0a 7c 0a  |-------------.|.|
00000060  7c 20 28 63 29 31 39 39  30 2f 31 39 39 31 2f 31  || (c)1990/1991/1|
00000070  39 39 32 20 43 6f 6d 70  75 74 65 72 20 43 6f 6e  |992 Computer Con|
00000080  63 65 70 74 73 20 4c 69  6d 69 74 65 64 2e 0a 7c  |cepts Limited..||
00000090  0a 7c 20 41 6c 6c 20 72  69 67 68 74 73 20 72 65  |.| All rights re|
000000a0  73 65 72 76 65 64 2e 0a  7c 0a 0a 53 65 74 20 53  |served..|..Set S|
000000b0  63 61 6e 6e 65 72 24 44  69 72 20 3c 4f 62 65 79  |canner$Dir <Obey|
000000c0  24 44 69 72 3e 0a 0a 49  66 20 22 3c 53 63 61 6e  |$Dir>..If "<Scan|
000000d0  6e 65 72 24 4f 70 74 69  6f 6e 73 3e 22 3d 22 22  |ner$Options>"=""|
000000e0  20 54 68 65 6e 20 53 65  74 20 53 63 61 6e 6e 65  | Then Set Scanne|
000000f0  72 24 4f 70 74 69 6f 6e  73 20 2d 6f 75 74 70 75  |r$Options -outpu|
00000100  74 73 20 31 36 20 2d 73  61 6d 70 6c 69 6e 67 20  |ts 16 -sampling |
00000110  34 20 2d 6f 72 69 67 69  6e 61 6c 76 69 65 77 20  |4 -originalview |
00000120  2d 6f 72 69 67 69 6e 61  6c 73 63 61 6c 65 20 31  |-originalscale 1|
00000130  30 30 20 2d 61 6c 74 65  72 65 64 73 63 61 6c 65  |00 -alteredscale|
00000140  20 31 30 30 20 2d 61 6c  74 65 72 65 64 61 6e 67  | 100 -alteredang|
00000150  6c 65 20 30 20 2d 66 69  6c 65 20 3c 53 63 61 6e  |le 0 -file <Scan|
00000160  6e 65 72 24 44 69 72 3e  2e 53 65 74 74 69 6e 67  |ner$Dir>.Setting|
00000170  73 20 2d 68 61 6c 66 74  6f 6e 65 0a 0a 53 65 74  |s -halftone..Set|
00000180  20 53 63 61 6e 6e 65 72  24 4f 70 74 69 6f 6e 73  | Scanner$Options|
00000190  20 2d 6f 75 74 70 75 74  73 20 31 36 20 2d 73 61  | -outputs 16 -sa|
000001a0  6d 70 6c 69 6e 67 20 31  20 2d 6f 72 69 67 69 6e  |mpling 1 -origin|
000001b0  61 6c 76 69 65 77 20 2d  6f 72 69 67 69 6e 61 6c  |alview -original|
000001c0  73 63 61 6c 65 20 31 30  30 20 2d 61 6c 74 65 72  |scale 100 -alter|
000001d0  65 64 73 63 61 6c 65 20  31 30 30 20 2d 61 6c 74  |edscale 100 -alt|
000001e0  65 72 65 64 61 6e 67 6c  65 20 30 20 2d 66 69 6c  |eredangle 0 -fil|
000001f0  65 20 3c 53 63 61 6e 6e  65 72 24 44 69 72 3e 2e  |e <Scanner$Dir>.|
00000200  53 65 74 74 69 6e 67 73  20 2d 68 61 6c 66 74 6f  |Settings -halfto|
00000210  6e 65 0a 0a 49 63 6f 6e  53 70 72 69 74 65 73 20  |ne..IconSprites |
00000220  3c 53 63 61 6e 6e 65 72  24 44 69 72 3e 2e 21 53  |<Scanner$Dir>.!S|
00000230  70 72 69 74 65 73 0a 0a  53 65 74 20 46 69 6c 65  |prites..Set File|
00000240  24 54 79 70 65 5f 44 38  43 20 53 65 74 74 69 6e  |$Type_D8C Settin|
00000250  67 73 0a 0a 53 65 74 20  49 52 51 75 74 69 6c 73  |gs..Set IRQutils|
00000260  24 20 22 6e 6f 22 0a 52  4d 45 6e 73 75 72 65 20  |$ "no".RMEnsure |
00000270  55 74 69 6c 69 74 79 4d  6f 64 75 6c 65 20 32 2e  |UtilityModule 2.|
00000280  30 31 20 53 65 74 20 49  52 51 75 74 69 6c 73 24  |01 Set IRQutils$|
00000290  20 22 79 65 73 22 0a 49  66 20 49 52 51 75 74 69  | "yes".If IRQuti|
000002a0  6c 73 24 3d 22 79 65 73  22 20 54 68 65 6e 20 52  |ls$="yes" Then R|
000002b0  4d 45 6e 73 75 72 65 20  49 52 51 55 74 69 6c 73  |MEnsure IRQUtils|
000002c0  20 30 2e 31 32 20 52 4d  4c 6f 61 64 20 3c 53 63  | 0.12 RMLoad <Sc|
000002d0  61 6e 6e 65 72 24 44 69  72 3e 2e 4d 6f 64 75 6c  |anner$Dir>.Modul|
000002e0  65 73 2e 49 52 51 55 74  69 6c 73 0a 55 6e 53 65  |es.IRQUtils.UnSe|
000002f0  74 20 49 52 51 75 74 69  6c 73 24 0a 0a 52 4d 45  |t IRQutils$..RME|
00000300  6e 73 75 72 65 20 48 6f  75 72 67 6c 61 73 73 20  |nsure Hourglass |
00000310  32 2e 30 32 20 52 4d 4c  6f 61 64 20 3c 53 63 61  |2.02 RMLoad <Sca|
00000320  6e 6e 65 72 24 44 69 72  3e 2e 4d 6f 64 75 6c 65  |nner$Dir>.Module|
00000330  73 2e 48 6f 75 72 67 6c  61 73 73 0a 52 4d 45 6e  |s.Hourglass.RMEn|
00000340  73 75 72 65 20 53 6f 75  6e 64 53 63 68 65 64 75  |sure SoundSchedu|
00000350  6c 65 72 20 31 2e 31 33  20 52 4d 4c 6f 61 64 20  |ler 1.13 RMLoad |
00000360  3c 53 63 61 6e 6e 65 72  24 44 69 72 3e 2e 4d 6f  |<Scanner$Dir>.Mo|
00000370  64 75 6c 65 73 2e 53 6f  75 6e 64 32 0a 52 4d 45  |dules.Sound2.RME|
00000380  6e 73 75 72 65 20 43 6f  6c 6f 75 72 54 72 61 6e  |nsure ColourTran|
00000390  73 20 30 2e 35 32 20 52  4d 4c 6f 61 64 20 3c 53  |s 0.52 RMLoad <S|
000003a0  63 61 6e 6e 65 72 24 44  69 72 3e 2e 4d 6f 64 75  |canner$Dir>.Modu|
000003b0  6c 65 73 2e 43 6f 6c 6f  75 72 73 0a 52 4d 45 6e  |les.Colours.RMEn|
000003c0  73 75 72 65 20 49 6d 61  67 65 45 78 74 65 6e 64  |sure ImageExtend|
000003d0  20 30 2e 38 31 20 52 4d  4c 6f 61 64 20 3c 53 63  | 0.81 RMLoad <Sc|
000003e0  61 6e 6e 65 72 24 44 69  72 3e 2e 4d 6f 64 75 6c  |anner$Dir>.Modul|
000003f0  65 73 2e 49 6d 61 67 65  45 78 74 6e 64 0a 7c 0a  |es.ImageExtnd.|.|
00000400  7c 20 20 4c 6f 6f 6b 20  66 6f 72 20 41 42 49 20  ||  Look for ABI |
00000410  69 6e 20 74 68 65 20 21  53 79 73 74 65 6d 20 64  |in the !System d|
00000420  69 72 65 63 74 6f 72 79  2e 20 20 49 66 20 69 74  |irectory.  If it|
00000430  27 73 20 6e 6f 74 20 74  68 65 72 65 20 74 68 65  |'s not there the|
00000440  6e 20 74 72 79 20 74 6f  20 6c 6f 61 64 0a 7c 20  |n try to load.| |
00000450  20 69 74 20 66 72 6f 6d  20 69 6e 73 69 64 65 20  | it from inside |
00000460  74 68 65 20 61 70 70 6c  69 63 61 74 69 6f 6e 2e  |the application.|
00000470  2e 2e 0a 7c 0a 53 65 74  45 76 61 6c 20 53 79 73  |...|.SetEval Sys|
00000480  41 42 49 20 30 0a 52 4d  45 6e 73 75 72 65 20 41  |ABI 0.RMEnsure A|
00000490  42 49 20 32 2e 38 35 20  53 65 74 45 76 61 6c 20  |BI 2.85 SetEval |
000004a0  53 79 73 41 42 49 20 2d  31 0a 49 46 20 22 3c 53  |SysABI -1.IF "<S|
000004b0  79 73 74 65 6d 24 50 61  74 68 3e 22 3d 22 22 20  |ystem$Path>"="" |
000004c0  54 68 65 6e 20 53 65 74  45 76 61 6c 20 53 79 73  |Then SetEval Sys|
000004d0  41 42 49 20 30 0a 49 66  20 53 79 73 41 42 49 20  |ABI 0.If SysABI |
000004e0  54 68 65 6e 20 52 75 6e  20 3c 53 63 61 6e 6e 65  |Then Run <Scanne|
000004f0  72 24 44 69 72 3e 2e 46  69 6c 65 45 6e 73 75 72  |r$Dir>.FileEnsur|
00000500  65 20 53 79 73 74 65 6d  3a 4d 6f 64 75 6c 65 73  |e System:Modules|
00000510  2e 41 42 49 4d 6f 64 20  53 79 73 41 42 49 0a 49  |.ABIMod SysABI.I|
00000520  66 20 53 79 73 41 42 49  20 54 68 65 6e 20 52 4d  |f SysABI Then RM|
00000530  45 6e 73 75 72 65 20 41  42 49 20 32 2e 38 35 20  |Ensure ABI 2.85 |
00000540  52 4d 4c 6f 61 64 20 53  79 73 74 65 6d 3a 4d 6f  |RMLoad System:Mo|
00000550  64 75 6c 65 73 2e 41 42  49 4d 6f 64 0a 49 66 20  |dules.ABIMod.If |
00000560  53 79 73 41 42 49 20 54  68 65 6e 20 52 4d 45 6e  |SysABI Then RMEn|
00000570  73 75 72 65 20 41 42 49  20 32 2e 38 35 20 45 72  |sure ABI 2.85 Er|
00000580  72 6f 72 20 22 54 68 65  20 63 6f 70 79 20 6f 66  |ror "The copy of|
00000590  20 41 42 49 4d 6f 64 75  6c 65 20 69 6e 20 21 53  | ABIModule in !S|
000005a0  79 73 74 65 6d 20 69 73  20 6f 75 74 20 6f 66 20  |ystem is out of |
000005b0  64 61 74 65 2e 20 50 6c  65 61 73 65 20 72 65 66  |date. Please ref|
000005c0  65 72 20 74 6f 20 74 68  65 20 73 65 63 74 69 6f  |er to the sectio|
000005d0  6e 20 74 69 74 6c 65 64  20 27 55 70 64 61 74 69  |n titled 'Updati|
000005e0  6e 67 20 41 42 49 27 20  69 6e 20 74 68 65 20 64  |ng ABI' in the d|
000005f0  6f 63 75 6d 65 6e 74 61  74 69 6f 6e 20 73 75 70  |ocumentation sup|
00000600  70 6c 69 65 64 20 77 69  74 68 20 74 68 65 20 70  |plied with the p|
00000610  61 63 6b 61 67 65 2e 22  0a 52 4d 45 6e 73 75 72  |ackage.".RMEnsur|
00000620  65 20 41 42 49 20 32 2e  38 35 20 52 4d 4c 6f 61  |e ABI 2.85 RMLoa|
00000630  64 20 3c 53 63 61 6e 6e  65 72 24 44 69 72 3e 2e  |d <Scanner$Dir>.|
00000640  4d 6f 64 75 6c 65 73 2e  41 42 49 4d 6f 64 0a 52  |Modules.ABIMod.R|
00000650  4d 45 6e 73 75 72 65 20  41 42 49 20 32 2e 38 35  |MEnsure ABI 2.85|
00000660  20 45 72 72 6f 72 20 22  54 68 65 20 63 6f 70 79  | Error "The copy|
00000670  20 6f 66 20 41 42 49 20  69 6e 20 21 53 63 61 6e  | of ABI in !Scan|
00000680  6e 65 72 20 69 73 20 6f  75 74 20 6f 66 20 64 61  |ner is out of da|
00000690  74 65 2e 20 21 53 63 61  6e 6e 65 72 20 6d 61 79  |te. !Scanner may|
000006a0  20 68 61 76 65 20 62 65  65 6e 20 69 6e 63 6f 72  | have been incor|
000006b0  72 65 63 74 6c 79 20 69  6e 73 74 61 6c 6c 65 64  |rectly installed|
000006c0  2e 20 50 6c 65 61 73 65  20 72 65 2d 69 6e 73 74  |. Please re-inst|
000006d0  61 6c 6c 20 21 53 63 61  6e 6e 65 72 20 6f 72 20  |all !Scanner or |
000006e0  73 65 65 6b 20 74 65 63  68 6e 69 63 61 6c 20 68  |seek technical h|
000006f0  65 6c 70 2e 22 0a 55 6e  73 65 74 20 53 79 73 41  |elp.".Unset SysA|
00000700  42 49 0a 7c 0a 7c 20 4e  6f 77 20 77 65 20 6d 75  |BI.|.| Now we mu|
00000710  73 74 20 69 6e 73 74 61  6c 6c 20 74 68 65 20 6e  |st install the n|
00000720  65 77 20 73 63 61 6e 6e  65 72 20 64 72 69 76 65  |ew scanner drive|
00000730  72 73 2c 20 69 6e 63 6c  75 64 69 6e 67 20 74 68  |rs, including th|
00000740  65 20 53 41 4d 20 6d 6f  64 75 6c 65 2e 0a 7c 20  |e SAM module..| |
00000750  57 65 20 6d 75 73 74 20  64 65 63 69 64 65 20 77  |We must decide w|
00000760  68 69 63 68 20 70 6f 64  75 6c 65 20 74 68 65 20  |hich podule the |
00000770  75 73 65 72 20 68 61 64  20 6f 72 69 67 69 6e 61  |user had origina|
00000780  6c 6c 79 20 61 6e 64 20  6c 6f 61 64 20 69 6e 20  |lly and load in |
00000790  74 68 65 0a 7c 20 61 70  70 72 6f 70 72 69 61 74  |the.| appropriat|
000007a0  65 20 6d 6f 64 75 6c 65  73 2e 0a 7c 0a 0a 52 4d  |e modules..|..RM|
000007b0  45 6e 73 75 72 65 20 53  41 4d 20 31 2e 30 33 20  |Ensure SAM 1.03 |
000007c0  52 4d 4c 6f 61 64 20 3c  53 63 61 6e 6e 65 72 24  |RMLoad <Scanner$|
000007d0  44 69 72 3e 2e 44 72 69  76 65 72 73 2e 21 53 61  |Dir>.Drivers.!Sa|
000007e0  6d 0a 0a 53 65 74 20 53  63 61 6e 53 65 6e 69 6f  |m..Set ScanSenio|
000007f0  72 24 20 20 22 79 65 73  22 0a 53 65 74 20 53 63  |r$  "yes".Set Sc|
00000800  61 6e 53 65 6e 69 6f 72  24 32 20 22 79 65 73 22  |anSenior$2 "yes"|
00000810  0a 53 65 74 20 53 63 61  6e 4a 75 6e 69 6f 72 24  |.Set ScanJunior$|
00000820  20 20 22 79 65 73 22 0a  53 65 74 20 53 63 61 6e  |  "yes".Set Scan|
00000830  4c 69 67 68 74 24 52 75  6e 20 3c 53 63 61 6e 6e  |Light$Run <Scann|
00000840  65 72 24 44 69 72 3e 2e  21 52 75 6e 49 6d 61 67  |er$Dir>.!RunImag|
00000850  65 0a 0a 52 4d 45 6e 73  75 72 65 20 53 63 61 6e  |e..RMEnsure Scan|
00000860  4c 69 67 68 74 20 30 2e  30 30 20 53 65 74 20 53  |Light 0.00 Set S|
00000870  63 61 6e 53 65 6e 69 6f  72 24 20 22 6e 6f 22 0a  |canSenior$ "no".|
00000880  52 4d 45 6e 73 75 72 65  20 53 63 61 6e 4c 69 67  |RMEnsure ScanLig|
00000890  68 74 32 20 30 2e 30 30  20 53 65 74 20 53 63 61  |ht2 0.00 Set Sca|
000008a0  6e 53 65 6e 69 6f 72 24  32 20 22 6e 6f 22 0a 52  |nSenior$2 "no".R|
000008b0  4d 45 6e 73 75 72 65 20  53 63 61 6e 4a 75 6e 69  |MEnsure ScanJuni|
000008c0  6f 72 20 30 2e 30 30 20  53 65 74 20 53 63 61 6e  |or 0.00 Set Scan|
000008d0  4a 75 6e 69 6f 72 24 20  22 6e 6f 22 0a 0a 6f 62  |Junior$ "no"..ob|
000008e0  65 79 20 3c 53 63 61 6e  6e 65 72 24 44 69 72 3e  |ey <Scanner$Dir>|
000008f0  2e 52 75 6e 49 6e 73 74  0a 0a 55 6e 53 65 74 20  |.RunInst..UnSet |
00000900  53 63 61 6e 53 65 6e 69  6f 72 24 0a 55 6e 53 65  |ScanSenior$.UnSe|
00000910  74 20 53 63 61 6e 53 65  6e 69 6f 72 24 32 0a 55  |t ScanSenior$2.U|
00000920  6e 53 65 74 20 53 63 61  6e 4a 75 6e 69 6f 72 24  |nSet ScanJunior$|
00000930  0a 0a 57 69 6d 70 53 6c  6f 74 20 2d 4d 69 6e 20  |..WimpSlot -Min |
00000940  39 36 4b 0a 0a 49 66 20  22 3c 57 69 6d 70 24 53  |96K..If "<Wimp$S|
00000950  63 72 61 70 3e 22 3d 22  22 20 54 68 65 6e 20 53  |crap>"="" Then S|
00000960  65 74 20 57 69 6d 70 24  53 63 72 61 70 20 3c 53  |et Wimp$Scrap <S|
00000970  63 61 6e 6e 65 72 24 44  69 72 3e 2e 53 63 72 61  |canner$Dir>.Scra|
00000980  70 46 69 6c 65 0a 0a 52  75 6e 20 3c 53 63 61 6e  |pFile..Run <Scan|
00000990  4c 69 67 68 74 24 52 75  6e 3e                    |Light$Run>|
0000099a