Home » Personal collection » Acorn ADFS disks » Archimedes » Scanlight_professional.ADF » !Scanner/Install/Install
!Scanner/Install/Install
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 ADFS disks » Archimedes » Scanlight_professional.ADF |
Filename: | !Scanner/Install/Install |
Read OK: | ✔ |
File size: | 2A4B bytes |
Load address: | FFFFFB45 |
Exec address: | 1672B680 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » Scanlight_professional.ADF » !Scanner/Install/Install
- Personal collection » Acorn hard disk » apps » !Scanner » Install/Install
File contents
1REM> Install 2REM Scanlight 2.00 Install program 3REM (C) 1992 Computer Concepts Ltd 4 5winlen=&1000 6spritesize=24*1024 7DIM sprites spritesize 8DIM buffer 512 9DIM pollblk &400 10DIM windata winlen 11winind=windata+&800 12 13MaxHardware=9 14MaxScanners=20 15MaxCombs=20 16MaxIcons=20 17 18DIM HardwareName$(MaxHardware),HardwareMod$(MaxHardware) 19DIM ScannerName$(MaxScanners) 20DIM ScannerID(MaxCombs), ScannerHW(MaxCombs), ScannerFName$(MaxCombs) 21DIM Icon(MaxIcons) 22 23hw_All = 0 24hw_JuniorMatador = 1 25hw_JuniorGeneric = 2 26hw_SeniorGeneric = 3 27hw_OldFaxpack = 4 28hw_JuniorSL256III= 5 29hw_ScanLightVideo= 6 30hw_Eagle = 7 31 32SYS "OS_SpriteOp",&20A,sprites,"<Scanner$Dir>.Resources.Sprites" 33 34PROCDecodeData 35PROCGetHardwareConfiguration 36CurrentComb=0 37 38MyHimem=HIMEM 39 40 41DIM task 5 42$task="TASK" 43SYS"Wimp_Initialise",200,!task,"ScanLight Install" TO ,TaskHandle 44 45ONERROR PROCerror 46 47PROCCheckNotWriteProtected 48 49 50PROCscreenmode 51PROCCreateWindow 52 53ON ERROR PROCerror 54 55REPEAT 56 57SYS"Wimp_Poll",0,pollblk TO event 58 59CASE event OF 60 61WHEN 2 62 SYS"Wimp_OpenWindow",,pollblk 63WHEN 3 64 SYS"Wimp_CloseWindow",,pollblk 65 IF !pollblk=MainHandle THEN PROCend 66 WHEN 6:PROChandlemouse 67 WHEN 17,18:PROCmessage 68ENDCASE 69UNTIL FALSE 70 71END 72 73 74 75DEFPROCDecodeData 76LOCAL N%, SN$, ID%, N$ 77RESTORE 78 79FOR N%=0 TO MaxHardware 80 HardwareName$(N%)="" 81 HardwareMod$(N%)="" 82NEXT 83 84FOR N%=0 TO MaxScanners 85 ScannerName$(N%)="" 86NEXT 87 88FOR N%=0 TO MaxCombs 89 ScannerID(N%)=-1 90 ScannerHW(N%)=0 91NEXT 92 93 94REPEAT 95 READ ID%, SN$,N$ 96 IF ID%<>-1 THEN HardwareName$(ID%)=SN$:HardwareMod$(ID%)=FNuc(N$) 97UNTIL ID%=-1 98 99REPEAT 100 READ SN$, ID% 101 IF ID%<>-1 THEN ScannerName$(ID%)=SN$ 102UNTIL ID%=-1 103 104N%=0 105REPEAT 106 READ ScannerID(N%), ScannerHW(N%), ScannerFName$(N%) 107 N%+=1 108UNTIL ScannerID(N%-1)=-1 109 110ENDPROC 111 112 113DEFPROCGetHardwareConfiguration 114LOCAL mod%, inst%, err%, ipf$, modb%, modn%, n$, n% 115 116REM first set up the relevent bit fields 117 118REM we go through the module chain setting the appropriate bits 119 120HardwareConfig%=0 121 122mod%=0 123inst%=0 124REPEAT 125 SYS "XOS_Module",12,mod%,inst% TO err%,mod%,inst%,modb%,,ipf$ 126 IF err%=12 THEN 127 modn%=modb%+modb%!&10 128 n$=FNuc(FNzts(modn%)) 129 FOR n%=0 TO MaxHardware 130 IF HardwareMod$(n%)=n$ THEN 131 HardwareConfig%=HardwareConfig% OR (1<<n%) 132 ENDIF 133 NEXT 134 ENDIF 135UNTIL err%<>12 136 137HardwareConfig$="" 138 139FOR n%=0 TO MaxHardware 140 IF (n%<>hw_All) AND ((HardwareConfig% AND (1<<n%))<>0) THEN 141 IF HardwareConfig$="" THEN 142 HardwareConfig$=HardwareName$(n%) 143 ELSE 144 HardwareConfig$+=" & "+HardwareName$(n%) 145 ENDIF 146 ENDIF 147NEXT 148 149IF HardwareConfig$="" THEN HardwareConfig$=HardwareName$(hw_All) 150 151ENDPROC 152 153 154DEFFNzts(x%) 155LOCAL z$ 156z$="" 157WHILE ?x%>=32 158 z$=z$+CHR$(?x%) 159 x%+=1 160ENDWHILE 161=z$ 162 163DEFFNuc(x$) 164LOCAL n%,z$,t% 165z$="" 166FOR n%=1 TO LEN(x$) 167 t%=ASC(MID$(x$,n%)) 168 z$+=CHR$(t%+32*((t%>=97) AND (t%<=122))) 169NEXT 170=z$ 171 172 173DEFPROCCreateWindow 174LOCAL w,i,icon,n%,m%,e%,w%,h% 175REM First make the appropriate window record 176 177w=windata+4 178i=winind 179 180w!0 = &210 : REM visible area min x 181w!4 = &29C : REM min y 182w!8 = &520 : REM max x 183w!12 = &34C : REM max y 184w!16 = 0 : REM Scroll offset x 185w!20 = 0 : REM y 186w!24 = -1 : REM open at top 187w!28 = %10000111000000000000000000010010 : REM window flags 188w!32 = &01070207: REM colour word 1 189w!36 = &000c0103: REM oolour word 2 190w!40 = 0 : REM work area min x 191w!44 = &FFFFFC00: REM work area min y 192w!48 = &00000500: REM work area max x 193w!52 = &00000000: REM work area max y 194w!56 = &0000013D: REM title bar flags 195w!60 = &00003000: REM work area button type 196w!64 = sprites : REM sprite area 197w!68 = 0 : REM minimum width & depth 198PROCind(w+72,"ScanLight install","") 199w!84 = 2 : REM initially install & h/w text icon only 200 201icon=w+88 202 203PROCibb(icon,&23C,-&98,92*2,36*2) 204icon!16=%00010111000000010100000100011011 205PROCind(icon+20,"","Sbutton,buttonon") 206icon+=32 207Icon(0)=-1 208 209PROCibb(icon,w!40,-76,(w!8)-(w!0),56) 210icon!16=%00010111000000000000000100011001 211PROCind(icon+20,HardwareConfig$,"") 212icon+=32 213Icon(2)=-2 214 215ypos=-132 216 217m%=FALSE 218FOR n%=0 TO MaxCombs 219 IF (ScannerID(n%)<>-1) AND ((1<<ScannerHW(n%)) AND HardwareConfig%)<>0 THEN 220 PROCibb(icon,16,ypos,&220,56) 221 icon!16=%00010111000000100011000100010011-(NOT m%)*(1<<21) 222 IF NOT(m%) THEN CurrentComb=n% 223 PROCind(icon+20,ScannerName$(ScannerID(n%)),"Sradiooff,radioon") 224 e%=((w!12)-(w!4)-16)+ypos 225 IF e%<0 THEN 226 w!4+=e% 227 w!(88+4)+=e% 228 w!(88+12)+=e% 229 ENDIF 230 Icon(w!84)=n% 231 w!84+=1 232 icon+=32 233 ypos-=56 234 m%=TRUE 235 ENDIF 236NEXT 237 238OptGroupLo=2 239OptGroupHi=(w!84)-1 240 241IF NOT(m%) THEN ERROR 255,"You do not have hardware that can support ScanLight" 242 243x0=!w 244y0=w!4 245x1=w!8 246y1=w!12 247sx=w!16 248sy=w!20 249SYS"Wimp_CreateWindow",,w TO MainHandle 250!windata=MainHandle 251w%=(w!8)-(w!0) 252h%=(w!12)-(w!4) 253w!0 = ((ScreenX + w%) DIV 2)-w% 254w!8 = ((ScreenX + w%) DIV 2) 255w!4 = ((ScreenY + h%) DIV 2)-h% 256w!12 = ((ScreenY + h%) DIV 2) 257SYS"Wimp_OpenWindow",,windata 258 259ENDPROC 260 261DEFPROCind(p,t$,v$) 262p!0=i 263PROCztss(i,t$) 264i+=(3+1+LENt$) AND -4 265p!8=1+LENt$ 266IF v$="" THEN 267 p!4=-1 268ELSE 269 p!4=i 270 PROCztss(i,v$) 271 i+=(3+1+LENv$) AND -4 272ENDIF 273ENDPROC 274 275DEFPROCibb(p%,x%,y%,w%,h%) 276p%!0 =x% 277p%!4 =y% 278p%!8 =x%+w% 279p%!12=y%+h% 280ENDPROC 281 282DEFPROCztss(q%,q$) 283$q%=q$ 284q%?LENq$=0 285ENDPROC 286 287DEFPROCmessage 288LOCAL F$ 289CASE pollblk!16 OF 290WHEN 0 291 PROCend 292WHEN 2 293 F$=FNgets(pollblk+44) 294 PROCdocomp(F$) 295 pollblk!12=pollblk!8 296 pollblk!16=3 297 SYS"Wimp_SendMessage",18,pollblk,pollblk!4 298 !pollblk=SaveHandle 299 SYS"Wimp_CloseWindow",,pollblk 300WHEN 3 301 IF pollblk!20=MainHandle THEN 302 IF pollblk!24=0 THEN 303 $fbuf1=FNgets(pollblk+44) 304 ftype1=pollblk!40 305 ELSE 306 IF pollblk!24=1 THEN 307 $fbuf2=FNgets(pollblk+44) 308 ftype2=pollblk!40 309 ENDIF 310 ENDIF 311 pollblk!12=pollblk!8 312 pollblk!16=4 313 SYS"Wimp_SendMessage",18,pollblk,pollblk!4 314 !pollblk=MainHandle 315 pollblk!4=3 316 pollblk!8=0 317 pollblk!12=0 318 SYS"Wimp_SetIconState",,pollblk 319 pollblk!4=4 320 SYS"Wimp_SetIconState",,pollblk 321 ENDIF 322ENDCASE 323ENDPROC 324 325DEFFNgets(ptr) 326LOCAL s$ 327s$="" 328WHILE ?ptr>31 329s$+=CHR$(?ptr) 330ptr+=1 331ENDWHILE 332=s$ 333 334DEFPROChandlemouse 335LOCAL n%,window,icon,button,mx,my 336window=pollblk!12 337icon=pollblk!16 338button=pollblk!8 339mx=!pollblk 340my=pollblk!4 341 342IF window=MainHandle THEN 343 344 IF (button AND 5) AND icon>=0 THEN 345 346 IF Icon(icon)>=0 THEN 347 CurrentComb=Icon(icon) 348 FOR n%=OptGroupLo TO OptGroupHi 349 buffer!0=MainHandle 350 buffer!4=n% 351 IF Icon(n%)=CurrentComb THEN buffer!8=1<<21 ELSE buffer!8=0<<21 352 buffer!12=1<<21 353 SYS "Wimp_SetIconState",,buffer 354 NEXT 355 ENDIF 356 357 IF Icon(icon)=-1 THEN 358 buffer!0=MainHandle 359 buffer!4=0 360 buffer!8=0:REM1<<21 361 buffer!12=1<<21 362 SYS "Wimp_SetIconState",,buffer 363 PROCDoCopy 364 OSCLI("wimptask <Scanner$Dir>.!Run") 365 PROCend 366 ENDIF 367 368 ENDIF 369 370ENDIF 371 372ENDPROC 373 374DEFPROCscreenmode 375!pollblk=4 376pollblk!4=5 377pollblk!8=11 378pollblk!12=12 379pollblk!16=-1 380SYS"OS_ReadVduVariables",pollblk,pollblk+20 381ScreenX=(pollblk!28)<<(pollblk!20) 382ScreenY=(pollblk!32)<<(pollblk!24) 383ENDPROC 384 385DEFPROCerror 386!pollblk=ERR 387$(pollblk+4)=REPORT$+" ("+STR$ERL+")"+CHR$0 388SYS"Wimp_ReportError",pollblk,1,"ScanLight install" 389PROCend 390ENDPROC 391 392DEFPROCCheckNotWriteProtected 393LOCAL r0 394SYS"XOS_File",11,"<Scanner$Dir>.Install.~~temp",&FFD,,0,0 TO r0 395SYS"XOS_File", 6,"<Scanner$Dir>.Install.~~temp" 396IF r0<>11 THEN ERROR 255,"I cannot write to this disk. If this is your master disk, make a copy and use that to install from" 397ENDPROC 398 399DEFPROCend 400SYS "Wimp_CloseDown",TaskHandle,!task 401END 402ENDPROC 403 404DEFPROCDoCopy 405LOCAL f$ 406f$=ScannerFName$(CurrentComb) 407SYS "OS_FSControl",26,"<Scanner$Dir>.Install.~"+f$,"<Scanner$Dir>.!Choices",%000010000000010 408SYS "OS_FSControl",26,"<Scanner$Dir>.Install."+f$,"<Scanner$Dir>.RunInst",%000010000000010 409ENDPROC 410 411REM Tables of hardware configurations 412REM Note the module name that activates the bit should be 413REM at the end 414 415DATA hw_All,No dedicated scanner card,UtilityModule 416DATA hw_JuniorGeneric,ScanLight Junior generic card,ScanJunior 417DATA hw_JuniorMatador,ScanLight Junior MA256G (Matador) card,ScanJuniorMA256G 418DATA hw_SeniorGeneric,ScanLight Senior generic card,ScanLight2 419DATA hw_OldFaxpack,Old-style scanner card,ScanLight 420DATA hw_JuniorSL256III,ScanLight Junior generic card,Scanner256MkIII 421DATA hw_ScanLightVideo,ScanLight Video,ScanLightVideo 422DATA hw_Eagle,Eagle M2 Multimedia,MultiMediaSupport 423DATA -1,*,* 424 425REM Tables of scanners we can cope with. First comes an ordered list of 426REM scanner names. Each is attached to an ID, and each gets listed 427REM separately in the window. 428 429DATA ScanLight Professional, 0000 430DATA ScanLight 256 Matador, 0001 431DATA ScanLight 256 MH105AL, 0002 432DATA ScanLight Junior MH105AG, 0003 433DATA ScanLight Junior MH105F, 0004 434DATA ScanLight Junior HS3000, 0005 435DATA ScanLight Senior MH216CG, 0006 436DATA ScanLight Senior MH216AF, 0007 437DATA ScanLight Senior, 0008 438DATA ScanLight 256 MkIII, 0009 439DATA ScanLight Video & MkIII scanner, 0010 440DATA GreyHawk II (no scanner), 0011 441DATA Eagle M2 Multimedia card, 0012 442DATA *, -1 443 444REM Now follows a list of hardware configurations and scanners. Any given 445REM hardware configuration may support more than one scanner and a given 446REM scanner may be supported on more than one hardware configuration (e.g. 447REM the matador). Note that a differently ID'd ROM probably counts as a 448REM different hardware configuration. 449REM 450REM The install software picks the first combination available that includes 451REM the scanner selected and has the appropriate hardware bits set. The list 452REM runs: 453REM Scanner ID 454REM Hardware bit number 455REM Filename max 9 letters as choices file has extra '~' 456 457DATA 0000, hw_All, ScanProf 458 459DATA 0001, hw_JuniorMatador, MA256G-2 460DATA 0001, hw_JuniorGeneric, MA256G 461DATA 0002, hw_JuniorGeneric, MH105AL 462DATA 0003, hw_JuniorGeneric, MH105AG 463DATA 0004, hw_JuniorGeneric, MH105F 464DATA 0005, hw_JuniorGeneric, HS3000 465 466DATA 0006, hw_SeniorGeneric, MH216CG 467DATA 0007, hw_SeniorGeneric, MH216af 468 469DATA 0008, hw_OldFaxpack, FaxPack 470 471DATA 0009, hw_JuniorSL256III, SL256III 472DATA 0010, hw_ScanLightVideo, SLVideo 473DATA 0011, hw_ScanLightVideo, SLVideoN 474 475DATA 0012, hw_Eagle, Eagle 476DATA -1,0,""
�> Install $� Scanlight 2.00 Install program $� (C) 1992 Computer Concepts Ltd winlen=&1000 spritesize=24*1024 � sprites spritesize � buffer 512 � pollblk &400 � windata winlen winind=windata+&800 MaxHardware=9 MaxScanners=20 MaxCombs=20 MaxIcons=20 :� HardwareName$(MaxHardware),HardwareMod$(MaxHardware) � ScannerName$(MaxScanners) G� ScannerID(MaxCombs), ScannerHW(MaxCombs), ScannerFName$(MaxCombs) � Icon(MaxIcons) hw_All = 0 hw_JuniorMatador = 1 hw_JuniorGeneric = 2 hw_SeniorGeneric = 3 hw_OldFaxpack = 4 hw_JuniorSL256III= 5 hw_ScanLightVideo= 6 hw_Eagle = 7 Cș "OS_SpriteOp",&20A,sprites,"<Scanner$Dir>.Resources.Sprites" ! "�DecodeData #�GetHardwareConfiguration $CurrentComb=0 % & MyHimem=� ' ( )� task 5 *$task="TASK" +Cș"Wimp_Initialise",200,!task,"ScanLight Install" � ,TaskHandle , - � �error . /�CheckNotWriteProtected 0 1 2�screenmode 3�CreateWindow 4 5� � �error 6 7� 8 9#ș"Wimp_Poll",0,pollblk � event : ;Ȏ event � < =� 2 ># ș"Wimp_OpenWindow",,pollblk ?� 3 @$ ș"Wimp_CloseWindow",,pollblk A# � !pollblk=MainHandle � �end B � 6:�handlemouse C � 17,18:�message D� E� � F G� H I J K��DecodeData L� N%, SN$, ID%, N$ M� N O� N%=0 � MaxHardware P HardwareName$(N%)="" Q HardwareMod$(N%)="" R� S T� N%=0 � MaxScanners U ScannerName$(N%)="" V� W X� N%=0 � MaxCombs Y ScannerID(N%)=-1 Z ScannerHW(N%)=0 [� \ ] ^� _ � ID%, SN$,N$ `B � ID%<>-1 � HardwareName$(ID%)=SN$:HardwareMod$(ID%)=�uc(N$) a� ID%=-1 b c� d � SN$, ID% e' � ID%<>-1 � ScannerName$(ID%)=SN$ f� ID%=-1 g hN%=0 i� j7 � ScannerID(N%), ScannerHW(N%), ScannerFName$(N%) k N%+=1 l� ScannerID(N%-1)=-1 m n� o p q��GetHardwareConfiguration r3� mod%, inst%, err%, ipf$, modb%, modn%, n$, n% s t*� first set up the relevent bit fields u vA� we go through the module chain setting the appropriate bits w xHardwareConfig%=0 y z mod%=0 {inst%=0 |� }A ș "XOS_Module",12,mod%,inst% � err%,mod%,inst%,modb%,,ipf$ ~ � err%=12 � modn%=modb%+modb%!&10 � n$=�uc(�zts(modn%)) � � n%=0 � MaxHardware �$ � HardwareMod$(n%)=n$ � �9 HardwareConfig%=HardwareConfig% � (1<<n%) � � � � � � �� err%<>12 � �HardwareConfig$="" � �� n%=0 � MaxHardware �; � (n%<>hw_All) � ((HardwareConfig% � (1<<n%))<>0) � �! � HardwareConfig$="" � �/ HardwareConfig$=HardwareName$(n%) � � �6 HardwareConfig$+=" & "+HardwareName$(n%) � � � � �� � �@� HardwareConfig$="" � HardwareConfig$=HardwareName$(hw_All) � �� � � � ݤzts(x%) �� z$ � z$="" �ȕ ?x%>=32 � z$=z$+�(?x%) � x%+=1 �� �=z$ � �ݤuc(x$) �� n%,z$,t% � z$="" �� n%=1 � �(x$) � t%=�(�x$,n%)) �) z$+=�(t%+32*((t%>=97) � (t%<=122))) �� �=z$ � � ���CreateWindow �� w,i,icon,n%,m%,e%,w%,h% �.� First make the appropriate window record � �w=windata+4 �i=winind � �*w!0 = &210 : � visible area min x �*w!4 = &29C : � min y �*w!8 = &520 : � max x �*w!12 = &34C : � max y �'w!16 = 0 : � Scroll offset x �'w!20 = 0 : � y �#w!24 = -1 : � open at top �=w!28 = %10000111000000000000000000010010 : � window flags �%w!32 = &01070207: � colour word 1 �%w!36 = &000c0103: � oolour word 2 �'w!40 = 0 : � work area min x �'w!44 = &FFFFFC00: � work area min y �'w!48 = &00000500: � work area max x �'w!52 = &00000000: � work area max y �'w!56 = &0000013D: � title bar flags �-w!60 = &00003000: � work area button type �#w!64 = sprites : � sprite area �-w!68 = 0 : � minimum width & depth �%�ind(w+72,"ScanLight install","") �>w!84 = 2 : � initially install & h/w text icon only � � icon=w+88 � �"�ibb(icon,&23C,-&98,92*2,36*2) �-icon!16=%00010111000000010100000100011011 �'�ind(icon+20,"","Sbutton,buttonon") �icon+=32 �Icon(0)=-1 � �&�ibb(icon,w!40,-76,(w!8)-(w!0),56) �-icon!16=%00010111000000000000000100011001 �$�ind(icon+20,HardwareConfig$,"") �icon+=32 �Icon(2)=-2 � � ypos=-132 � �m%=� �� n%=0 � MaxCombs �I � (ScannerID(n%)<>-1) � ((1<<ScannerHW(n%)) � HardwareConfig%)<>0 � �" �ibb(icon,16,ypos,&220,56) �@ icon!16=%00010111000000100011000100010011-(� m%)*(1<<21) � � �(m%) � CurrentComb=n% �E �ind(icon+20,ScannerName$(ScannerID(n%)),"Sradiooff,radioon") �! e%=((w!12)-(w!4)-16)+ypos � � e%<0 � � w!4+=e% � w!(88+4)+=e% � w!(88+12)+=e% � � � Icon(w!84)=n% � w!84+=1 � icon+=32 � ypos-=56 � m%=� � � �� � �OptGroupLo=2 �OptGroupHi=(w!84)-1 � �I� �(m%) � � 255,"You do not have hardware that can support ScanLight" � � x0=!w � y0=w!4 � x1=w!8 �y1=w!12 �sx=w!16 �sy=w!20 �)ș"Wimp_CreateWindow",,w � MainHandle �!windata=MainHandle �w%=(w!8)-(w!0) �h%=(w!12)-(w!4) �"w!0 = ((ScreenX + w%) � 2)-w% �w!8 = ((ScreenX + w%) � 2) �"w!4 = ((ScreenY + h%) � 2)-h% w!12 = ((ScreenY + h%) � 2) ș"Wimp_OpenWindow",,windata � ��ind(p,t$,v$) p!0=i �ztss(i,t$) i+=(3+1+�t$) � -4 p!8=1+�t$ � v$="" � p!4=-1 � p!4=i �ztss(i,v$) i+=(3+1+�v$) � -4 � � ��ibb(p%,x%,y%,w%,h%) p%!0 =x% p%!4 =y% p%!8 =x%+w% p%!12=y%+h% � ��ztss(q%,q$) $q%=q$ q%?�q$=0 � ��message � F$ !Ȏ pollblk!16 � "� 0 # �end $� 2 % F$=�gets(pollblk+44) & �docomp(F$) ' pollblk!12=pollblk!8 ( pollblk!16=3 )/ ș"Wimp_SendMessage",18,pollblk,pollblk!4 * !pollblk=SaveHandle +# ș"Wimp_CloseWindow",,pollblk ,� 3 - � pollblk!20=MainHandle � . � pollblk!24=0 � /" $fbuf1=�gets(pollblk+44) 0 ftype1=pollblk!40 1 � 2 � pollblk!24=1 � 3$ $fbuf2=�gets(pollblk+44) 4 ftype2=pollblk!40 5 � 6 � 7 pollblk!12=pollblk!8 8 pollblk!16=4 91 ș"Wimp_SendMessage",18,pollblk,pollblk!4 : !pollblk=MainHandle ; pollblk!4=3 < pollblk!8=0 = pollblk!12=0 >& ș"Wimp_SetIconState",,pollblk ? pollblk!4=4 @& ș"Wimp_SetIconState",,pollblk A � B� C� D Eݤgets(ptr) F� s$ G s$="" Hȕ ?ptr>31 Is$+=�(?ptr) J ptr+=1 K� L=s$ M N��handlemouse O!� n%,window,icon,button,mx,my Pwindow=pollblk!12 Qicon=pollblk!16 Rbutton=pollblk!8 Smx=!pollblk Tmy=pollblk!4 U V� window=MainHandle � W X � (button � 5) � icon>=0 � Y Z � Icon(icon)>=0 � [ CurrentComb=Icon(icon) \$ � n%=OptGroupLo � OptGroupHi ] buffer!0=MainHandle ^ buffer!4=n% _B � Icon(n%)=CurrentComb � buffer!8=1<<21 � buffer!8=0<<21 ` buffer!12=1<<21 a( ș "Wimp_SetIconState",,buffer b � c � d e � Icon(icon)=-1 � f buffer!0=MainHandle g buffer!4=0 h buffer!8=0:�1<<21 i buffer!12=1<<21 j& ș "Wimp_SetIconState",,buffer k �DoCopy l( �("wimptask <Scanner$Dir>.!Run") m �end n � o p � q r� s t� u v��screenmode w!pollblk=4 xpollblk!4=5 ypollblk!8=11 zpollblk!12=12 {pollblk!16=-1 |.ș"OS_ReadVduVariables",pollblk,pollblk+20 }&ScreenX=(pollblk!28)<<(pollblk!20) ~&ScreenY=(pollblk!32)<<(pollblk!24) � � ���error �!pollblk=� �"$(pollblk+4)=�$+" ("+Þ+")"+�0 �6ș"Wimp_ReportError",pollblk,1,"ScanLight install" ��end �� � ���CheckNotWriteProtected �� r0 �Aș"XOS_File",11,"<Scanner$Dir>.Install.~~temp",&FFD,,0,0 � r0 �2ș"XOS_File", 6,"<Scanner$Dir>.Install.~~temp" �y� r0<>11 � � 255,"I cannot write to this disk. If this is your master disk, make a copy and use that to install from" �� � � ��end �(ș "Wimp_CloseDown",TaskHandle,!task �� �� � ���DoCopy �� f$ �!f$=ScannerFName$(CurrentComb) �_ș "OS_FSControl",26,"<Scanner$Dir>.Install.~"+f$,"<Scanner$Dir>.!Choices",%000010000000010 �]ș "OS_FSControl",26,"<Scanner$Dir>.Install."+f$,"<Scanner$Dir>.RunInst",%000010000000010 �� � �(� Tables of hardware configurations �<� Note the module name that activates the bit should be �� at the end � �4� hw_All,No dedicated scanner card,UtilityModule �?� hw_JuniorGeneric,ScanLight Junior generic card,ScanJunior �N� hw_JuniorMatador,ScanLight Junior MA256G (Matador) card,ScanJuniorMA256G �?� hw_SeniorGeneric,ScanLight Senior generic card,ScanLight2 �4� hw_OldFaxpack,Old-style scanner card,ScanLight �E� hw_JuniorSL256III,ScanLight Junior generic card,Scanner256MkIII �6� hw_ScanLightVideo,ScanLight Video,ScanLightVideo �4� hw_Eagle,Eagle M2 Multimedia,MultiMediaSupport �� -1,*,* � �J� Tables of scanners we can cope with. First comes an ordered list of �E� scanner names. Each is attached to an ID, and each gets listed � � separately in the window. � �/� ScanLight Professional, 0000 �/� ScanLight 256 Matador, 0001 �/� ScanLight 256 MH105AL, 0002 �/� ScanLight Junior MH105AG, 0003 �/� ScanLight Junior MH105F, 0004 �/� ScanLight Junior HS3000, 0005 �/� ScanLight Senior MH216CG, 0006 �/� ScanLight Senior MH216AF, 0007 �/� ScanLight Senior, 0008 �/� ScanLight 256 MkIII, 0009 �/� ScanLight Video & MkIII scanner, 0010 �/� GreyHawk II (no scanner), 0011 �/� Eagle M2 Multimedia card, 0012 �-� *, -1 � �L� Now follows a list of hardware configurations and scanners. Any given �K� hardware configuration may support more than one scanner and a given �M� scanner may be supported on more than one hardware configuration (e.g. �J� the matador). Note that a differently ID'd ROM probably counts as a �(� different hardware configuration. �� �O� The install software picks the first combination available that includes �O� the scanner selected and has the appropriate hardware bits set. The list �� runs: �� Scanner ID �� Hardware bit number �?� Filename max 9 letters as choices file has extra '~' � �� 0000, hw_All, ScanProf � �&� 0001, hw_JuniorMatador, MA256G-2 �$� 0001, hw_JuniorGeneric, MA256G �%� 0002, hw_JuniorGeneric, MH105AL �%� 0003, hw_JuniorGeneric, MH105AG �$� 0004, hw_JuniorGeneric, MH105F �$� 0005, hw_JuniorGeneric, HS3000 � �%� 0006, hw_SeniorGeneric, MH216CG �%� 0007, hw_SeniorGeneric, MH216af � �"� 0008, hw_OldFaxpack, FaxPack � �'� 0009, hw_JuniorSL256III, SL256III �&� 0010, hw_ScanLightVideo, SLVideo �'� 0011, hw_ScanLightVideo, SLVideoN � �� 0012, hw_Eagle, Eagle � � -1,0,"" �
00000000 0d 00 01 0e f4 3e 20 49 6e 73 74 61 6c 6c 0d 00 |.....> Install..| 00000010 02 24 f4 20 53 63 61 6e 6c 69 67 68 74 20 32 2e |.$. Scanlight 2.| 00000020 30 30 20 49 6e 73 74 61 6c 6c 20 70 72 6f 67 72 |00 Install progr| 00000030 61 6d 0d 00 03 24 f4 20 28 43 29 20 31 39 39 32 |am...$. (C) 1992| 00000040 20 43 6f 6d 70 75 74 65 72 20 43 6f 6e 63 65 70 | Computer Concep| 00000050 74 73 20 4c 74 64 0d 00 04 04 0d 00 05 10 77 69 |ts Ltd........wi| 00000060 6e 6c 65 6e 3d 26 31 30 30 30 0d 00 06 16 73 70 |nlen=&1000....sp| 00000070 72 69 74 65 73 69 7a 65 3d 32 34 2a 31 30 32 34 |ritesize=24*1024| 00000080 0d 00 07 18 de 20 73 70 72 69 74 65 73 20 73 70 |..... sprites sp| 00000090 72 69 74 65 73 69 7a 65 0d 00 08 10 de 20 62 75 |ritesize..... bu| 000000a0 66 66 65 72 20 35 31 32 0d 00 09 12 de 20 70 6f |ffer 512..... po| 000000b0 6c 6c 62 6c 6b 20 26 34 30 30 0d 00 0a 14 de 20 |llblk &400..... | 000000c0 77 69 6e 64 61 74 61 20 77 69 6e 6c 65 6e 0d 00 |windata winlen..| 000000d0 0b 17 77 69 6e 69 6e 64 3d 77 69 6e 64 61 74 61 |..winind=windata| 000000e0 2b 26 38 30 30 0d 00 0c 04 0d 00 0d 11 4d 61 78 |+&800........Max| 000000f0 48 61 72 64 77 61 72 65 3d 39 0d 00 0e 12 4d 61 |Hardware=9....Ma| 00000100 78 53 63 61 6e 6e 65 72 73 3d 32 30 0d 00 0f 0f |xScanners=20....| 00000110 4d 61 78 43 6f 6d 62 73 3d 32 30 0d 00 10 0f 4d |MaxCombs=20....M| 00000120 61 78 49 63 6f 6e 73 3d 32 30 0d 00 11 04 0d 00 |axIcons=20......| 00000130 12 3a de 20 48 61 72 64 77 61 72 65 4e 61 6d 65 |.:. HardwareName| 00000140 24 28 4d 61 78 48 61 72 64 77 61 72 65 29 2c 48 |$(MaxHardware),H| 00000150 61 72 64 77 61 72 65 4d 6f 64 24 28 4d 61 78 48 |ardwareMod$(MaxH| 00000160 61 72 64 77 61 72 65 29 0d 00 13 1f de 20 53 63 |ardware)..... Sc| 00000170 61 6e 6e 65 72 4e 61 6d 65 24 28 4d 61 78 53 63 |annerName$(MaxSc| 00000180 61 6e 6e 65 72 73 29 0d 00 14 47 de 20 53 63 61 |anners)...G. Sca| 00000190 6e 6e 65 72 49 44 28 4d 61 78 43 6f 6d 62 73 29 |nnerID(MaxCombs)| 000001a0 2c 20 53 63 61 6e 6e 65 72 48 57 28 4d 61 78 43 |, ScannerHW(MaxC| 000001b0 6f 6d 62 73 29 2c 20 53 63 61 6e 6e 65 72 46 4e |ombs), ScannerFN| 000001c0 61 6d 65 24 28 4d 61 78 43 6f 6d 62 73 29 0d 00 |ame$(MaxCombs)..| 000001d0 15 14 de 20 49 63 6f 6e 28 4d 61 78 49 63 6f 6e |... Icon(MaxIcon| 000001e0 73 29 0d 00 16 04 0d 00 17 18 68 77 5f 41 6c 6c |s)........hw_All| 000001f0 20 20 20 20 20 20 20 20 20 20 20 3d 20 30 0d 00 | = 0..| 00000200 18 18 68 77 5f 4a 75 6e 69 6f 72 4d 61 74 61 64 |..hw_JuniorMatad| 00000210 6f 72 20 3d 20 31 0d 00 19 18 68 77 5f 4a 75 6e |or = 1....hw_Jun| 00000220 69 6f 72 47 65 6e 65 72 69 63 20 3d 20 32 0d 00 |iorGeneric = 2..| 00000230 1a 18 68 77 5f 53 65 6e 69 6f 72 47 65 6e 65 72 |..hw_SeniorGener| 00000240 69 63 20 3d 20 33 0d 00 1b 18 68 77 5f 4f 6c 64 |ic = 3....hw_Old| 00000250 46 61 78 70 61 63 6b 20 20 20 20 3d 20 34 0d 00 |Faxpack = 4..| 00000260 1c 18 68 77 5f 4a 75 6e 69 6f 72 53 4c 32 35 36 |..hw_JuniorSL256| 00000270 49 49 49 3d 20 35 0d 00 1d 18 68 77 5f 53 63 61 |III= 5....hw_Sca| 00000280 6e 4c 69 67 68 74 56 69 64 65 6f 3d 20 36 0d 00 |nLightVideo= 6..| 00000290 1e 18 68 77 5f 45 61 67 6c 65 20 20 20 20 20 20 |..hw_Eagle | 000002a0 20 20 20 3d 20 37 0d 00 1f 04 0d 00 20 43 c8 99 | = 7...... C..| 000002b0 20 22 4f 53 5f 53 70 72 69 74 65 4f 70 22 2c 26 | "OS_SpriteOp",&| 000002c0 32 30 41 2c 73 70 72 69 74 65 73 2c 22 3c 53 63 |20A,sprites,"<Sc| 000002d0 61 6e 6e 65 72 24 44 69 72 3e 2e 52 65 73 6f 75 |anner$Dir>.Resou| 000002e0 72 63 65 73 2e 53 70 72 69 74 65 73 22 0d 00 21 |rces.Sprites"..!| 000002f0 04 0d 00 22 0f f2 44 65 63 6f 64 65 44 61 74 61 |..."..DecodeData| 00000300 0d 00 23 1d f2 47 65 74 48 61 72 64 77 61 72 65 |..#..GetHardware| 00000310 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 0d 00 24 |Configuration..$| 00000320 11 43 75 72 72 65 6e 74 43 6f 6d 62 3d 30 0d 00 |.CurrentComb=0..| 00000330 25 04 0d 00 26 0d 4d 79 48 69 6d 65 6d 3d 93 0d |%...&.MyHimem=..| 00000340 00 27 04 0d 00 28 04 0d 00 29 0c de 20 74 61 73 |.'...(...).. tas| 00000350 6b 20 35 0d 00 2a 10 24 74 61 73 6b 3d 22 54 41 |k 5..*.$task="TA| 00000360 53 4b 22 0d 00 2b 43 c8 99 22 57 69 6d 70 5f 49 |SK"..+C.."Wimp_I| 00000370 6e 69 74 69 61 6c 69 73 65 22 2c 32 30 30 2c 21 |nitialise",200,!| 00000380 74 61 73 6b 2c 22 53 63 61 6e 4c 69 67 68 74 20 |task,"ScanLight | 00000390 49 6e 73 74 61 6c 6c 22 20 b8 20 2c 54 61 73 6b |Install" . ,Task| 000003a0 48 61 6e 64 6c 65 0d 00 2c 04 0d 00 2d 0d ee 85 |Handle..,...-...| 000003b0 20 f2 65 72 72 6f 72 0d 00 2e 04 0d 00 2f 1b f2 | .error....../..| 000003c0 43 68 65 63 6b 4e 6f 74 57 72 69 74 65 50 72 6f |CheckNotWritePro| 000003d0 74 65 63 74 65 64 0d 00 30 04 0d 00 31 04 0d 00 |tected..0...1...| 000003e0 32 0f f2 73 63 72 65 65 6e 6d 6f 64 65 0d 00 33 |2..screenmode..3| 000003f0 11 f2 43 72 65 61 74 65 57 69 6e 64 6f 77 0d 00 |..CreateWindow..| 00000400 34 04 0d 00 35 0e ee 20 85 20 f2 65 72 72 6f 72 |4...5.. . .error| 00000410 0d 00 36 04 0d 00 37 05 f5 0d 00 38 04 0d 00 39 |..6...7....8...9| 00000420 23 c8 99 22 57 69 6d 70 5f 50 6f 6c 6c 22 2c 30 |#.."Wimp_Poll",0| 00000430 2c 70 6f 6c 6c 62 6c 6b 20 b8 20 65 76 65 6e 74 |,pollblk . event| 00000440 0d 00 3a 04 0d 00 3b 0e c8 8e 20 65 76 65 6e 74 |..:...;... event| 00000450 20 ca 0d 00 3c 04 0d 00 3d 07 c9 20 32 0d 00 3e | ...<...=.. 2..>| 00000460 23 20 20 20 c8 99 22 57 69 6d 70 5f 4f 70 65 6e |# .."Wimp_Open| 00000470 57 69 6e 64 6f 77 22 2c 2c 70 6f 6c 6c 62 6c 6b |Window",,pollblk| 00000480 0d 00 3f 07 c9 20 33 0d 00 40 24 20 20 20 c8 99 |..?.. 3..@$ ..| 00000490 22 57 69 6d 70 5f 43 6c 6f 73 65 57 69 6e 64 6f |"Wimp_CloseWindo| 000004a0 77 22 2c 2c 70 6f 6c 6c 62 6c 6b 0d 00 41 23 20 |w",,pollblk..A# | 000004b0 20 20 e7 20 21 70 6f 6c 6c 62 6c 6b 3d 4d 61 69 | . !pollblk=Mai| 000004c0 6e 48 61 6e 64 6c 65 20 8c 20 f2 65 6e 64 0d 00 |nHandle . .end..| 000004d0 42 17 20 20 20 c9 20 36 3a f2 68 61 6e 64 6c 65 |B. . 6:.handle| 000004e0 6d 6f 75 73 65 0d 00 43 17 20 20 20 c9 20 31 37 |mouse..C. . 17| 000004f0 2c 31 38 3a f2 6d 65 73 73 61 67 65 0d 00 44 05 |,18:.message..D.| 00000500 cb 0d 00 45 07 fd 20 a3 0d 00 46 04 0d 00 47 05 |...E.. ...F...G.| 00000510 e0 0d 00 48 04 0d 00 49 04 0d 00 4a 04 0d 00 4b |...H...I...J...K| 00000520 10 dd f2 44 65 63 6f 64 65 44 61 74 61 0d 00 4c |...DecodeData..L| 00000530 16 ea 20 4e 25 2c 20 53 4e 24 2c 20 49 44 25 2c |.. N%, SN$, ID%,| 00000540 20 4e 24 0d 00 4d 05 f7 0d 00 4e 04 0d 00 4f 18 | N$..M....N...O.| 00000550 e3 20 4e 25 3d 30 20 b8 20 4d 61 78 48 61 72 64 |. N%=0 . MaxHard| 00000560 77 61 72 65 0d 00 50 1a 20 20 48 61 72 64 77 61 |ware..P. Hardwa| 00000570 72 65 4e 61 6d 65 24 28 4e 25 29 3d 22 22 0d 00 |reName$(N%)=""..| 00000580 51 19 20 20 48 61 72 64 77 61 72 65 4d 6f 64 24 |Q. HardwareMod$| 00000590 28 4e 25 29 3d 22 22 0d 00 52 05 ed 0d 00 53 04 |(N%)=""..R....S.| 000005a0 0d 00 54 18 e3 20 4e 25 3d 30 20 b8 20 4d 61 78 |..T.. N%=0 . Max| 000005b0 53 63 61 6e 6e 65 72 73 0d 00 55 19 20 20 53 63 |Scanners..U. Sc| 000005c0 61 6e 6e 65 72 4e 61 6d 65 24 28 4e 25 29 3d 22 |annerName$(N%)="| 000005d0 22 0d 00 56 05 ed 0d 00 57 04 0d 00 58 15 e3 20 |"..V....W...X.. | 000005e0 4e 25 3d 30 20 b8 20 4d 61 78 43 6f 6d 62 73 0d |N%=0 . MaxCombs.| 000005f0 00 59 16 20 20 53 63 61 6e 6e 65 72 49 44 28 4e |.Y. ScannerID(N| 00000600 25 29 3d 2d 31 0d 00 5a 15 20 20 53 63 61 6e 6e |%)=-1..Z. Scann| 00000610 65 72 48 57 28 4e 25 29 3d 30 0d 00 5b 05 ed 0d |erHW(N%)=0..[...| 00000620 00 5c 04 0d 00 5d 04 0d 00 5e 05 f5 0d 00 5f 13 |.\...]...^...._.| 00000630 20 20 f3 20 49 44 25 2c 20 53 4e 24 2c 4e 24 0d | . ID%, SN$,N$.| 00000640 00 60 42 20 20 e7 20 49 44 25 3c 3e 2d 31 20 8c |.`B . ID%<>-1 .| 00000650 20 48 61 72 64 77 61 72 65 4e 61 6d 65 24 28 49 | HardwareName$(I| 00000660 44 25 29 3d 53 4e 24 3a 48 61 72 64 77 61 72 65 |D%)=SN$:Hardware| 00000670 4d 6f 64 24 28 49 44 25 29 3d a4 75 63 28 4e 24 |Mod$(ID%)=.uc(N$| 00000680 29 0d 00 61 0c fd 20 49 44 25 3d 2d 31 0d 00 62 |)..a.. ID%=-1..b| 00000690 04 0d 00 63 05 f5 0d 00 64 10 20 20 f3 20 53 4e |...c....d. . SN| 000006a0 24 2c 20 49 44 25 0d 00 65 27 20 20 e7 20 49 44 |$, ID%..e' . ID| 000006b0 25 3c 3e 2d 31 20 8c 20 53 63 61 6e 6e 65 72 4e |%<>-1 . ScannerN| 000006c0 61 6d 65 24 28 49 44 25 29 3d 53 4e 24 0d 00 66 |ame$(ID%)=SN$..f| 000006d0 0c fd 20 49 44 25 3d 2d 31 0d 00 67 04 0d 00 68 |.. ID%=-1..g...h| 000006e0 08 4e 25 3d 30 0d 00 69 05 f5 0d 00 6a 37 20 20 |.N%=0..i....j7 | 000006f0 f3 20 53 63 61 6e 6e 65 72 49 44 28 4e 25 29 2c |. ScannerID(N%),| 00000700 20 53 63 61 6e 6e 65 72 48 57 28 4e 25 29 2c 20 | ScannerHW(N%), | 00000710 53 63 61 6e 6e 65 72 46 4e 61 6d 65 24 28 4e 25 |ScannerFName$(N%| 00000720 29 0d 00 6b 0b 20 20 4e 25 2b 3d 31 0d 00 6c 18 |)..k. N%+=1..l.| 00000730 fd 20 53 63 61 6e 6e 65 72 49 44 28 4e 25 2d 31 |. ScannerID(N%-1| 00000740 29 3d 2d 31 0d 00 6d 04 0d 00 6e 05 e1 0d 00 6f |)=-1..m...n....o| 00000750 04 0d 00 70 04 0d 00 71 1e dd f2 47 65 74 48 61 |...p...q...GetHa| 00000760 72 64 77 61 72 65 43 6f 6e 66 69 67 75 72 61 74 |rdwareConfigurat| 00000770 69 6f 6e 0d 00 72 33 ea 20 6d 6f 64 25 2c 20 69 |ion..r3. mod%, i| 00000780 6e 73 74 25 2c 20 65 72 72 25 2c 20 69 70 66 24 |nst%, err%, ipf$| 00000790 2c 20 6d 6f 64 62 25 2c 20 6d 6f 64 6e 25 2c 20 |, modb%, modn%, | 000007a0 6e 24 2c 20 6e 25 0d 00 73 04 0d 00 74 2a f4 20 |n$, n%..s...t*. | 000007b0 66 69 72 73 74 20 73 65 74 20 75 70 20 74 68 65 |first set up the| 000007c0 20 72 65 6c 65 76 65 6e 74 20 62 69 74 20 66 69 | relevent bit fi| 000007d0 65 6c 64 73 0d 00 75 04 0d 00 76 41 f4 20 77 65 |elds..u...vA. we| 000007e0 20 67 6f 20 74 68 72 6f 75 67 68 20 74 68 65 20 | go through the | 000007f0 6d 6f 64 75 6c 65 20 63 68 61 69 6e 20 73 65 74 |module chain set| 00000800 74 69 6e 67 20 74 68 65 20 61 70 70 72 6f 70 72 |ting the appropr| 00000810 69 61 74 65 20 62 69 74 73 0d 00 77 04 0d 00 78 |iate bits..w...x| 00000820 15 48 61 72 64 77 61 72 65 43 6f 6e 66 69 67 25 |.HardwareConfig%| 00000830 3d 30 0d 00 79 04 0d 00 7a 0a 6d 6f 64 25 3d 30 |=0..y...z.mod%=0| 00000840 0d 00 7b 0b 69 6e 73 74 25 3d 30 0d 00 7c 05 f5 |..{.inst%=0..|..| 00000850 0d 00 7d 41 20 20 c8 99 20 22 58 4f 53 5f 4d 6f |..}A .. "XOS_Mo| 00000860 64 75 6c 65 22 2c 31 32 2c 6d 6f 64 25 2c 69 6e |dule",12,mod%,in| 00000870 73 74 25 20 b8 20 65 72 72 25 2c 6d 6f 64 25 2c |st% . err%,mod%,| 00000880 69 6e 73 74 25 2c 6d 6f 64 62 25 2c 2c 69 70 66 |inst%,modb%,,ipf| 00000890 24 0d 00 7e 11 20 20 e7 20 65 72 72 25 3d 31 32 |$..~. . err%=12| 000008a0 20 8c 0d 00 7f 1e 20 20 20 20 20 6d 6f 64 6e 25 | ..... modn%| 000008b0 3d 6d 6f 64 62 25 2b 6d 6f 64 62 25 21 26 31 30 |=modb%+modb%!&10| 000008c0 0d 00 80 1c 20 20 20 20 20 6e 24 3d a4 75 63 28 |.... n$=.uc(| 000008d0 a4 7a 74 73 28 6d 6f 64 6e 25 29 29 0d 00 81 1d |.zts(modn%))....| 000008e0 20 20 20 20 20 e3 20 6e 25 3d 30 20 b8 20 4d 61 | . n%=0 . Ma| 000008f0 78 48 61 72 64 77 61 72 65 0d 00 82 24 20 20 20 |xHardware...$ | 00000900 20 20 20 20 20 20 e7 20 48 61 72 64 77 61 72 65 | . Hardware| 00000910 4d 6f 64 24 28 6e 25 29 3d 6e 24 20 8c 0d 00 83 |Mod$(n%)=n$ ....| 00000920 39 20 20 20 20 20 20 20 20 20 20 20 20 48 61 72 |9 Har| 00000930 64 77 61 72 65 43 6f 6e 66 69 67 25 3d 48 61 72 |dwareConfig%=Har| 00000940 64 77 61 72 65 43 6f 6e 66 69 67 25 20 84 20 28 |dwareConfig% . (| 00000950 31 3c 3c 6e 25 29 0d 00 84 0e 20 20 20 20 20 20 |1<<n%).... | 00000960 20 20 20 cd 0d 00 85 0a 20 20 20 20 20 ed 0d 00 | ..... ...| 00000970 86 07 20 20 cd 0d 00 87 0e fd 20 65 72 72 25 3c |.. ...... err%<| 00000980 3e 31 32 0d 00 88 04 0d 00 89 16 48 61 72 64 77 |>12........Hardw| 00000990 61 72 65 43 6f 6e 66 69 67 24 3d 22 22 0d 00 8a |areConfig$=""...| 000009a0 04 0d 00 8b 18 e3 20 6e 25 3d 30 20 b8 20 4d 61 |...... n%=0 . Ma| 000009b0 78 48 61 72 64 77 61 72 65 0d 00 8c 3b 20 20 20 |xHardware...; | 000009c0 20 e7 20 28 6e 25 3c 3e 68 77 5f 41 6c 6c 29 20 | . (n%<>hw_All) | 000009d0 80 20 28 28 48 61 72 64 77 61 72 65 43 6f 6e 66 |. ((HardwareConf| 000009e0 69 67 25 20 80 20 28 31 3c 3c 6e 25 29 29 3c 3e |ig% . (1<<n%))<>| 000009f0 30 29 20 8c 0d 00 8d 21 20 20 20 20 20 20 20 e7 |0) ....! .| 00000a00 20 48 61 72 64 77 61 72 65 43 6f 6e 66 69 67 24 | HardwareConfig$| 00000a10 3d 22 22 20 8c 0d 00 8e 2f 20 20 20 20 20 20 20 |="" ..../ | 00000a20 20 20 20 48 61 72 64 77 61 72 65 43 6f 6e 66 69 | HardwareConfi| 00000a30 67 24 3d 48 61 72 64 77 61 72 65 4e 61 6d 65 24 |g$=HardwareName$| 00000a40 28 6e 25 29 0d 00 8f 0c 20 20 20 20 20 20 20 cc |(n%).... .| 00000a50 0d 00 90 36 20 20 20 20 20 20 20 20 20 20 48 61 |...6 Ha| 00000a60 72 64 77 61 72 65 43 6f 6e 66 69 67 24 2b 3d 22 |rdwareConfig$+="| 00000a70 20 26 20 22 2b 48 61 72 64 77 61 72 65 4e 61 6d | & "+HardwareNam| 00000a80 65 24 28 6e 25 29 0d 00 91 0c 20 20 20 20 20 20 |e$(n%).... | 00000a90 20 cd 0d 00 92 09 20 20 20 20 cd 0d 00 93 05 ed | ..... ......| 00000aa0 0d 00 94 04 0d 00 95 40 e7 20 48 61 72 64 77 61 |.......@. Hardwa| 00000ab0 72 65 43 6f 6e 66 69 67 24 3d 22 22 20 8c 20 48 |reConfig$="" . H| 00000ac0 61 72 64 77 61 72 65 43 6f 6e 66 69 67 24 3d 48 |ardwareConfig$=H| 00000ad0 61 72 64 77 61 72 65 4e 61 6d 65 24 28 68 77 5f |ardwareName$(hw_| 00000ae0 41 6c 6c 29 0d 00 96 04 0d 00 97 05 e1 0d 00 98 |All)............| 00000af0 04 0d 00 99 04 0d 00 9a 0d dd a4 7a 74 73 28 78 |...........zts(x| 00000b00 25 29 0d 00 9b 08 ea 20 7a 24 0d 00 9c 09 7a 24 |%)..... z$....z$| 00000b10 3d 22 22 0d 00 9d 0e c8 95 20 3f 78 25 3e 3d 33 |=""...... ?x%>=3| 00000b20 32 0d 00 9e 11 20 7a 24 3d 7a 24 2b bd 28 3f 78 |2.... z$=z$+.(?x| 00000b30 25 29 0d 00 9f 0a 20 78 25 2b 3d 31 0d 00 a0 05 |%).... x%+=1....| 00000b40 ce 0d 00 a1 07 3d 7a 24 0d 00 a2 04 0d 00 a3 0c |.....=z$........| 00000b50 dd a4 75 63 28 78 24 29 0d 00 a4 0e ea 20 6e 25 |..uc(x$)..... n%| 00000b60 2c 7a 24 2c 74 25 0d 00 a5 09 7a 24 3d 22 22 0d |,z$,t%....z$="".| 00000b70 00 a6 12 e3 20 6e 25 3d 31 20 b8 20 a9 28 78 24 |.... n%=1 . .(x$| 00000b80 29 0d 00 a7 13 20 20 74 25 3d 97 28 c1 78 24 2c |).... t%=.(.x$,| 00000b90 6e 25 29 29 0d 00 a8 29 20 20 7a 24 2b 3d bd 28 |n%))...) z$+=.(| 00000ba0 74 25 2b 33 32 2a 28 28 74 25 3e 3d 39 37 29 20 |t%+32*((t%>=97) | 00000bb0 80 20 28 74 25 3c 3d 31 32 32 29 29 29 0d 00 a9 |. (t%<=122)))...| 00000bc0 05 ed 0d 00 aa 07 3d 7a 24 0d 00 ab 04 0d 00 ac |......=z$.......| 00000bd0 04 0d 00 ad 12 dd f2 43 72 65 61 74 65 57 69 6e |.......CreateWin| 00000be0 64 6f 77 0d 00 ae 1d ea 20 77 2c 69 2c 69 63 6f |dow..... w,i,ico| 00000bf0 6e 2c 6e 25 2c 6d 25 2c 65 25 2c 77 25 2c 68 25 |n,n%,m%,e%,w%,h%| 00000c00 0d 00 af 2e f4 20 46 69 72 73 74 20 6d 61 6b 65 |..... First make| 00000c10 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 | the appropriate| 00000c20 20 77 69 6e 64 6f 77 20 72 65 63 6f 72 64 0d 00 | window record..| 00000c30 b0 04 0d 00 b1 0f 77 3d 77 69 6e 64 61 74 61 2b |......w=windata+| 00000c40 34 0d 00 b2 0c 69 3d 77 69 6e 69 6e 64 0d 00 b3 |4....i=winind...| 00000c50 04 0d 00 b4 2a 77 21 30 20 20 3d 20 26 32 31 30 |....*w!0 = &210| 00000c60 20 20 20 20 20 3a 20 f4 20 76 69 73 69 62 6c 65 | : . visible| 00000c70 20 61 72 65 61 20 6d 69 6e 20 78 0d 00 b5 2a 77 | area min x...*w| 00000c80 21 34 20 20 3d 20 26 32 39 43 20 20 20 20 20 3a |!4 = &29C :| 00000c90 20 f4 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | . | 00000ca0 6d 69 6e 20 79 0d 00 b6 2a 77 21 38 20 20 3d 20 |min y...*w!8 = | 00000cb0 26 35 32 30 20 20 20 20 20 3a 20 f4 20 20 20 20 |&520 : . | 00000cc0 20 20 20 20 20 20 20 20 20 20 6d 61 78 20 78 0d | max x.| 00000cd0 00 b7 2a 77 21 31 32 20 3d 20 26 33 34 43 20 20 |..*w!12 = &34C | 00000ce0 20 20 20 3a 20 f4 20 20 20 20 20 20 20 20 20 20 | : . | 00000cf0 20 20 20 20 6d 61 78 20 79 0d 00 b8 27 77 21 31 | max y...'w!1| 00000d00 36 20 3d 20 30 20 20 20 20 20 20 20 20 3a 20 f4 |6 = 0 : .| 00000d10 20 53 63 72 6f 6c 6c 20 6f 66 66 73 65 74 20 78 | Scroll offset x| 00000d20 0d 00 b9 27 77 21 32 30 20 3d 20 30 20 20 20 20 |...'w!20 = 0 | 00000d30 20 20 20 20 3a 20 f4 20 20 20 20 20 20 20 20 20 | : . | 00000d40 20 20 20 20 20 20 79 0d 00 ba 23 77 21 32 34 20 | y...#w!24 | 00000d50 3d 20 2d 31 20 20 20 20 20 20 20 3a 20 f4 20 6f |= -1 : . o| 00000d60 70 65 6e 20 61 74 20 74 6f 70 0d 00 bb 3d 77 21 |pen at top...=w!| 00000d70 32 38 20 3d 20 25 31 30 30 30 30 31 31 31 30 30 |28 = %1000011100| 00000d80 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 |0000000000000000| 00000d90 30 31 30 30 31 30 20 3a 20 f4 20 77 69 6e 64 6f |010010 : . windo| 00000da0 77 20 66 6c 61 67 73 0d 00 bc 25 77 21 33 32 20 |w flags...%w!32 | 00000db0 3d 20 26 30 31 30 37 30 32 30 37 3a 20 f4 20 63 |= &01070207: . c| 00000dc0 6f 6c 6f 75 72 20 77 6f 72 64 20 31 0d 00 bd 25 |olour word 1...%| 00000dd0 77 21 33 36 20 3d 20 26 30 30 30 63 30 31 30 33 |w!36 = &000c0103| 00000de0 3a 20 f4 20 6f 6f 6c 6f 75 72 20 77 6f 72 64 20 |: . oolour word | 00000df0 32 0d 00 be 27 77 21 34 30 20 3d 20 30 20 20 20 |2...'w!40 = 0 | 00000e00 20 20 20 20 20 3a 20 f4 20 77 6f 72 6b 20 61 72 | : . work ar| 00000e10 65 61 20 6d 69 6e 20 78 0d 00 bf 27 77 21 34 34 |ea min x...'w!44| 00000e20 20 3d 20 26 46 46 46 46 46 43 30 30 3a 20 f4 20 | = &FFFFFC00: . | 00000e30 77 6f 72 6b 20 61 72 65 61 20 6d 69 6e 20 79 0d |work area min y.| 00000e40 00 c0 27 77 21 34 38 20 3d 20 26 30 30 30 30 30 |..'w!48 = &00000| 00000e50 35 30 30 3a 20 f4 20 77 6f 72 6b 20 61 72 65 61 |500: . work area| 00000e60 20 6d 61 78 20 78 0d 00 c1 27 77 21 35 32 20 3d | max x...'w!52 =| 00000e70 20 26 30 30 30 30 30 30 30 30 3a 20 f4 20 77 6f | &00000000: . wo| 00000e80 72 6b 20 61 72 65 61 20 6d 61 78 20 79 0d 00 c2 |rk area max y...| 00000e90 27 77 21 35 36 20 3d 20 26 30 30 30 30 30 31 33 |'w!56 = &0000013| 00000ea0 44 3a 20 f4 20 74 69 74 6c 65 20 62 61 72 20 66 |D: . title bar f| 00000eb0 6c 61 67 73 0d 00 c3 2d 77 21 36 30 20 3d 20 26 |lags...-w!60 = &| 00000ec0 30 30 30 30 33 30 30 30 3a 20 f4 20 77 6f 72 6b |00003000: . work| 00000ed0 20 61 72 65 61 20 62 75 74 74 6f 6e 20 74 79 70 | area button typ| 00000ee0 65 0d 00 c4 23 77 21 36 34 20 3d 20 73 70 72 69 |e...#w!64 = spri| 00000ef0 74 65 73 20 20 3a 20 f4 20 73 70 72 69 74 65 20 |tes : . sprite | 00000f00 61 72 65 61 0d 00 c5 2d 77 21 36 38 20 3d 20 30 |area...-w!68 = 0| 00000f10 20 20 20 20 20 20 20 20 3a 20 f4 20 6d 69 6e 69 | : . mini| 00000f20 6d 75 6d 20 77 69 64 74 68 20 26 20 64 65 70 74 |mum width & dept| 00000f30 68 0d 00 c6 25 f2 69 6e 64 28 77 2b 37 32 2c 22 |h...%.ind(w+72,"| 00000f40 53 63 61 6e 4c 69 67 68 74 20 69 6e 73 74 61 6c |ScanLight instal| 00000f50 6c 22 2c 22 22 29 0d 00 c7 3e 77 21 38 34 20 3d |l","")...>w!84 =| 00000f60 20 32 20 20 20 20 20 20 20 20 3a 20 f4 20 69 6e | 2 : . in| 00000f70 69 74 69 61 6c 6c 79 20 69 6e 73 74 61 6c 6c 20 |itially install | 00000f80 26 20 68 2f 77 20 74 65 78 74 20 69 63 6f 6e 20 |& h/w text icon | 00000f90 6f 6e 6c 79 0d 00 c8 04 0d 00 c9 0d 69 63 6f 6e |only........icon| 00000fa0 3d 77 2b 38 38 0d 00 ca 04 0d 00 cb 22 f2 69 62 |=w+88.......".ib| 00000fb0 62 28 69 63 6f 6e 2c 26 32 33 43 2c 2d 26 39 38 |b(icon,&23C,-&98| 00000fc0 2c 39 32 2a 32 2c 33 36 2a 32 29 0d 00 cc 2d 69 |,92*2,36*2)...-i| 00000fd0 63 6f 6e 21 31 36 3d 25 30 30 30 31 30 31 31 31 |con!16=%00010111| 00000fe0 30 30 30 30 30 30 30 31 30 31 30 30 30 30 30 31 |0000000101000001| 00000ff0 30 30 30 31 31 30 31 31 0d 00 cd 27 f2 69 6e 64 |00011011...'.ind| 00001000 28 69 63 6f 6e 2b 32 30 2c 22 22 2c 22 53 62 75 |(icon+20,"","Sbu| 00001010 74 74 6f 6e 2c 62 75 74 74 6f 6e 6f 6e 22 29 0d |tton,buttonon").| 00001020 00 ce 0c 69 63 6f 6e 2b 3d 33 32 0d 00 cf 0e 49 |...icon+=32....I| 00001030 63 6f 6e 28 30 29 3d 2d 31 0d 00 d0 04 0d 00 d1 |con(0)=-1.......| 00001040 26 f2 69 62 62 28 69 63 6f 6e 2c 77 21 34 30 2c |&.ibb(icon,w!40,| 00001050 2d 37 36 2c 28 77 21 38 29 2d 28 77 21 30 29 2c |-76,(w!8)-(w!0),| 00001060 35 36 29 0d 00 d2 2d 69 63 6f 6e 21 31 36 3d 25 |56)...-icon!16=%| 00001070 30 30 30 31 30 31 31 31 30 30 30 30 30 30 30 30 |0001011100000000| 00001080 30 30 30 30 30 30 30 31 30 30 30 31 31 30 30 31 |0000000100011001| 00001090 0d 00 d3 24 f2 69 6e 64 28 69 63 6f 6e 2b 32 30 |...$.ind(icon+20| 000010a0 2c 48 61 72 64 77 61 72 65 43 6f 6e 66 69 67 24 |,HardwareConfig$| 000010b0 2c 22 22 29 0d 00 d4 0c 69 63 6f 6e 2b 3d 33 32 |,"")....icon+=32| 000010c0 0d 00 d5 0e 49 63 6f 6e 28 32 29 3d 2d 32 0d 00 |....Icon(2)=-2..| 000010d0 d6 04 0d 00 d7 0d 79 70 6f 73 3d 2d 31 33 32 0d |......ypos=-132.| 000010e0 00 d8 04 0d 00 d9 08 6d 25 3d a3 0d 00 da 15 e3 |.......m%=......| 000010f0 20 6e 25 3d 30 20 b8 20 4d 61 78 43 6f 6d 62 73 | n%=0 . MaxCombs| 00001100 0d 00 db 49 20 20 e7 20 28 53 63 61 6e 6e 65 72 |...I . (Scanner| 00001110 49 44 28 6e 25 29 3c 3e 2d 31 29 20 80 20 28 28 |ID(n%)<>-1) . ((| 00001120 31 3c 3c 53 63 61 6e 6e 65 72 48 57 28 6e 25 29 |1<<ScannerHW(n%)| 00001130 29 20 80 20 48 61 72 64 77 61 72 65 43 6f 6e 66 |) . HardwareConf| 00001140 69 67 25 29 3c 3e 30 20 8c 0d 00 dc 22 20 20 20 |ig%)<>0 ...." | 00001150 20 f2 69 62 62 28 69 63 6f 6e 2c 31 36 2c 79 70 | .ibb(icon,16,yp| 00001160 6f 73 2c 26 32 32 30 2c 35 36 29 0d 00 dd 40 20 |os,&220,56)...@ | 00001170 20 20 20 69 63 6f 6e 21 31 36 3d 25 30 30 30 31 | icon!16=%0001| 00001180 30 31 31 31 30 30 30 30 30 30 31 30 30 30 31 31 |0111000000100011| 00001190 30 30 30 31 30 30 30 31 30 30 31 31 2d 28 ac 20 |000100010011-(. | 000011a0 6d 25 29 2a 28 31 3c 3c 32 31 29 0d 00 de 20 20 |m%)*(1<<21)... | 000011b0 20 20 20 e7 20 ac 28 6d 25 29 20 8c 20 43 75 72 | . .(m%) . Cur| 000011c0 72 65 6e 74 43 6f 6d 62 3d 6e 25 0d 00 df 45 20 |rentComb=n%...E | 000011d0 20 20 20 f2 69 6e 64 28 69 63 6f 6e 2b 32 30 2c | .ind(icon+20,| 000011e0 53 63 61 6e 6e 65 72 4e 61 6d 65 24 28 53 63 61 |ScannerName$(Sca| 000011f0 6e 6e 65 72 49 44 28 6e 25 29 29 2c 22 53 72 61 |nnerID(n%)),"Sra| 00001200 64 69 6f 6f 66 66 2c 72 61 64 69 6f 6f 6e 22 29 |diooff,radioon")| 00001210 0d 00 e0 21 20 20 20 20 65 25 3d 28 28 77 21 31 |...! e%=((w!1| 00001220 32 29 2d 28 77 21 34 29 2d 31 36 29 2b 79 70 6f |2)-(w!4)-16)+ypo| 00001230 73 0d 00 e1 10 20 20 20 20 e7 20 65 25 3c 30 20 |s.... . e%<0 | 00001240 8c 0d 00 e2 12 20 20 20 20 20 20 20 77 21 34 2b |..... w!4+| 00001250 3d 65 25 0d 00 e3 17 20 20 20 20 20 20 20 77 21 |=e%.... w!| 00001260 28 38 38 2b 34 29 2b 3d 65 25 0d 00 e4 18 20 20 |(88+4)+=e%.... | 00001270 20 20 20 20 20 77 21 28 38 38 2b 31 32 29 2b 3d | w!(88+12)+=| 00001280 65 25 0d 00 e5 09 20 20 20 20 cd 0d 00 e6 15 20 |e%.... ..... | 00001290 20 20 20 49 63 6f 6e 28 77 21 38 34 29 3d 6e 25 | Icon(w!84)=n%| 000012a0 0d 00 e7 0f 20 20 20 20 77 21 38 34 2b 3d 31 0d |.... w!84+=1.| 000012b0 00 e8 10 20 20 20 20 69 63 6f 6e 2b 3d 33 32 0d |... icon+=32.| 000012c0 00 e9 10 20 20 20 20 79 70 6f 73 2d 3d 35 36 0d |... ypos-=56.| 000012d0 00 ea 0c 20 20 20 20 6d 25 3d b9 0d 00 eb 07 20 |... m%=..... | 000012e0 20 cd 0d 00 ec 05 ed 0d 00 ed 04 0d 00 ee 10 4f | ..............O| 000012f0 70 74 47 72 6f 75 70 4c 6f 3d 32 0d 00 ef 17 4f |ptGroupLo=2....O| 00001300 70 74 47 72 6f 75 70 48 69 3d 28 77 21 38 34 29 |ptGroupHi=(w!84)| 00001310 2d 31 0d 00 f0 04 0d 00 f1 49 e7 20 ac 28 6d 25 |-1.......I. .(m%| 00001320 29 20 8c 20 85 20 32 35 35 2c 22 59 6f 75 20 64 |) . . 255,"You d| 00001330 6f 20 6e 6f 74 20 68 61 76 65 20 68 61 72 64 77 |o not have hardw| 00001340 61 72 65 20 74 68 61 74 20 63 61 6e 20 73 75 70 |are that can sup| 00001350 70 6f 72 74 20 53 63 61 6e 4c 69 67 68 74 22 0d |port ScanLight".| 00001360 00 f2 04 0d 00 f3 09 78 30 3d 21 77 0d 00 f4 0a |.......x0=!w....| 00001370 79 30 3d 77 21 34 0d 00 f5 0a 78 31 3d 77 21 38 |y0=w!4....x1=w!8| 00001380 0d 00 f6 0b 79 31 3d 77 21 31 32 0d 00 f7 0b 73 |....y1=w!12....s| 00001390 78 3d 77 21 31 36 0d 00 f8 0b 73 79 3d 77 21 32 |x=w!16....sy=w!2| 000013a0 30 0d 00 f9 29 c8 99 22 57 69 6d 70 5f 43 72 65 |0...).."Wimp_Cre| 000013b0 61 74 65 57 69 6e 64 6f 77 22 2c 2c 77 20 b8 20 |ateWindow",,w . | 000013c0 4d 61 69 6e 48 61 6e 64 6c 65 0d 00 fa 17 21 77 |MainHandle....!w| 000013d0 69 6e 64 61 74 61 3d 4d 61 69 6e 48 61 6e 64 6c |indata=MainHandl| 000013e0 65 0d 00 fb 12 77 25 3d 28 77 21 38 29 2d 28 77 |e....w%=(w!8)-(w| 000013f0 21 30 29 0d 00 fc 13 68 25 3d 28 77 21 31 32 29 |!0)....h%=(w!12)| 00001400 2d 28 77 21 34 29 0d 00 fd 22 77 21 30 20 20 3d |-(w!4)..."w!0 =| 00001410 20 28 28 53 63 72 65 65 6e 58 20 2b 20 77 25 29 | ((ScreenX + w%)| 00001420 20 81 20 32 29 2d 77 25 0d 00 fe 1f 77 21 38 20 | . 2)-w%....w!8 | 00001430 20 3d 20 28 28 53 63 72 65 65 6e 58 20 2b 20 77 | = ((ScreenX + w| 00001440 25 29 20 81 20 32 29 0d 00 ff 22 77 21 34 20 20 |%) . 2)..."w!4 | 00001450 3d 20 28 28 53 63 72 65 65 6e 59 20 2b 20 68 25 |= ((ScreenY + h%| 00001460 29 20 81 20 32 29 2d 68 25 0d 01 00 1f 77 21 31 |) . 2)-h%....w!1| 00001470 32 20 3d 20 28 28 53 63 72 65 65 6e 59 20 2b 20 |2 = ((ScreenY + | 00001480 68 25 29 20 81 20 32 29 0d 01 01 20 c8 99 22 57 |h%) . 2)... .."W| 00001490 69 6d 70 5f 4f 70 65 6e 57 69 6e 64 6f 77 22 2c |imp_OpenWindow",| 000014a0 2c 77 69 6e 64 61 74 61 0d 01 02 04 0d 01 03 05 |,windata........| 000014b0 e1 0d 01 04 04 0d 01 05 12 dd f2 69 6e 64 28 70 |...........ind(p| 000014c0 2c 74 24 2c 76 24 29 0d 01 06 09 70 21 30 3d 69 |,t$,v$)....p!0=i| 000014d0 0d 01 07 0f f2 7a 74 73 73 28 69 2c 74 24 29 0d |.....ztss(i,t$).| 000014e0 01 08 15 69 2b 3d 28 33 2b 31 2b a9 74 24 29 20 |...i+=(3+1+.t$) | 000014f0 80 20 2d 34 0d 01 09 0d 70 21 38 3d 31 2b a9 74 |. -4....p!8=1+.t| 00001500 24 0d 01 0a 0d e7 20 76 24 3d 22 22 20 8c 0d 01 |$..... v$="" ...| 00001510 0b 0b 20 70 21 34 3d 2d 31 0d 01 0c 05 cc 0d 01 |.. p!4=-1.......| 00001520 0d 0a 20 70 21 34 3d 69 0d 01 0e 10 20 f2 7a 74 |.. p!4=i.... .zt| 00001530 73 73 28 69 2c 76 24 29 0d 01 0f 16 20 69 2b 3d |ss(i,v$).... i+=| 00001540 28 33 2b 31 2b a9 76 24 29 20 80 20 2d 34 0d 01 |(3+1+.v$) . -4..| 00001550 10 05 cd 0d 01 11 05 e1 0d 01 12 04 0d 01 13 19 |................| 00001560 dd f2 69 62 62 28 70 25 2c 78 25 2c 79 25 2c 77 |..ibb(p%,x%,y%,w| 00001570 25 2c 68 25 29 0d 01 14 0c 70 25 21 30 20 3d 78 |%,h%)....p%!0 =x| 00001580 25 0d 01 15 0c 70 25 21 34 20 3d 79 25 0d 01 16 |%....p%!4 =y%...| 00001590 0f 70 25 21 38 20 3d 78 25 2b 77 25 0d 01 17 0f |.p%!8 =x%+w%....| 000015a0 70 25 21 31 32 3d 79 25 2b 68 25 0d 01 18 05 e1 |p%!12=y%+h%.....| 000015b0 0d 01 19 04 0d 01 1a 11 dd f2 7a 74 73 73 28 71 |..........ztss(q| 000015c0 25 2c 71 24 29 0d 01 1b 0a 24 71 25 3d 71 24 0d |%,q$)....$q%=q$.| 000015d0 01 1c 0c 71 25 3f a9 71 24 3d 30 0d 01 1d 05 e1 |...q%?.q$=0.....| 000015e0 0d 01 1e 04 0d 01 1f 0d dd f2 6d 65 73 73 61 67 |..........messag| 000015f0 65 0d 01 20 08 ea 20 46 24 0d 01 21 13 c8 8e 20 |e.. .. F$..!... | 00001600 70 6f 6c 6c 62 6c 6b 21 31 36 20 ca 0d 01 22 07 |pollblk!16 ...".| 00001610 c9 20 30 0d 01 23 0a 20 20 f2 65 6e 64 0d 01 24 |. 0..#. .end..$| 00001620 07 c9 20 32 0d 01 25 1a 20 20 46 24 3d a4 67 65 |.. 2..%. F$=.ge| 00001630 74 73 28 70 6f 6c 6c 62 6c 6b 2b 34 34 29 0d 01 |ts(pollblk+44)..| 00001640 26 11 20 20 f2 64 6f 63 6f 6d 70 28 46 24 29 0d |&. .docomp(F$).| 00001650 01 27 1a 20 20 70 6f 6c 6c 62 6c 6b 21 31 32 3d |.'. pollblk!12=| 00001660 70 6f 6c 6c 62 6c 6b 21 38 0d 01 28 12 20 20 70 |pollblk!8..(. p| 00001670 6f 6c 6c 62 6c 6b 21 31 36 3d 33 0d 01 29 2f 20 |ollblk!16=3..)/ | 00001680 20 c8 99 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 | .."Wimp_SendMes| 00001690 73 61 67 65 22 2c 31 38 2c 70 6f 6c 6c 62 6c 6b |sage",18,pollblk| 000016a0 2c 70 6f 6c 6c 62 6c 6b 21 34 0d 01 2a 19 20 20 |,pollblk!4..*. | 000016b0 21 70 6f 6c 6c 62 6c 6b 3d 53 61 76 65 48 61 6e |!pollblk=SaveHan| 000016c0 64 6c 65 0d 01 2b 23 20 20 c8 99 22 57 69 6d 70 |dle..+# .."Wimp| 000016d0 5f 43 6c 6f 73 65 57 69 6e 64 6f 77 22 2c 2c 70 |_CloseWindow",,p| 000016e0 6f 6c 6c 62 6c 6b 0d 01 2c 07 c9 20 33 0d 01 2d |ollblk..,.. 3..-| 000016f0 1f 20 20 e7 20 70 6f 6c 6c 62 6c 6b 21 32 30 3d |. . pollblk!20=| 00001700 4d 61 69 6e 48 61 6e 64 6c 65 20 8c 0d 01 2e 18 |MainHandle .....| 00001710 20 20 20 20 e7 20 70 6f 6c 6c 62 6c 6b 21 32 34 | . pollblk!24| 00001720 3d 30 20 8c 0d 01 2f 22 20 20 20 20 20 20 24 66 |=0 .../" $f| 00001730 62 75 66 31 3d a4 67 65 74 73 28 70 6f 6c 6c 62 |buf1=.gets(pollb| 00001740 6c 6b 2b 34 34 29 0d 01 30 1b 20 20 20 20 20 20 |lk+44)..0. | 00001750 66 74 79 70 65 31 3d 70 6f 6c 6c 62 6c 6b 21 34 |ftype1=pollblk!4| 00001760 30 0d 01 31 09 20 20 20 20 cc 0d 01 32 1a 20 20 |0..1. ...2. | 00001770 20 20 20 20 e7 20 70 6f 6c 6c 62 6c 6b 21 32 34 | . pollblk!24| 00001780 3d 31 20 8c 0d 01 33 24 20 20 20 20 20 20 20 20 |=1 ...3$ | 00001790 24 66 62 75 66 32 3d a4 67 65 74 73 28 70 6f 6c |$fbuf2=.gets(pol| 000017a0 6c 62 6c 6b 2b 34 34 29 0d 01 34 1d 20 20 20 20 |lblk+44)..4. | 000017b0 20 20 20 20 66 74 79 70 65 32 3d 70 6f 6c 6c 62 | ftype2=pollb| 000017c0 6c 6b 21 34 30 0d 01 35 0b 20 20 20 20 20 20 cd |lk!40..5. .| 000017d0 0d 01 36 09 20 20 20 20 cd 0d 01 37 1c 20 20 20 |..6. ...7. | 000017e0 20 70 6f 6c 6c 62 6c 6b 21 31 32 3d 70 6f 6c 6c | pollblk!12=poll| 000017f0 62 6c 6b 21 38 0d 01 38 14 20 20 20 20 70 6f 6c |blk!8..8. pol| 00001800 6c 62 6c 6b 21 31 36 3d 34 0d 01 39 31 20 20 20 |lblk!16=4..91 | 00001810 20 c8 99 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 | .."Wimp_SendMes| 00001820 73 61 67 65 22 2c 31 38 2c 70 6f 6c 6c 62 6c 6b |sage",18,pollblk| 00001830 2c 70 6f 6c 6c 62 6c 6b 21 34 0d 01 3a 1b 20 20 |,pollblk!4..:. | 00001840 20 20 21 70 6f 6c 6c 62 6c 6b 3d 4d 61 69 6e 48 | !pollblk=MainH| 00001850 61 6e 64 6c 65 0d 01 3b 13 20 20 20 20 70 6f 6c |andle..;. pol| 00001860 6c 62 6c 6b 21 34 3d 33 0d 01 3c 13 20 20 20 20 |lblk!4=3..<. | 00001870 70 6f 6c 6c 62 6c 6b 21 38 3d 30 0d 01 3d 14 20 |pollblk!8=0..=. | 00001880 20 20 20 70 6f 6c 6c 62 6c 6b 21 31 32 3d 30 0d | pollblk!12=0.| 00001890 01 3e 26 20 20 20 20 c8 99 22 57 69 6d 70 5f 53 |.>& .."Wimp_S| 000018a0 65 74 49 63 6f 6e 53 74 61 74 65 22 2c 2c 70 6f |etIconState",,po| 000018b0 6c 6c 62 6c 6b 0d 01 3f 13 20 20 20 20 70 6f 6c |llblk..?. pol| 000018c0 6c 62 6c 6b 21 34 3d 34 0d 01 40 26 20 20 20 20 |lblk!4=4..@& | 000018d0 c8 99 22 57 69 6d 70 5f 53 65 74 49 63 6f 6e 53 |.."Wimp_SetIconS| 000018e0 74 61 74 65 22 2c 2c 70 6f 6c 6c 62 6c 6b 0d 01 |tate",,pollblk..| 000018f0 41 07 20 20 cd 0d 01 42 05 cb 0d 01 43 05 e1 0d |A. ...B....C...| 00001900 01 44 04 0d 01 45 0f dd a4 67 65 74 73 28 70 74 |.D...E...gets(pt| 00001910 72 29 0d 01 46 08 ea 20 73 24 0d 01 47 09 73 24 |r)..F.. s$..G.s$| 00001920 3d 22 22 0d 01 48 0e c8 95 20 3f 70 74 72 3e 33 |=""..H... ?ptr>3| 00001930 31 0d 01 49 0f 73 24 2b 3d bd 28 3f 70 74 72 29 |1..I.s$+=.(?ptr)| 00001940 0d 01 4a 0a 70 74 72 2b 3d 31 0d 01 4b 05 ce 0d |..J.ptr+=1..K...| 00001950 01 4c 07 3d 73 24 0d 01 4d 04 0d 01 4e 11 dd f2 |.L.=s$..M...N...| 00001960 68 61 6e 64 6c 65 6d 6f 75 73 65 0d 01 4f 21 ea |handlemouse..O!.| 00001970 20 6e 25 2c 77 69 6e 64 6f 77 2c 69 63 6f 6e 2c | n%,window,icon,| 00001980 62 75 74 74 6f 6e 2c 6d 78 2c 6d 79 0d 01 50 15 |button,mx,my..P.| 00001990 77 69 6e 64 6f 77 3d 70 6f 6c 6c 62 6c 6b 21 31 |window=pollblk!1| 000019a0 32 0d 01 51 13 69 63 6f 6e 3d 70 6f 6c 6c 62 6c |2..Q.icon=pollbl| 000019b0 6b 21 31 36 0d 01 52 14 62 75 74 74 6f 6e 3d 70 |k!16..R.button=p| 000019c0 6f 6c 6c 62 6c 6b 21 38 0d 01 53 0f 6d 78 3d 21 |ollblk!8..S.mx=!| 000019d0 70 6f 6c 6c 62 6c 6b 0d 01 54 10 6d 79 3d 70 6f |pollblk..T.my=po| 000019e0 6c 6c 62 6c 6b 21 34 0d 01 55 04 0d 01 56 19 e7 |llblk!4..U...V..| 000019f0 20 77 69 6e 64 6f 77 3d 4d 61 69 6e 48 61 6e 64 | window=MainHand| 00001a00 6c 65 20 8c 0d 01 57 04 0d 01 58 1f 20 e7 20 28 |le ...W...X. . (| 00001a10 62 75 74 74 6f 6e 20 80 20 35 29 20 80 20 69 63 |button . 5) . ic| 00001a20 6f 6e 3e 3d 30 20 8c 0d 01 59 04 0d 01 5a 17 20 |on>=0 ...Y...Z. | 00001a30 20 e7 20 49 63 6f 6e 28 69 63 6f 6e 29 3e 3d 30 | . Icon(icon)>=0| 00001a40 20 8c 0d 01 5b 1e 20 20 20 20 43 75 72 72 65 6e | ...[. Curren| 00001a50 74 43 6f 6d 62 3d 49 63 6f 6e 28 69 63 6f 6e 29 |tComb=Icon(icon)| 00001a60 0d 01 5c 24 20 20 20 20 e3 20 6e 25 3d 4f 70 74 |..\$ . n%=Opt| 00001a70 47 72 6f 75 70 4c 6f 20 b8 20 4f 70 74 47 72 6f |GroupLo . OptGro| 00001a80 75 70 48 69 0d 01 5d 1d 20 20 20 20 20 20 62 75 |upHi..]. bu| 00001a90 66 66 65 72 21 30 3d 4d 61 69 6e 48 61 6e 64 6c |ffer!0=MainHandl| 00001aa0 65 0d 01 5e 15 20 20 20 20 20 20 62 75 66 66 65 |e..^. buffe| 00001ab0 72 21 34 3d 6e 25 0d 01 5f 42 20 20 20 20 20 20 |r!4=n%.._B | 00001ac0 e7 20 49 63 6f 6e 28 6e 25 29 3d 43 75 72 72 65 |. Icon(n%)=Curre| 00001ad0 6e 74 43 6f 6d 62 20 8c 20 62 75 66 66 65 72 21 |ntComb . buffer!| 00001ae0 38 3d 31 3c 3c 32 31 20 8b 20 62 75 66 66 65 72 |8=1<<21 . buffer| 00001af0 21 38 3d 30 3c 3c 32 31 0d 01 60 19 20 20 20 20 |!8=0<<21..`. | 00001b00 20 20 62 75 66 66 65 72 21 31 32 3d 31 3c 3c 32 | buffer!12=1<<2| 00001b10 31 0d 01 61 28 20 20 20 20 20 20 c8 99 20 22 57 |1..a( .. "W| 00001b20 69 6d 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 |imp_SetIconState| 00001b30 22 2c 2c 62 75 66 66 65 72 0d 01 62 09 20 20 20 |",,buffer..b. | 00001b40 20 ed 0d 01 63 07 20 20 cd 0d 01 64 04 0d 01 65 | ...c. ...d...e| 00001b50 17 20 20 e7 20 49 63 6f 6e 28 69 63 6f 6e 29 3d |. . Icon(icon)=| 00001b60 2d 31 20 8c 0d 01 66 1b 20 20 20 20 62 75 66 66 |-1 ...f. buff| 00001b70 65 72 21 30 3d 4d 61 69 6e 48 61 6e 64 6c 65 0d |er!0=MainHandle.| 00001b80 01 67 12 20 20 20 20 62 75 66 66 65 72 21 34 3d |.g. buffer!4=| 00001b90 30 0d 01 68 19 20 20 20 20 62 75 66 66 65 72 21 |0..h. buffer!| 00001ba0 38 3d 30 3a f4 31 3c 3c 32 31 0d 01 69 17 20 20 |8=0:.1<<21..i. | 00001bb0 20 20 62 75 66 66 65 72 21 31 32 3d 31 3c 3c 32 | buffer!12=1<<2| 00001bc0 31 0d 01 6a 26 20 20 20 20 c8 99 20 22 57 69 6d |1..j& .. "Wim| 00001bd0 70 5f 53 65 74 49 63 6f 6e 53 74 61 74 65 22 2c |p_SetIconState",| 00001be0 2c 62 75 66 66 65 72 0d 01 6b 0f 20 20 20 20 f2 |,buffer..k. .| 00001bf0 44 6f 43 6f 70 79 0d 01 6c 28 20 20 20 20 ff 28 |DoCopy..l( .(| 00001c00 22 77 69 6d 70 74 61 73 6b 20 3c 53 63 61 6e 6e |"wimptask <Scann| 00001c10 65 72 24 44 69 72 3e 2e 21 52 75 6e 22 29 0d 01 |er$Dir>.!Run")..| 00001c20 6d 0c 20 20 20 20 f2 65 6e 64 0d 01 6e 07 20 20 |m. .end..n. | 00001c30 cd 0d 01 6f 04 0d 01 70 06 20 cd 0d 01 71 04 0d |...o...p. ...q..| 00001c40 01 72 05 cd 0d 01 73 04 0d 01 74 05 e1 0d 01 75 |.r....s...t....u| 00001c50 04 0d 01 76 10 dd f2 73 63 72 65 65 6e 6d 6f 64 |...v...screenmod| 00001c60 65 0d 01 77 0e 21 70 6f 6c 6c 62 6c 6b 3d 34 0d |e..w.!pollblk=4.| 00001c70 01 78 0f 70 6f 6c 6c 62 6c 6b 21 34 3d 35 0d 01 |.x.pollblk!4=5..| 00001c80 79 10 70 6f 6c 6c 62 6c 6b 21 38 3d 31 31 0d 01 |y.pollblk!8=11..| 00001c90 7a 11 70 6f 6c 6c 62 6c 6b 21 31 32 3d 31 32 0d |z.pollblk!12=12.| 00001ca0 01 7b 11 70 6f 6c 6c 62 6c 6b 21 31 36 3d 2d 31 |.{.pollblk!16=-1| 00001cb0 0d 01 7c 2e c8 99 22 4f 53 5f 52 65 61 64 56 64 |..|..."OS_ReadVd| 00001cc0 75 56 61 72 69 61 62 6c 65 73 22 2c 70 6f 6c 6c |uVariables",poll| 00001cd0 62 6c 6b 2c 70 6f 6c 6c 62 6c 6b 2b 32 30 0d 01 |blk,pollblk+20..| 00001ce0 7d 26 53 63 72 65 65 6e 58 3d 28 70 6f 6c 6c 62 |}&ScreenX=(pollb| 00001cf0 6c 6b 21 32 38 29 3c 3c 28 70 6f 6c 6c 62 6c 6b |lk!28)<<(pollblk| 00001d00 21 32 30 29 0d 01 7e 26 53 63 72 65 65 6e 59 3d |!20)..~&ScreenY=| 00001d10 28 70 6f 6c 6c 62 6c 6b 21 33 32 29 3c 3c 28 70 |(pollblk!32)<<(p| 00001d20 6f 6c 6c 62 6c 6b 21 32 34 29 0d 01 7f 05 e1 0d |ollblk!24)......| 00001d30 01 80 04 0d 01 81 0b dd f2 65 72 72 6f 72 0d 01 |.........error..| 00001d40 82 0e 21 70 6f 6c 6c 62 6c 6b 3d 9f 0d 01 83 22 |..!pollblk=...."| 00001d50 24 28 70 6f 6c 6c 62 6c 6b 2b 34 29 3d f6 24 2b |$(pollblk+4)=.$+| 00001d60 22 20 28 22 2b c3 9e 2b 22 29 22 2b bd 30 0d 01 |" ("+..+")"+.0..| 00001d70 84 36 c8 99 22 57 69 6d 70 5f 52 65 70 6f 72 74 |.6.."Wimp_Report| 00001d80 45 72 72 6f 72 22 2c 70 6f 6c 6c 62 6c 6b 2c 31 |Error",pollblk,1| 00001d90 2c 22 53 63 61 6e 4c 69 67 68 74 20 69 6e 73 74 |,"ScanLight inst| 00001da0 61 6c 6c 22 0d 01 85 08 f2 65 6e 64 0d 01 86 05 |all".....end....| 00001db0 e1 0d 01 87 04 0d 01 88 1c dd f2 43 68 65 63 6b |...........Check| 00001dc0 4e 6f 74 57 72 69 74 65 50 72 6f 74 65 63 74 65 |NotWriteProtecte| 00001dd0 64 0d 01 89 08 ea 20 72 30 0d 01 8a 41 c8 99 22 |d..... r0...A.."| 00001de0 58 4f 53 5f 46 69 6c 65 22 2c 31 31 2c 22 3c 53 |XOS_File",11,"<S| 00001df0 63 61 6e 6e 65 72 24 44 69 72 3e 2e 49 6e 73 74 |canner$Dir>.Inst| 00001e00 61 6c 6c 2e 7e 7e 74 65 6d 70 22 2c 26 46 46 44 |all.~~temp",&FFD| 00001e10 2c 2c 30 2c 30 20 b8 20 72 30 0d 01 8b 32 c8 99 |,,0,0 . r0...2..| 00001e20 22 58 4f 53 5f 46 69 6c 65 22 2c 20 36 2c 22 3c |"XOS_File", 6,"<| 00001e30 53 63 61 6e 6e 65 72 24 44 69 72 3e 2e 49 6e 73 |Scanner$Dir>.Ins| 00001e40 74 61 6c 6c 2e 7e 7e 74 65 6d 70 22 0d 01 8c 79 |tall.~~temp"...y| 00001e50 e7 20 72 30 3c 3e 31 31 20 8c 20 85 20 32 35 35 |. r0<>11 . . 255| 00001e60 2c 22 49 20 63 61 6e 6e 6f 74 20 77 72 69 74 65 |,"I cannot write| 00001e70 20 74 6f 20 74 68 69 73 20 64 69 73 6b 2e 20 49 | to this disk. I| 00001e80 66 20 74 68 69 73 20 69 73 20 79 6f 75 72 20 6d |f this is your m| 00001e90 61 73 74 65 72 20 64 69 73 6b 2c 20 6d 61 6b 65 |aster disk, make| 00001ea0 20 61 20 63 6f 70 79 20 61 6e 64 20 75 73 65 20 | a copy and use | 00001eb0 74 68 61 74 20 74 6f 20 69 6e 73 74 61 6c 6c 20 |that to install | 00001ec0 66 72 6f 6d 22 0d 01 8d 05 e1 0d 01 8e 04 0d 01 |from"...........| 00001ed0 8f 09 dd f2 65 6e 64 0d 01 90 28 c8 99 20 22 57 |....end...(.. "W| 00001ee0 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 6e 22 2c 54 |imp_CloseDown",T| 00001ef0 61 73 6b 48 61 6e 64 6c 65 2c 21 74 61 73 6b 0d |askHandle,!task.| 00001f00 01 91 05 e0 0d 01 92 05 e1 0d 01 93 04 0d 01 94 |................| 00001f10 0c dd f2 44 6f 43 6f 70 79 0d 01 95 08 ea 20 66 |...DoCopy..... f| 00001f20 24 0d 01 96 21 66 24 3d 53 63 61 6e 6e 65 72 46 |$...!f$=ScannerF| 00001f30 4e 61 6d 65 24 28 43 75 72 72 65 6e 74 43 6f 6d |Name$(CurrentCom| 00001f40 62 29 0d 01 97 5f c8 99 20 22 4f 53 5f 46 53 43 |b)..._.. "OS_FSC| 00001f50 6f 6e 74 72 6f 6c 22 2c 32 36 2c 22 3c 53 63 61 |ontrol",26,"<Sca| 00001f60 6e 6e 65 72 24 44 69 72 3e 2e 49 6e 73 74 61 6c |nner$Dir>.Instal| 00001f70 6c 2e 7e 22 2b 66 24 2c 22 3c 53 63 61 6e 6e 65 |l.~"+f$,"<Scanne| 00001f80 72 24 44 69 72 3e 2e 21 43 68 6f 69 63 65 73 22 |r$Dir>.!Choices"| 00001f90 2c 25 30 30 30 30 31 30 30 30 30 30 30 30 30 31 |,%00001000000001| 00001fa0 30 0d 01 98 5d c8 99 20 22 4f 53 5f 46 53 43 6f |0...].. "OS_FSCo| 00001fb0 6e 74 72 6f 6c 22 2c 32 36 2c 22 3c 53 63 61 6e |ntrol",26,"<Scan| 00001fc0 6e 65 72 24 44 69 72 3e 2e 49 6e 73 74 61 6c 6c |ner$Dir>.Install| 00001fd0 2e 22 2b 66 24 2c 22 3c 53 63 61 6e 6e 65 72 24 |."+f$,"<Scanner$| 00001fe0 44 69 72 3e 2e 52 75 6e 49 6e 73 74 22 2c 25 30 |Dir>.RunInst",%0| 00001ff0 30 30 30 31 30 30 30 30 30 30 30 30 31 30 0d 01 |00010000000010..| 00002000 99 05 e1 0d 01 9a 04 0d 01 9b 28 f4 20 20 54 61 |..........(. Ta| 00002010 62 6c 65 73 20 6f 66 20 68 61 72 64 77 61 72 65 |bles of hardware| 00002020 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 73 0d | configurations.| 00002030 01 9c 3c f4 20 20 4e 6f 74 65 20 74 68 65 20 6d |..<. Note the m| 00002040 6f 64 75 6c 65 20 6e 61 6d 65 20 74 68 61 74 20 |odule name that | 00002050 61 63 74 69 76 61 74 65 73 20 74 68 65 20 62 69 |activates the bi| 00002060 74 20 73 68 6f 75 6c 64 20 62 65 0d 01 9d 11 f4 |t should be.....| 00002070 20 20 61 74 20 74 68 65 20 65 6e 64 0d 01 9e 04 | at the end....| 00002080 0d 01 9f 34 dc 20 68 77 5f 41 6c 6c 2c 4e 6f 20 |...4. hw_All,No | 00002090 64 65 64 69 63 61 74 65 64 20 73 63 61 6e 6e 65 |dedicated scanne| 000020a0 72 20 63 61 72 64 2c 55 74 69 6c 69 74 79 4d 6f |r card,UtilityMo| 000020b0 64 75 6c 65 0d 01 a0 3f dc 20 68 77 5f 4a 75 6e |dule...?. hw_Jun| 000020c0 69 6f 72 47 65 6e 65 72 69 63 2c 53 63 61 6e 4c |iorGeneric,ScanL| 000020d0 69 67 68 74 20 4a 75 6e 69 6f 72 20 67 65 6e 65 |ight Junior gene| 000020e0 72 69 63 20 63 61 72 64 2c 53 63 61 6e 4a 75 6e |ric card,ScanJun| 000020f0 69 6f 72 0d 01 a1 4e dc 20 68 77 5f 4a 75 6e 69 |ior...N. hw_Juni| 00002100 6f 72 4d 61 74 61 64 6f 72 2c 53 63 61 6e 4c 69 |orMatador,ScanLi| 00002110 67 68 74 20 4a 75 6e 69 6f 72 20 4d 41 32 35 36 |ght Junior MA256| 00002120 47 20 28 4d 61 74 61 64 6f 72 29 20 63 61 72 64 |G (Matador) card| 00002130 2c 53 63 61 6e 4a 75 6e 69 6f 72 4d 41 32 35 36 |,ScanJuniorMA256| 00002140 47 0d 01 a2 3f dc 20 68 77 5f 53 65 6e 69 6f 72 |G...?. hw_Senior| 00002150 47 65 6e 65 72 69 63 2c 53 63 61 6e 4c 69 67 68 |Generic,ScanLigh| 00002160 74 20 53 65 6e 69 6f 72 20 67 65 6e 65 72 69 63 |t Senior generic| 00002170 20 63 61 72 64 2c 53 63 61 6e 4c 69 67 68 74 32 | card,ScanLight2| 00002180 0d 01 a3 34 dc 20 68 77 5f 4f 6c 64 46 61 78 70 |...4. hw_OldFaxp| 00002190 61 63 6b 2c 4f 6c 64 2d 73 74 79 6c 65 20 73 63 |ack,Old-style sc| 000021a0 61 6e 6e 65 72 20 63 61 72 64 2c 53 63 61 6e 4c |anner card,ScanL| 000021b0 69 67 68 74 0d 01 a4 45 dc 20 68 77 5f 4a 75 6e |ight...E. hw_Jun| 000021c0 69 6f 72 53 4c 32 35 36 49 49 49 2c 53 63 61 6e |iorSL256III,Scan| 000021d0 4c 69 67 68 74 20 4a 75 6e 69 6f 72 20 67 65 6e |Light Junior gen| 000021e0 65 72 69 63 20 63 61 72 64 2c 53 63 61 6e 6e 65 |eric card,Scanne| 000021f0 72 32 35 36 4d 6b 49 49 49 0d 01 a5 36 dc 20 68 |r256MkIII...6. h| 00002200 77 5f 53 63 61 6e 4c 69 67 68 74 56 69 64 65 6f |w_ScanLightVideo| 00002210 2c 53 63 61 6e 4c 69 67 68 74 20 56 69 64 65 6f |,ScanLight Video| 00002220 2c 53 63 61 6e 4c 69 67 68 74 56 69 64 65 6f 0d |,ScanLightVideo.| 00002230 01 a6 34 dc 20 68 77 5f 45 61 67 6c 65 2c 45 61 |..4. hw_Eagle,Ea| 00002240 67 6c 65 20 4d 32 20 4d 75 6c 74 69 6d 65 64 69 |gle M2 Multimedi| 00002250 61 2c 4d 75 6c 74 69 4d 65 64 69 61 53 75 70 70 |a,MultiMediaSupp| 00002260 6f 72 74 0d 01 a7 0c dc 20 2d 31 2c 2a 2c 2a 0d |ort..... -1,*,*.| 00002270 01 a8 04 0d 01 a9 4a f4 20 20 54 61 62 6c 65 73 |......J. Tables| 00002280 20 6f 66 20 73 63 61 6e 6e 65 72 73 20 77 65 20 | of scanners we | 00002290 63 61 6e 20 63 6f 70 65 20 77 69 74 68 2e 20 46 |can cope with. F| 000022a0 69 72 73 74 20 63 6f 6d 65 73 20 61 6e 20 6f 72 |irst comes an or| 000022b0 64 65 72 65 64 20 6c 69 73 74 20 6f 66 0d 01 aa |dered list of...| 000022c0 45 f4 20 20 73 63 61 6e 6e 65 72 20 6e 61 6d 65 |E. scanner name| 000022d0 73 2e 20 45 61 63 68 20 69 73 20 61 74 74 61 63 |s. Each is attac| 000022e0 68 65 64 20 74 6f 20 61 6e 20 49 44 2c 20 61 6e |hed to an ID, an| 000022f0 64 20 65 61 63 68 20 67 65 74 73 20 6c 69 73 74 |d each gets list| 00002300 65 64 0d 01 ab 20 f4 20 20 73 65 70 61 72 61 74 |ed... . separat| 00002310 65 6c 79 20 69 6e 20 74 68 65 20 77 69 6e 64 6f |ely in the windo| 00002320 77 2e 0d 01 ac 04 0d 01 ad 2f dc 20 53 63 61 6e |w......../. Scan| 00002330 4c 69 67 68 74 20 50 72 6f 66 65 73 73 69 6f 6e |Light Profession| 00002340 61 6c 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 |al, | 00002350 20 30 30 30 30 0d 01 ae 2f dc 20 53 63 61 6e 4c | 0000.../. ScanL| 00002360 69 67 68 74 20 32 35 36 20 4d 61 74 61 64 6f 72 |ight 256 Matador| 00002370 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |, | 00002380 30 30 30 31 0d 01 af 2f dc 20 53 63 61 6e 4c 69 |0001.../. ScanLi| 00002390 67 68 74 20 32 35 36 20 4d 48 31 30 35 41 4c 2c |ght 256 MH105AL,| 000023a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 | 0| 000023b0 30 30 32 0d 01 b0 2f dc 20 53 63 61 6e 4c 69 67 |002.../. ScanLig| 000023c0 68 74 20 4a 75 6e 69 6f 72 20 4d 48 31 30 35 41 |ht Junior MH105A| 000023d0 47 2c 20 20 20 20 20 20 20 20 20 20 20 20 30 30 |G, 00| 000023e0 30 33 0d 01 b1 2f dc 20 53 63 61 6e 4c 69 67 68 |03.../. ScanLigh| 000023f0 74 20 4a 75 6e 69 6f 72 20 4d 48 31 30 35 46 2c |t Junior MH105F,| 00002400 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 | 000| 00002410 34 0d 01 b2 2f dc 20 53 63 61 6e 4c 69 67 68 74 |4.../. ScanLight| 00002420 20 4a 75 6e 69 6f 72 20 48 53 33 30 30 30 2c 20 | Junior HS3000, | 00002430 20 20 20 20 20 20 20 20 20 20 20 20 30 30 30 35 | 0005| 00002440 0d 01 b3 2f dc 20 53 63 61 6e 4c 69 67 68 74 20 |.../. ScanLight | 00002450 53 65 6e 69 6f 72 20 4d 48 32 31 36 43 47 2c 20 |Senior MH216CG, | 00002460 20 20 20 20 20 20 20 20 20 20 20 30 30 30 36 0d | 0006.| 00002470 01 b4 2f dc 20 53 63 61 6e 4c 69 67 68 74 20 53 |../. ScanLight S| 00002480 65 6e 69 6f 72 20 4d 48 32 31 36 41 46 2c 20 20 |enior MH216AF, | 00002490 20 20 20 20 20 20 20 20 20 20 30 30 30 37 0d 01 | 0007..| 000024a0 b5 2f dc 20 53 63 61 6e 4c 69 67 68 74 20 53 65 |./. ScanLight Se| 000024b0 6e 69 6f 72 2c 20 20 20 20 20 20 20 20 20 20 20 |nior, | 000024c0 20 20 20 20 20 20 20 20 20 30 30 30 38 0d 01 b6 | 0008...| 000024d0 2f dc 20 53 63 61 6e 4c 69 67 68 74 20 32 35 36 |/. ScanLight 256| 000024e0 20 4d 6b 49 49 49 2c 20 20 20 20 20 20 20 20 20 | MkIII, | 000024f0 20 20 20 20 20 20 20 20 30 30 30 39 0d 01 b7 2f | 0009.../| 00002500 dc 20 53 63 61 6e 4c 69 67 68 74 20 56 69 64 65 |. ScanLight Vide| 00002510 6f 20 26 20 4d 6b 49 49 49 20 73 63 61 6e 6e 65 |o & MkIII scanne| 00002520 72 2c 20 20 20 20 20 30 30 31 30 0d 01 b8 2f dc |r, 0010.../.| 00002530 20 47 72 65 79 48 61 77 6b 20 49 49 20 28 6e 6f | GreyHawk II (no| 00002540 20 73 63 61 6e 6e 65 72 29 2c 20 20 20 20 20 20 | scanner), | 00002550 20 20 20 20 20 20 30 30 31 31 0d 01 b9 2f dc 20 | 0011.../. | 00002560 45 61 67 6c 65 20 4d 32 20 4d 75 6c 74 69 6d 65 |Eagle M2 Multime| 00002570 64 69 61 20 63 61 72 64 2c 20 20 20 20 20 20 20 |dia card, | 00002580 20 20 20 20 20 30 30 31 32 0d 01 ba 2d dc 20 2a | 0012...-. *| 00002590 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |, | 000025a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000025b0 20 20 20 20 2d 31 0d 01 bb 04 0d 01 bc 4c f4 20 | -1.......L. | 000025c0 20 4e 6f 77 20 66 6f 6c 6c 6f 77 73 20 61 20 6c | Now follows a l| 000025d0 69 73 74 20 6f 66 20 68 61 72 64 77 61 72 65 20 |ist of hardware | 000025e0 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 73 20 61 |configurations a| 000025f0 6e 64 20 73 63 61 6e 6e 65 72 73 2e 20 41 6e 79 |nd scanners. Any| 00002600 20 67 69 76 65 6e 0d 01 bd 4b f4 20 20 68 61 72 | given...K. har| 00002610 64 77 61 72 65 20 63 6f 6e 66 69 67 75 72 61 74 |dware configurat| 00002620 69 6f 6e 20 6d 61 79 20 73 75 70 70 6f 72 74 20 |ion may support | 00002630 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 73 63 |more than one sc| 00002640 61 6e 6e 65 72 20 61 6e 64 20 61 20 67 69 76 65 |anner and a give| 00002650 6e 0d 01 be 4d f4 20 20 73 63 61 6e 6e 65 72 20 |n...M. scanner | 00002660 6d 61 79 20 62 65 20 73 75 70 70 6f 72 74 65 64 |may be supported| 00002670 20 6f 6e 20 6d 6f 72 65 20 74 68 61 6e 20 6f 6e | on more than on| 00002680 65 20 68 61 72 64 77 61 72 65 20 63 6f 6e 66 69 |e hardware confi| 00002690 67 75 72 61 74 69 6f 6e 20 28 65 2e 67 2e 0d 01 |guration (e.g...| 000026a0 bf 4a f4 20 20 74 68 65 20 6d 61 74 61 64 6f 72 |.J. the matador| 000026b0 29 2e 20 4e 6f 74 65 20 74 68 61 74 20 61 20 64 |). Note that a d| 000026c0 69 66 66 65 72 65 6e 74 6c 79 20 49 44 27 64 20 |ifferently ID'd | 000026d0 52 4f 4d 20 70 72 6f 62 61 62 6c 79 20 63 6f 75 |ROM probably cou| 000026e0 6e 74 73 20 61 73 20 61 0d 01 c0 28 f4 20 20 64 |nts as a...(. d| 000026f0 69 66 66 65 72 65 6e 74 20 68 61 72 64 77 61 72 |ifferent hardwar| 00002700 65 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e |e configuration.| 00002710 0d 01 c1 05 f4 0d 01 c2 4f f4 20 20 54 68 65 20 |........O. The | 00002720 69 6e 73 74 61 6c 6c 20 73 6f 66 74 77 61 72 65 |install software| 00002730 20 70 69 63 6b 73 20 74 68 65 20 66 69 72 73 74 | picks the first| 00002740 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 20 61 76 61 | combination ava| 00002750 69 6c 61 62 6c 65 20 74 68 61 74 20 69 6e 63 6c |ilable that incl| 00002760 75 64 65 73 0d 01 c3 4f f4 20 20 74 68 65 20 73 |udes...O. the s| 00002770 63 61 6e 6e 65 72 20 73 65 6c 65 63 74 65 64 20 |canner selected | 00002780 61 6e 64 20 68 61 73 20 74 68 65 20 61 70 70 72 |and has the appr| 00002790 6f 70 72 69 61 74 65 20 68 61 72 64 77 61 72 65 |opriate hardware| 000027a0 20 62 69 74 73 20 73 65 74 2e 20 54 68 65 20 6c | bits set. The l| 000027b0 69 73 74 0d 01 c4 0c f4 20 20 72 75 6e 73 3a 0d |ist..... runs:.| 000027c0 01 c5 15 f4 20 20 20 20 20 20 53 63 61 6e 6e 65 |.... Scanne| 000027d0 72 20 49 44 0d 01 c6 1e f4 20 20 20 20 20 20 48 |r ID..... H| 000027e0 61 72 64 77 61 72 65 20 62 69 74 20 6e 75 6d 62 |ardware bit numb| 000027f0 65 72 0d 01 c7 3f f4 20 20 20 20 20 20 46 69 6c |er...?. Fil| 00002800 65 6e 61 6d 65 20 6d 61 78 20 39 20 6c 65 74 74 |ename max 9 lett| 00002810 65 72 73 20 61 73 20 63 68 6f 69 63 65 73 20 66 |ers as choices f| 00002820 69 6c 65 20 68 61 73 20 65 78 74 72 61 20 27 7e |ile has extra '~| 00002830 27 0d 01 c8 04 0d 01 c9 1c dc 20 30 30 30 30 2c |'......... 0000,| 00002840 20 68 77 5f 41 6c 6c 2c 20 53 63 61 6e 50 72 6f | hw_All, ScanPro| 00002850 66 0d 01 ca 04 0d 01 cb 26 dc 20 30 30 30 31 2c |f.......&. 0001,| 00002860 20 68 77 5f 4a 75 6e 69 6f 72 4d 61 74 61 64 6f | hw_JuniorMatado| 00002870 72 2c 20 4d 41 32 35 36 47 2d 32 0d 01 cc 24 dc |r, MA256G-2...$.| 00002880 20 30 30 30 31 2c 20 68 77 5f 4a 75 6e 69 6f 72 | 0001, hw_Junior| 00002890 47 65 6e 65 72 69 63 2c 20 4d 41 32 35 36 47 0d |Generic, MA256G.| 000028a0 01 cd 25 dc 20 30 30 30 32 2c 20 68 77 5f 4a 75 |..%. 0002, hw_Ju| 000028b0 6e 69 6f 72 47 65 6e 65 72 69 63 2c 20 4d 48 31 |niorGeneric, MH1| 000028c0 30 35 41 4c 0d 01 ce 25 dc 20 30 30 30 33 2c 20 |05AL...%. 0003, | 000028d0 68 77 5f 4a 75 6e 69 6f 72 47 65 6e 65 72 69 63 |hw_JuniorGeneric| 000028e0 2c 20 4d 48 31 30 35 41 47 0d 01 cf 24 dc 20 30 |, MH105AG...$. 0| 000028f0 30 30 34 2c 20 68 77 5f 4a 75 6e 69 6f 72 47 65 |004, hw_JuniorGe| 00002900 6e 65 72 69 63 2c 20 4d 48 31 30 35 46 0d 01 d0 |neric, MH105F...| 00002910 24 dc 20 30 30 30 35 2c 20 68 77 5f 4a 75 6e 69 |$. 0005, hw_Juni| 00002920 6f 72 47 65 6e 65 72 69 63 2c 20 48 53 33 30 30 |orGeneric, HS300| 00002930 30 0d 01 d1 04 0d 01 d2 25 dc 20 30 30 30 36 2c |0.......%. 0006,| 00002940 20 68 77 5f 53 65 6e 69 6f 72 47 65 6e 65 72 69 | hw_SeniorGeneri| 00002950 63 2c 20 4d 48 32 31 36 43 47 0d 01 d3 25 dc 20 |c, MH216CG...%. | 00002960 30 30 30 37 2c 20 68 77 5f 53 65 6e 69 6f 72 47 |0007, hw_SeniorG| 00002970 65 6e 65 72 69 63 2c 20 4d 48 32 31 36 61 66 0d |eneric, MH216af.| 00002980 01 d4 04 0d 01 d5 22 dc 20 30 30 30 38 2c 20 68 |......". 0008, h| 00002990 77 5f 4f 6c 64 46 61 78 70 61 63 6b 2c 20 46 61 |w_OldFaxpack, Fa| 000029a0 78 50 61 63 6b 0d 01 d6 04 0d 01 d7 27 dc 20 30 |xPack.......'. 0| 000029b0 30 30 39 2c 20 68 77 5f 4a 75 6e 69 6f 72 53 4c |009, hw_JuniorSL| 000029c0 32 35 36 49 49 49 2c 20 53 4c 32 35 36 49 49 49 |256III, SL256III| 000029d0 0d 01 d8 26 dc 20 30 30 31 30 2c 20 68 77 5f 53 |...&. 0010, hw_S| 000029e0 63 61 6e 4c 69 67 68 74 56 69 64 65 6f 2c 20 53 |canLightVideo, S| 000029f0 4c 56 69 64 65 6f 0d 01 d9 27 dc 20 30 30 31 31 |LVideo...'. 0011| 00002a00 2c 20 68 77 5f 53 63 61 6e 4c 69 67 68 74 56 69 |, hw_ScanLightVi| 00002a10 64 65 6f 2c 20 53 4c 56 69 64 65 6f 4e 0d 01 da |deo, SLVideoN...| 00002a20 04 0d 01 db 1b dc 20 30 30 31 32 2c 20 68 77 5f |...... 0012, hw_| 00002a30 45 61 67 6c 65 2c 20 45 61 67 6c 65 0d 01 dc 0d |Eagle, Eagle....| 00002a40 dc 20 2d 31 2c 30 2c 22 22 0d ff |. -1,0,""..| 00002a4b