Home » Archimedes archive » Acorn User » AU 1998-12.adf » Regulars » StarInfo/Fletcher/!Purple/PatchBas
StarInfo/Fletcher/!Purple/PatchBas
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1998-12.adf » Regulars |
Filename: | StarInfo/Fletcher/!Purple/PatchBas |
Read OK: | ✔ |
File size: | 20D0 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM > Patch for memory compilation 20REM Created by JFPatch v2.54DRAW (07 Apr 1998) LEN Justin Fletcher 30REM Intermediate code file created 04 Jun 1998 40ON ERROR PROCError:END 50PROCpatch_loadfile 60version$="1.00d" 70sp=13:link=14:pc=15 80vbit=1<<28:cbit=1<<29:zbit=1<<30:nbit=1<<31 90P%=&0:O%=MC% 100FOR pass%=4 TO 6 STEP2 110thisfile$="ADFS::Netscape.$.Purple.Patch" 120REM **** Start of main code **** 130PROCpatch_setpc(0) 140[OPT pass% 150 ; **** Add module header **** 160 EQUD 0 ; Start offset 170 EQUD module_init ; Initialisation offset 180 EQUD module_final ; Finalisation offset 190 EQUD 0 ; Service request offset 200 EQUD module_title ; Title string offset 210 EQUD module_help ; Help string offset 220 EQUD module_commands ; Help and command keyword table offset 230: 240.module_title 250 EQUS "PurpleWin"+CHR$0 260 ALIGN 270: 280.module_help 290 EQUS "PurpleWin"+CHR$9+"1.00 ("+MID$(TIME$,5,11)+") � Justin Fletcher"+CHR$0 300 ALIGN 310: 320.module_init 330 STMFD (sp)!,{r0-r5,link} ; Stack registers 340; ***** WimpSWI claim code 350 MOV r0,#18 360 FNLADR("",1,`module_WSWIname,23) 370 SWI "XOS_Module" ; Look up module name 380 FNLADR("VS",0,`module_WSWIerr,23) 390 ADDVS sp,sp,#4 400 LDMVSFD (sp)!,{r1-r5,pc} 410 LDR r0,`module_WSWIword 420 MOV r2,r12 430 MOV r1,#1+(%10<<30) 440 FNLADR("",3,wimp_createwindow,23) 450 MOV r4,#0 460 SWI "Wimp_RegisterFilter" 470 MOV r1,#20+(%10<<30) 480 FNLADR("",3,wimp_createmenu,23) 490 MOV r4,#0 500 SWI "Wimp_RegisterFilter" 510 LDMFD (sp)!,{r0-r5,pc} ; restore registers 520: 530.`module_WSWIerr 540 EQUD &0 550 EQUS "PurpleWin requires the WimpSWIVe module to be present"+CHR$0 560.`module_WSWIname 570 EQUS "WimpSWIVe"+CHR$0 580 ALIGN 590.`module_WSWIword 600 EQUS "WSWI" 610: 620.module_final 630 STMFD (sp)!,{r0-r5,r12,link} ; Stack registers 640; ***** WimpSWI release code 650 LDR r0,`module_WSWIword 660 MOV r2,r12 670 MOV r1,#1+(%00<<30) 680 FNLADR("",3,wimp_createwindow,23) 690 MOV r4,#0 700 SWI "Wimp_RegisterFilter" 710 MOV r1,#20+(%00<<30) 720 FNLADR("",3,wimp_createmenu,23) 730 MOV r4,#0 740 SWI "Wimp_RegisterFilter" 750 LDMFD (sp),{r0-r5} ; restore registers 760 LDMFD (sp)!,{r0-r5,r12,pc} ; Return 770: 780; ***** Module commands table 790.module_commands 800 EQUS "PurpleWin" ; Command name 810 EQUB 0:ALIGN 820 EQUD 0 ; Code to call 830 EQUD &0 ; Flags 840 EQUD 0 ; Syntax pointer 850 EQUD help_purplewin ; Help pointer 860 EQUB 0 870 ALIGN 880: 890; ***** Help and Syntax messages 900.help_purplewin 910 EQUS FNencodedict("The PurpleWin module forces window tools to be the right colours ","PurpleWin") 920 EQUS FNencodedict("so that you can actually read the titlebars. ","PurpleWin") 930 EQUB 0 940 ALIGN 950: 960 ; **** End of module header **** 970: 980 FNcodename("wimp_createwindow") 990.wimp_createwindow 1000 STMFD (sp)!,{r0-r1,link} ; Stack registers 1010; title foreground 1020 LDRB r0,[r1,#32] ; get colour 1030 TEQ r0,#7 ; is it 'black' ? 1040 MOVEQ r0,#0 ; make purple 1050 STRB r0,[r1,#32] ; store back 1060; title background 1070 LDRB r0,[r1,#33] ; get colour 1080 TEQ r0,#2 ; is it 'grey' ? 1090 MOVEQ r0,#5 ; make mid yellow 1100 STRB r0,[r1,#33] ; store back 1110; title focus 1120 LDRB r0,[r1,#38] ; get colour 1130 TEQ r0,#12 ; is it 'cream' ? 1140 MOVEQ r0,#7 ; make mid yellow 1150 STRB r0,[r1,#38] ; store back 1160 LDMFD (sp)!,{r0-r1,pc}^ ; Return from call 1170: 1180 FNcodename("wimp_createmenu") 1190.wimp_createmenu 1200 STMFD (sp)!,{r0-r1,link} ; Stack registers 1210 TST r1,#3 ; is it a menu ? 1220 BNE __z0_notamenu ; no 1230; title foreground 1240 LDRB r0,[r1,#12] ; get colour 1250 TEQ r0,#7 ; is it 'black' ? 1260 MOVEQ r0,#0 ; make purple 1270 STRB r0,[r1,#12] ; store back 1280; title background 1290 LDRB r0,[r1,#13] ; get colour 1300 TEQ r0,#2 ; is it 'grey' ? 1310 MOVEQ r0,#5 ; make mid yellow 1320 STRB r0,[r1,#13] ; store back 1330.__z0_notamenu 1340 LDMFD (sp)!,{r0-r1,pc}^ ; Return from call 1350] 1360REM **** End of main code **** 1370REM Set final pointer to find the length of the code 1380PROCpatch_setpc(0) 1390NEXT pass% 1400PROCpatch_savefile 1430END 1440: 1450REM **** Filing procedures **** 1460: 1470DEF PROCpatch_loadfile 1480DIM MC% &1400 1490codelen=0 1500endofcode=(codelen+&0+3) AND -4:max=codelen 1510L%=endofcode:__cap%=FALSE 1640ENDPROC 1650: 1660DEF PROCpatch_savefile 1670outfile$="<PurpleWin$Dir>.PurpleWin" 1680SYS "OS_File",10,outfile$,,,MC%,max+MC% 1690OSCLI("Settype "+outfile$+" Module") 1700patchdir$="<PurpleWin$Dir>" 1750ENDPROC 1760: 1770REM **** Error Handler **** 1780: 1790DEFPROCError 1800LOCAL ERROR 1810ON ERROR LOCAL:RESTORE ERROR:ERROR EXT ERR,REPORT$+" whilst in error handler at line "+STR$ERL 1920ERROR EXT ERR,REPORT$+" at line "+STR$ERL 1930ENDPROC 1940: 2050REM **** Utility procedures **** 2060: 2070DEFPROCpatch_setpc(n) 2080IF P%-&0>max THENmax=P%-&0 2090P%=n:O%=MC%+n-&0 2100ENDPROC 2110: 2120DEFFNfindfreereg(a,b,c,d):LOCAL n:n=0 2130WHILE n=a OR n=b OR n=c OR n=d 2140 n+=1 2150ENDWHILE 2160=n 2170: 2180REM **** Long ADR macro procedure **** 2190: 2200REM DESC. : ADR equivalent for long address ranges, in 2 insts 2210REM ENTRY : cond$ = two char string, containing the ARM condition 2220REM reg% = 0..15 2230REM pointer% = long range pointer 2240REM COMM. : pass% = OPT variable in the assembler FOR..NEXT loop 2250REM Can only handle 64 KByte ranges 2260DEFFNLADR(cond$,reg%,pointer%,inline) 2270LOCAL cc%,diff%,lo%,hi%,op1%,op2% 2280IF (pass% AND%10)=0 P%+=8:O%+=8:=0 2320IF ABS(pointer%-P%)>65535 THENERROR 999,"LADR can only handle 64 KByte ranges" 2330IFcond$=" " OR cond$="" THENcond$="AL" 2340cc%=INSTR("EQNECSCCMIPLVSVCHILSGELTGTLEALNVLOHS",cond$) 2350IF cc%=0 THENERROR 999,"Unknown condition for LADR ("+cond$+")" ELSE cc%=(cc%-1)DIV2 2360IF cc%=16 THENcc%=3 ELSEIFcc%=17 THENcc%=2 2370diff%=pointer%-P%-8 2380lo%=ABS(diff%)AND&FF 2390hi%=ABS(diff%)AND&FF00 2400IFdiff%>=0THEN 2410 op1%=(cc%<<28)+&028F0000+(reg%<<12)+lo% 2420 op2%=(cc%<<28)+&02800C00+(reg%<<16)+(reg%<<12)+(hi%>>8) 2430ELSE 2440 op1%=(cc%<<28)+&024F0000+(reg%<<12)+lo% 2450 op2%=(cc%<<28)+&02400C00+(reg%<<16)+(reg%<<12)+(hi%>>8) 2460ENDIF 2470[OPT pass%:EQUD op1%:EQUD op2%:] 2480=0 2490: 2500REM **** Code prefix macro routine **** 2510: 2520DEFFNcodename(n$) 2530[OPT pass% 2540 EQUS n$+CHR$0:ALIGN 2550 EQUD &FF000000+((LEN(n$)+4) AND NOT 3) 2560]:=pass% 2570: 2580DEFFNencodedict(a$,c$) 2590LOCAL ch%,n%,b$ 2600REPEAT 2610 ch%=FALSE:RESTORE +1 2620 REPEAT 2630 READ n%,b$ 2640 IF n%<>-1 THEN 2650 IF INSTR(b$,"�")<>0 THENb$=LEFT$(b$,INSTR(b$,"�")-1)+c$+MID$(b$,INSTR(b$,"�")+1) 2660 IF INSTR(b$,"�")<>0 THENb$=LEFT$(b$,INSTR(b$,"�")-1)+CHR$10+MID$(b$,INSTR(b$,"�")+1) 2670 IF INSTR(a$,b$)<>0 THEN 2680 a$=LEFT$(a$,INSTR(a$,b$)-1)+CHR$27+CHR$n%+MID$(a$,INSTR(a$,b$)+LEN(b$)) 2690 ch%=TRUE 2700 ENDIF 2710 ENDIF 2720 UNTILn%=-1 2730UNTILch%=FALSE 2740=a$ 2750DATA 1, "Syntax: *�" 2760DATA 2, " the " 2770DATA 3, "director" 2780DATA 4, "filing system" 2790DATA 5, "current" 2800DATA 6, "to a variable. Other types of value can be assigned with *" 2810DATA 7, "file" 2820DATA 8, "default" 2830DATA 9, "tion" 2840DATA 10, "*Configure" 2850DATA 11, "name" 2860DATA 12, " server" 2870DATA 13, "number" 2880DATA 14, "Syntax: *� <" 2890DATA 15, " one or more files that match the given wildcard" 2900DATA 16, " and " 2910DATA 17, "relocatable module" 2920DATA 18, "�C(onfirm) Prompt for confirmation of each " 2930DATA 19, "sets the " 2940DATA 20, "Syntax: *� [<disc spec.>]" 2950DATA 21, ")�V(erbose) Print information on each file " 2960DATA 23, "spriteLandscape [<XScale> [<YScale> [<Margin> [<Threshold>]]]]]" 2970DATA 24, " is used to print a hard copy of the screen on EPSON-" 2980DATA 25, ".�Options: (use ~ to force off, eg. ~" 2990DATA 26, "printe" 3000DATA 27, "Syntax: *� <filename>" 3010DATA 28, "select" 3020DATA 29, "xpression" 3030DATA 30, "Syntax: *� [" 3040DATA 31, "sprite" 3050DATA 32, " displays" 3060DATA 33, "free space" 3070DATA 34, " {off}" 3080DATA 35, "library" 3090DATA 36, "parameter" 3100DATA 37, "object" 3110DATA 38, " all " 3120DATA 39, "disc" 3130DATA 40, " to " 3140DATA 41, " is " 3150DATA 0, "�" 3160DATA -1, "" 3170: 32639REM JFPatch
$� > Patch for memory compilation ?� Created by JFPatch v2.54� (07 Apr 1998) � Justin Fletcher 0� Intermediate code file created 04 Jun 1998 (� � �Error:� 2�patch_loadfile <version$="1.00d" Fsp=13:link=14:pc=15 P/vbit=1<<28:cbit=1<<29:zbit=1<<30:nbit=1<<31 ZP%=&0:O%=MC% d� pass%=4 � 6 �2 n-thisfile$="ADFS::Netscape.$.Purple.Patch" x"� **** Start of main code **** ��patch_setpc(0) �[OPT pass% �+ ; **** Add module header **** �- EQUD 0 ; Start offset �6 EQUD module_init ; Initialisation offset �4 EQUD module_final ; Finalisation offset �7 EQUD 0 ; Service request offset �4 EQUD module_title ; Title string offset �3 EQUD module_help ; Help string offset �F EQUD module_commands ; Help and command keyword table offset �: �.module_title � EQUS "PurpleWin"+�0 ALIGN : .module_help "F EQUS "PurpleWin"+�9+"1.00 ("+��$,5,11)+") � Justin Fletcher"+�0 , ALIGN 6: @.module_init J7 STMFD (sp)!,{r0-r5,link} ; Stack registers T; ***** WimpSWI claim code ^ MOV r0,#18 h$ �LADR("",1,`module_WSWIname,23) r; SWI "XOS_Module" ; Look up module name |% �LADR("VS",0,`module_WSWIerr,23) � ADDVS sp,sp,#4 � LDMVSFD (sp)!,{r1-r5,pc} �" LDR r0,`module_WSWIword � MOV r2,r12 � MOV r1,#1+(%10<<30) �% �LADR("",3,wimp_createwindow,23) � MOV r4,#0 �$ SWI "Wimp_RegisterFilter" � MOV r1,#20+(%10<<30) �# �LADR("",3,wimp_createmenu,23) � MOV r4,#0 �$ SWI "Wimp_RegisterFilter" �9 LDMFD (sp)!,{r0-r5,pc} ; restore registers : .`module_WSWIerr EQUD &0 &J EQUS "PurpleWin requires the WimpSWIVe module to be present"+�0 0.`module_WSWIname : EQUS "WimpSWIVe"+�0 D ALIGN N.`module_WSWIword X EQUS "WSWI" b: l.module_final v7 STMFD (sp)!,{r0-r5,r12,link} ; Stack registers � ; ***** WimpSWI release code �" LDR r0,`module_WSWIword � MOV r2,r12 � MOV r1,#1+(%00<<30) �% �LADR("",3,wimp_createwindow,23) � MOV r4,#0 �$ SWI "Wimp_RegisterFilter" � MOV r1,#20+(%00<<30) �# �LADR("",3,wimp_createmenu,23) � MOV r4,#0 �$ SWI "Wimp_RegisterFilter" �9 LDMFD (sp),{r0-r5} ; restore registers �. LDMFD (sp)!,{r0-r5,r12,pc} ; Return : !; ***** Module commands table .module_commands - EQUS "PurpleWin" ; Command name * EQUB 0:ALIGN 4- EQUD 0 ; Code to call >& EQUD &0 ; Flags H/ EQUD 0 ; Syntax pointer R- EQUD help_purplewin ; Help pointer \ EQUB 0 f ALIGN p: z$; ***** Help and Syntax messages �.help_purplewin �h EQUS �encodedict("The PurpleWin module forces window tools to be the right colours ","PurpleWin") �T EQUS �encodedict("so that you can actually read the titlebars. ","PurpleWin") � EQUB 0 � ALIGN �: �. ; **** End of module header **** �: �# �codename("wimp_createwindow") �.wimp_createwindow �> STMFD (sp)!,{r0-r1,link} ; Stack registers �; title foreground �9 LDRB r0,[r1,#32] ; get colour > TEQ r0,#7 ; is it 'black' ? 7 �Q r0,#0 ; make purple 9 STRB r0,[r1,#32] ; store back $; title background .9 LDRB r0,[r1,#33] ; get colour 8= TEQ r0,#2 ; is it 'grey' ? B; �Q r0,#5 ; make mid yellow L9 STRB r0,[r1,#33] ; store back V; title focus `9 LDRB r0,[r1,#38] ; get colour j> TEQ r0,#12 ; is it 'cream' ? t; �Q r0,#7 ; make mid yellow ~9 STRB r0,[r1,#38] ; store back �? LDMFD (sp)!,{r0-r1,pc}^ ; Return from call �: �! �codename("wimp_createmenu") �.wimp_createmenu �> STMFD (sp)!,{r0-r1,link} ; Stack registers �= TST r1,#3 ; is it a menu ? �5 BNE __z0_notamenu ; no �; title foreground �9 LDRB r0,[r1,#12] ; get colour �> TEQ r0,#7 ; is it 'black' ? �7 �Q r0,#0 ; make purple �9 STRB r0,[r1,#12] ; store back ; title background 9 LDRB r0,[r1,#13] ; get colour = TEQ r0,#2 ; is it 'grey' ? ; �Q r0,#5 ; make mid yellow (9 STRB r0,[r1,#13] ; store back 2.__z0_notamenu <? LDMFD (sp)!,{r0-r1,pc}^ ; Return from call F] P � **** End of main code **** Z6� Set final pointer to find the length of the code d�patch_setpc(0) n� pass% x�patch_savefile �� �: �!� **** Filing procedures **** �: �� �patch_loadfile �� MC% &1400 � codelen=0 �-endofcode=(codelen+&0+3) � -4:max=codelen �L%=endofcode:__cap%=� h� r: |� �patch_savefile �(outfile$="<PurpleWin$Dir>.PurpleWin" �*ș "OS_File",10,outfile$,,,MC%,max+MC% �$�("Settype "+outfile$+" Module") �patchdir$="<PurpleWin$Dir>" �� �: �� **** Error Handler **** �: ���Error � � =� � �:� �:� � �,�$+" whilst in error handler at line "+Þ �� � �,�$+" at line "+Þ �� �: "� **** Utility procedures **** : ��patch_setpc(n) � P%-&0>max �max=P%-&0 *P%=n:O%=MC%+n-&0 4� >: H"ݤfindfreereg(a,b,c,d):� n:n=0 Rȕ n=a � n=b � n=c � n=d \ n+=1 f� p=n z: �(� **** Long ADR macro procedure **** �: �@� DESC. : ADR equivalent for long address ranges, in 2 insts �C� ENTRY : cond$ = two char string, containing the ARM condition �� reg% = 0..15 �+� pointer% = long range pointer �B� COMM. : pass% = OPT variable in the assembler FOR..NEXT loop �-� Can only handle 64 KByte ranges �&ݤLADR(cond$,reg%,pointer%,inline) �!� cc%,diff%,lo%,hi%,op1%,op2% �#� (pass% �%10)=0 P%+=8:O%+=8:=0 H� �(pointer%-P%)>65535 �� 999,"LADR can only handle 64 KByte ranges" '�cond$=" " � cond$="" �cond$="AL" $6cc%=�"EQNECSCCMIPLVSVCHILSGELTGTLEALNVLOHS",cond$) .K� cc%=0 �� 999,"Unknown condition for LADR ("+cond$+")" � cc%=(cc%-1)�2 8#� cc%=16 �cc%=3 ��cc%=17 �cc%=2 Bdiff%=pointer%-P%-8 Llo%=�(diff%)�&FF Vhi%=�(diff%)�&FF00 `�diff%>=0� j, op1%=(cc%<<28)+&028F0000+(reg%<<12)+lo% t< op2%=(cc%<<28)+&02800C00+(reg%<<16)+(reg%<<12)+(hi%>>8) ~� �, op1%=(cc%<<28)+&024F0000+(reg%<<12)+lo% �< op2%=(cc%<<28)+&02400C00+(reg%<<16)+(reg%<<12)+(hi%>>8) �� �$[OPT pass%:EQUD op1%:EQUD op2%:] �=0 �: �)� **** Code prefix macro routine **** �: �ݤcodename(n$) �[OPT pass% � EQUS n$+�0:ALIGN �* EQUD &FF000000+((�(n$)+4) � � 3) ]:=pass% : ݤencodedict(a$,c$) � ch%,n%,b$ (� 2 ch%=�:� +1 < � F � n%,b$ P � n%<>-1 � Z; � �b$,"�")<>0 �b$=�b$,�b$,"�")-1)+c$+�b$,�b$,"�")+1) d< � �b$,"�")<>0 �b$=�b$,�b$,"�")-1)+�10+�b$,�b$,"�")+1) n � �a$,b$)<>0 � x4 a$=�a$,�a$,b$)-1)+�27+�n%+�a$,�a$,b$)+�(b$)) � ch%=� � � � � � �n%=-1 � �ch%=� �=a$ �� 1, "Syntax: *�" �� 2, " the " �� 3, "director" �� 4, "filing system" �� 5, "current" �E� 6, "to a variable. Other types of value can be assigned with *" �� 7, "file" � 8, "default" � 9, "tion" � 10, "*Configure" "� 11, "name" ,� 12, " server" 6� 13, "number" @� 14, "Syntax: *� <" J<� 15, " one or more files that match the given wildcard" T� 16, " and " ^� 17, "relocatable module" h7� 18, "�C(onfirm) Prompt for confirmation of each " r� 19, "sets the " |%� 20, "Syntax: *� [<disc spec.>]" �7� 21, ")�V(erbose) Print information on each file " �K� 23, "spriteLandscape [<XScale> [<YScale> [<Margin> [<Threshold>]]]]]" �A� 24, " is used to print a hard copy of the screen on EPSON-" �1� 25, ".�Options: (use ~ to force off, eg. ~" �� 26, "printe" �!� 27, "Syntax: *� <filename>" �� 28, "select" �� 29, "xpression" �� 30, "Syntax: *� [" �� 31, "sprite" �� 32, " displays" �� 33, "free space" �� 34, " {off}" � 35, "library" � 36, "parameter" � 37, "object" &� 38, " all " 0� 39, "disc" :� 40, " to " D� 41, " is " N� 0, "�" X� -1, "" b: � JFPatch �
00000000 0d 00 0a 24 f4 20 3e 20 50 61 74 63 68 20 66 6f |...$. > Patch fo| 00000010 72 20 6d 65 6d 6f 72 79 20 63 6f 6d 70 69 6c 61 |r memory compila| 00000020 74 69 6f 6e 0d 00 14 3f f4 20 43 72 65 61 74 65 |tion...?. Create| 00000030 64 20 62 79 20 4a 46 50 61 74 63 68 20 76 32 2e |d by JFPatch v2.| 00000040 35 34 df 20 28 30 37 20 41 70 72 20 31 39 39 38 |54. (07 Apr 1998| 00000050 29 20 a9 20 4a 75 73 74 69 6e 20 46 6c 65 74 63 |) . Justin Fletc| 00000060 68 65 72 0d 00 1e 30 f4 20 49 6e 74 65 72 6d 65 |her...0. Interme| 00000070 64 69 61 74 65 20 63 6f 64 65 20 66 69 6c 65 20 |diate code file | 00000080 63 72 65 61 74 65 64 20 30 34 20 4a 75 6e 20 31 |created 04 Jun 1| 00000090 39 39 38 0d 00 28 10 ee 20 85 20 f2 45 72 72 6f |998..(.. . .Erro| 000000a0 72 3a e0 0d 00 32 13 f2 70 61 74 63 68 5f 6c 6f |r:...2..patch_lo| 000000b0 61 64 66 69 6c 65 0d 00 3c 14 76 65 72 73 69 6f |adfile..<.versio| 000000c0 6e 24 3d 22 31 2e 30 30 64 22 0d 00 46 17 73 70 |n$="1.00d"..F.sp| 000000d0 3d 31 33 3a 6c 69 6e 6b 3d 31 34 3a 70 63 3d 31 |=13:link=14:pc=1| 000000e0 35 0d 00 50 2f 76 62 69 74 3d 31 3c 3c 32 38 3a |5..P/vbit=1<<28:| 000000f0 63 62 69 74 3d 31 3c 3c 32 39 3a 7a 62 69 74 3d |cbit=1<<29:zbit=| 00000100 31 3c 3c 33 30 3a 6e 62 69 74 3d 31 3c 3c 33 31 |1<<30:nbit=1<<31| 00000110 0d 00 5a 10 50 25 3d 26 30 3a 4f 25 3d 4d 43 25 |..Z.P%=&0:O%=MC%| 00000120 0d 00 64 14 e3 20 70 61 73 73 25 3d 34 20 b8 20 |..d.. pass%=4 . | 00000130 36 20 88 32 0d 00 6e 2d 74 68 69 73 66 69 6c 65 |6 .2..n-thisfile| 00000140 24 3d 22 41 44 46 53 3a 3a 4e 65 74 73 63 61 70 |$="ADFS::Netscap| 00000150 65 2e 24 2e 50 75 72 70 6c 65 2e 50 61 74 63 68 |e.$.Purple.Patch| 00000160 22 0d 00 78 22 f4 20 2a 2a 2a 2a 20 53 74 61 72 |"..x". **** Star| 00000170 74 20 6f 66 20 6d 61 69 6e 20 63 6f 64 65 20 2a |t of main code *| 00000180 2a 2a 2a 0d 00 82 13 f2 70 61 74 63 68 5f 73 65 |***.....patch_se| 00000190 74 70 63 28 30 29 0d 00 8c 0e 5b 4f 50 54 20 70 |tpc(0)....[OPT p| 000001a0 61 73 73 25 0d 00 96 2b 20 20 20 20 20 20 20 20 |ass%...+ | 000001b0 20 20 3b 20 2a 2a 2a 2a 20 41 64 64 20 6d 6f 64 | ; **** Add mod| 000001c0 75 6c 65 20 68 65 61 64 65 72 20 2a 2a 2a 2a 0d |ule header ****.| 000001d0 00 a0 2d 20 20 20 45 51 55 44 20 30 20 20 20 20 |..- EQUD 0 | 000001e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 | ; | 000001f0 53 74 61 72 74 20 6f 66 66 73 65 74 0d 00 aa 36 |Start offset...6| 00000200 20 20 20 45 51 55 44 20 6d 6f 64 75 6c 65 5f 69 | EQUD module_i| 00000210 6e 69 74 20 20 20 20 20 20 20 20 3b 20 49 6e 69 |nit ; Ini| 00000220 74 69 61 6c 69 73 61 74 69 6f 6e 20 6f 66 66 73 |tialisation offs| 00000230 65 74 0d 00 b4 34 20 20 20 45 51 55 44 20 6d 6f |et...4 EQUD mo| 00000240 64 75 6c 65 5f 66 69 6e 61 6c 20 20 20 20 20 20 |dule_final | 00000250 20 3b 20 46 69 6e 61 6c 69 73 61 74 69 6f 6e 20 | ; Finalisation | 00000260 6f 66 66 73 65 74 0d 00 be 37 20 20 20 45 51 55 |offset...7 EQU| 00000270 44 20 30 20 20 20 20 20 20 20 20 20 20 20 20 20 |D 0 | 00000280 20 20 20 20 20 3b 20 53 65 72 76 69 63 65 20 72 | ; Service r| 00000290 65 71 75 65 73 74 20 6f 66 66 73 65 74 0d 00 c8 |equest offset...| 000002a0 34 20 20 20 45 51 55 44 20 6d 6f 64 75 6c 65 5f |4 EQUD module_| 000002b0 74 69 74 6c 65 20 20 20 20 20 20 20 3b 20 54 69 |title ; Ti| 000002c0 74 6c 65 20 73 74 72 69 6e 67 20 6f 66 66 73 65 |tle string offse| 000002d0 74 0d 00 d2 33 20 20 20 45 51 55 44 20 6d 6f 64 |t...3 EQUD mod| 000002e0 75 6c 65 5f 68 65 6c 70 20 20 20 20 20 20 20 20 |ule_help | 000002f0 3b 20 48 65 6c 70 20 73 74 72 69 6e 67 20 6f 66 |; Help string of| 00000300 66 73 65 74 0d 00 dc 46 20 20 20 45 51 55 44 20 |fset...F EQUD | 00000310 6d 6f 64 75 6c 65 5f 63 6f 6d 6d 61 6e 64 73 20 |module_commands | 00000320 20 20 20 3b 20 48 65 6c 70 20 61 6e 64 20 63 6f | ; Help and co| 00000330 6d 6d 61 6e 64 20 6b 65 79 77 6f 72 64 20 74 61 |mmand keyword ta| 00000340 62 6c 65 20 6f 66 66 73 65 74 0d 00 e6 05 3a 0d |ble offset....:.| 00000350 00 f0 11 2e 6d 6f 64 75 6c 65 5f 74 69 74 6c 65 |....module_title| 00000360 0d 00 fa 1a 20 20 20 45 51 55 53 20 22 50 75 72 |.... EQUS "Pur| 00000370 70 6c 65 57 69 6e 22 2b bd 30 0d 01 04 0c 20 20 |pleWin"+.0.... | 00000380 20 41 4c 49 47 4e 0d 01 0e 05 3a 0d 01 18 10 2e | ALIGN....:.....| 00000390 6d 6f 64 75 6c 65 5f 68 65 6c 70 0d 01 22 46 20 |module_help.."F | 000003a0 20 20 45 51 55 53 20 22 50 75 72 70 6c 65 57 69 | EQUS "PurpleWi| 000003b0 6e 22 2b bd 39 2b 22 31 2e 30 30 20 28 22 2b c1 |n"+.9+"1.00 ("+.| 000003c0 91 24 2c 35 2c 31 31 29 2b 22 29 20 a9 20 4a 75 |.$,5,11)+") . Ju| 000003d0 73 74 69 6e 20 46 6c 65 74 63 68 65 72 22 2b bd |stin Fletcher"+.| 000003e0 30 0d 01 2c 0c 20 20 20 41 4c 49 47 4e 0d 01 36 |0..,. ALIGN..6| 000003f0 05 3a 0d 01 40 10 2e 6d 6f 64 75 6c 65 5f 69 6e |.:..@..module_in| 00000400 69 74 0d 01 4a 37 20 20 20 53 54 4d 46 44 20 20 |it..J7 STMFD | 00000410 20 28 73 70 29 21 2c 7b 72 30 2d 72 35 2c 6c 69 | (sp)!,{r0-r5,li| 00000420 6e 6b 7d 20 20 20 20 20 3b 20 53 74 61 63 6b 20 |nk} ; Stack | 00000430 72 65 67 69 73 74 65 72 73 0d 01 54 1e 3b 20 2a |registers..T.; *| 00000440 2a 2a 2a 2a 20 57 69 6d 70 53 57 49 20 63 6c 61 |**** WimpSWI cla| 00000450 69 6d 20 63 6f 64 65 0d 01 5e 15 20 20 20 4d 4f |im code..^. MO| 00000460 56 20 20 20 20 20 72 30 2c 23 31 38 0d 01 68 24 |V r0,#18..h$| 00000470 20 a4 4c 41 44 52 28 22 22 2c 31 2c 60 6d 6f 64 | .LADR("",1,`mod| 00000480 75 6c 65 5f 57 53 57 49 6e 61 6d 65 2c 32 33 29 |ule_WSWIname,23)| 00000490 0d 01 72 3b 20 20 20 53 57 49 20 20 20 20 20 22 |..r; SWI "| 000004a0 58 4f 53 5f 4d 6f 64 75 6c 65 22 20 20 20 20 20 |XOS_Module" | 000004b0 20 20 20 20 20 20 3b 20 4c 6f 6f 6b 20 75 70 20 | ; Look up | 000004c0 6d 6f 64 75 6c 65 20 6e 61 6d 65 0d 01 7c 25 20 |module name..|% | 000004d0 a4 4c 41 44 52 28 22 56 53 22 2c 30 2c 60 6d 6f |.LADR("VS",0,`mo| 000004e0 64 75 6c 65 5f 57 53 57 49 65 72 72 2c 32 33 29 |dule_WSWIerr,23)| 000004f0 0d 01 86 17 20 20 20 41 44 44 56 53 20 20 20 73 |.... ADDVS s| 00000500 70 2c 73 70 2c 23 34 0d 01 90 1f 20 20 20 4c 44 |p,sp,#4.... LD| 00000510 4d 56 53 46 44 20 28 73 70 29 21 2c 7b 72 31 2d |MVSFD (sp)!,{r1-| 00000520 72 35 2c 70 63 7d 0d 01 9a 22 20 20 20 4c 44 52 |r5,pc}..." LDR| 00000530 20 20 20 20 20 72 30 2c 60 6d 6f 64 75 6c 65 5f | r0,`module_| 00000540 57 53 57 49 77 6f 72 64 0d 01 a4 15 20 20 20 4d |WSWIword.... M| 00000550 4f 56 20 20 20 20 20 72 32 2c 72 31 32 0d 01 ae |OV r2,r12...| 00000560 1e 20 20 20 4d 4f 56 20 20 20 20 20 72 31 2c 23 |. MOV r1,#| 00000570 31 2b 28 25 31 30 3c 3c 33 30 29 0d 01 b8 25 20 |1+(%10<<30)...% | 00000580 a4 4c 41 44 52 28 22 22 2c 33 2c 77 69 6d 70 5f |.LADR("",3,wimp_| 00000590 63 72 65 61 74 65 77 69 6e 64 6f 77 2c 32 33 29 |createwindow,23)| 000005a0 0d 01 c2 14 20 20 20 4d 4f 56 20 20 20 20 20 72 |.... MOV r| 000005b0 34 2c 23 30 0d 01 cc 24 20 20 20 53 57 49 20 20 |4,#0...$ SWI | 000005c0 20 20 20 22 57 69 6d 70 5f 52 65 67 69 73 74 65 | "Wimp_Registe| 000005d0 72 46 69 6c 74 65 72 22 0d 01 d6 1f 20 20 20 4d |rFilter".... M| 000005e0 4f 56 20 20 20 20 20 72 31 2c 23 32 30 2b 28 25 |OV r1,#20+(%| 000005f0 31 30 3c 3c 33 30 29 0d 01 e0 23 20 a4 4c 41 44 |10<<30)...# .LAD| 00000600 52 28 22 22 2c 33 2c 77 69 6d 70 5f 63 72 65 61 |R("",3,wimp_crea| 00000610 74 65 6d 65 6e 75 2c 32 33 29 0d 01 ea 14 20 20 |temenu,23).... | 00000620 20 4d 4f 56 20 20 20 20 20 72 34 2c 23 30 0d 01 | MOV r4,#0..| 00000630 f4 24 20 20 20 53 57 49 20 20 20 20 20 22 57 69 |.$ SWI "Wi| 00000640 6d 70 5f 52 65 67 69 73 74 65 72 46 69 6c 74 65 |mp_RegisterFilte| 00000650 72 22 0d 01 fe 39 20 20 20 4c 44 4d 46 44 20 20 |r"...9 LDMFD | 00000660 20 28 73 70 29 21 2c 7b 72 30 2d 72 35 2c 70 63 | (sp)!,{r0-r5,pc| 00000670 7d 20 20 20 20 20 20 20 3b 20 72 65 73 74 6f 72 |} ; restor| 00000680 65 20 72 65 67 69 73 74 65 72 73 0d 02 08 05 3a |e registers....:| 00000690 0d 02 12 14 2e 60 6d 6f 64 75 6c 65 5f 57 53 57 |.....`module_WSW| 000006a0 49 65 72 72 0d 02 1c 12 20 20 20 45 51 55 44 20 |Ierr.... EQUD | 000006b0 20 20 20 20 26 30 0d 02 26 4a 20 20 20 45 51 55 | &0..&J EQU| 000006c0 53 20 20 20 20 20 22 50 75 72 70 6c 65 57 69 6e |S "PurpleWin| 000006d0 20 72 65 71 75 69 72 65 73 20 74 68 65 20 57 69 | requires the Wi| 000006e0 6d 70 53 57 49 56 65 20 6d 6f 64 75 6c 65 20 74 |mpSWIVe module t| 000006f0 6f 20 62 65 20 70 72 65 73 65 6e 74 22 2b bd 30 |o be present"+.0| 00000700 0d 02 30 15 2e 60 6d 6f 64 75 6c 65 5f 57 53 57 |..0..`module_WSW| 00000710 49 6e 61 6d 65 0d 02 3a 1e 20 20 20 45 51 55 53 |Iname..:. EQUS| 00000720 20 20 20 20 20 22 57 69 6d 70 53 57 49 56 65 22 | "WimpSWIVe"| 00000730 2b bd 30 0d 02 44 0c 20 20 20 41 4c 49 47 4e 0d |+.0..D. ALIGN.| 00000740 02 4e 15 2e 60 6d 6f 64 75 6c 65 5f 57 53 57 49 |.N..`module_WSWI| 00000750 77 6f 72 64 0d 02 58 16 20 20 20 45 51 55 53 20 |word..X. EQUS | 00000760 20 20 20 20 22 57 53 57 49 22 0d 02 62 05 3a 0d | "WSWI"..b.:.| 00000770 02 6c 11 2e 6d 6f 64 75 6c 65 5f 66 69 6e 61 6c |.l..module_final| 00000780 0d 02 76 37 20 20 20 53 54 4d 46 44 20 20 20 28 |..v7 STMFD (| 00000790 73 70 29 21 2c 7b 72 30 2d 72 35 2c 72 31 32 2c |sp)!,{r0-r5,r12,| 000007a0 6c 69 6e 6b 7d 20 3b 20 53 74 61 63 6b 20 72 65 |link} ; Stack re| 000007b0 67 69 73 74 65 72 73 0d 02 80 20 3b 20 2a 2a 2a |gisters... ; ***| 000007c0 2a 2a 20 57 69 6d 70 53 57 49 20 72 65 6c 65 61 |** WimpSWI relea| 000007d0 73 65 20 63 6f 64 65 0d 02 8a 22 20 20 20 4c 44 |se code..." LD| 000007e0 52 20 20 20 20 20 72 30 2c 60 6d 6f 64 75 6c 65 |R r0,`module| 000007f0 5f 57 53 57 49 77 6f 72 64 0d 02 94 15 20 20 20 |_WSWIword.... | 00000800 4d 4f 56 20 20 20 20 20 72 32 2c 72 31 32 0d 02 |MOV r2,r12..| 00000810 9e 1e 20 20 20 4d 4f 56 20 20 20 20 20 72 31 2c |.. MOV r1,| 00000820 23 31 2b 28 25 30 30 3c 3c 33 30 29 0d 02 a8 25 |#1+(%00<<30)...%| 00000830 20 a4 4c 41 44 52 28 22 22 2c 33 2c 77 69 6d 70 | .LADR("",3,wimp| 00000840 5f 63 72 65 61 74 65 77 69 6e 64 6f 77 2c 32 33 |_createwindow,23| 00000850 29 0d 02 b2 14 20 20 20 4d 4f 56 20 20 20 20 20 |).... MOV | 00000860 72 34 2c 23 30 0d 02 bc 24 20 20 20 53 57 49 20 |r4,#0...$ SWI | 00000870 20 20 20 20 22 57 69 6d 70 5f 52 65 67 69 73 74 | "Wimp_Regist| 00000880 65 72 46 69 6c 74 65 72 22 0d 02 c6 1f 20 20 20 |erFilter".... | 00000890 4d 4f 56 20 20 20 20 20 72 31 2c 23 32 30 2b 28 |MOV r1,#20+(| 000008a0 25 30 30 3c 3c 33 30 29 0d 02 d0 23 20 a4 4c 41 |%00<<30)...# .LA| 000008b0 44 52 28 22 22 2c 33 2c 77 69 6d 70 5f 63 72 65 |DR("",3,wimp_cre| 000008c0 61 74 65 6d 65 6e 75 2c 32 33 29 0d 02 da 14 20 |atemenu,23).... | 000008d0 20 20 4d 4f 56 20 20 20 20 20 72 34 2c 23 30 0d | MOV r4,#0.| 000008e0 02 e4 24 20 20 20 53 57 49 20 20 20 20 20 22 57 |..$ SWI "W| 000008f0 69 6d 70 5f 52 65 67 69 73 74 65 72 46 69 6c 74 |imp_RegisterFilt| 00000900 65 72 22 0d 02 ee 39 20 20 20 4c 44 4d 46 44 20 |er"...9 LDMFD | 00000910 20 20 28 73 70 29 2c 7b 72 30 2d 72 35 7d 20 20 | (sp),{r0-r5} | 00000920 20 20 20 20 20 20 20 20 20 3b 20 72 65 73 74 6f | ; resto| 00000930 72 65 20 72 65 67 69 73 74 65 72 73 0d 02 f8 2e |re registers....| 00000940 20 20 20 4c 44 4d 46 44 20 20 20 28 73 70 29 21 | LDMFD (sp)!| 00000950 2c 7b 72 30 2d 72 35 2c 72 31 32 2c 70 63 7d 20 |,{r0-r5,r12,pc} | 00000960 20 20 3b 20 52 65 74 75 72 6e 0d 03 02 05 3a 0d | ; Return....:.| 00000970 03 0c 21 3b 20 2a 2a 2a 2a 2a 20 4d 6f 64 75 6c |..!; ***** Modul| 00000980 65 20 63 6f 6d 6d 61 6e 64 73 20 74 61 62 6c 65 |e commands table| 00000990 0d 03 16 14 2e 6d 6f 64 75 6c 65 5f 63 6f 6d 6d |.....module_comm| 000009a0 61 6e 64 73 0d 03 20 2d 20 20 20 45 51 55 53 20 |ands.. - EQUS | 000009b0 22 50 75 72 70 6c 65 57 69 6e 22 20 20 20 20 20 |"PurpleWin" | 000009c0 20 20 20 3b 20 43 6f 6d 6d 61 6e 64 20 6e 61 6d | ; Command nam| 000009d0 65 0d 03 2a 13 20 20 20 45 51 55 42 20 30 3a 41 |e..*. EQUB 0:A| 000009e0 4c 49 47 4e 0d 03 34 2d 20 20 20 45 51 55 44 20 |LIGN..4- EQUD | 000009f0 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |0 | 00000a00 20 20 20 3b 20 43 6f 64 65 20 74 6f 20 63 61 6c | ; Code to cal| 00000a10 6c 0d 03 3e 26 20 20 20 45 51 55 44 20 26 30 20 |l..>& EQUD &0 | 00000a20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000a30 3b 20 46 6c 61 67 73 0d 03 48 2f 20 20 20 45 51 |; Flags..H/ EQ| 00000a40 55 44 20 30 20 20 20 20 20 20 20 20 20 20 20 20 |UD 0 | 00000a50 20 20 20 20 20 20 3b 20 53 79 6e 74 61 78 20 70 | ; Syntax p| 00000a60 6f 69 6e 74 65 72 0d 03 52 2d 20 20 20 45 51 55 |ointer..R- EQU| 00000a70 44 20 68 65 6c 70 5f 70 75 72 70 6c 65 77 69 6e |D help_purplewin| 00000a80 20 20 20 20 20 3b 20 48 65 6c 70 20 70 6f 69 6e | ; Help poin| 00000a90 74 65 72 0d 03 5c 0d 20 20 20 45 51 55 42 20 30 |ter..\. EQUB 0| 00000aa0 0d 03 66 0c 20 20 20 41 4c 49 47 4e 0d 03 70 05 |..f. ALIGN..p.| 00000ab0 3a 0d 03 7a 24 3b 20 2a 2a 2a 2a 2a 20 48 65 6c |:..z$; ***** Hel| 00000ac0 70 20 61 6e 64 20 53 79 6e 74 61 78 20 6d 65 73 |p and Syntax mes| 00000ad0 73 61 67 65 73 0d 03 84 13 2e 68 65 6c 70 5f 70 |sages.....help_p| 00000ae0 75 72 70 6c 65 77 69 6e 0d 03 8e 68 20 20 20 45 |urplewin...h E| 00000af0 51 55 53 20 a4 65 6e 63 6f 64 65 64 69 63 74 28 |QUS .encodedict(| 00000b00 22 54 68 65 20 50 75 72 70 6c 65 57 69 6e 20 6d |"The PurpleWin m| 00000b10 6f 64 75 6c 65 20 66 6f 72 63 65 73 20 77 69 6e |odule forces win| 00000b20 64 6f 77 20 74 6f 6f 6c 73 20 74 6f 20 62 65 20 |dow tools to be | 00000b30 74 68 65 20 72 69 67 68 74 20 63 6f 6c 6f 75 72 |the right colour| 00000b40 73 20 22 2c 22 50 75 72 70 6c 65 57 69 6e 22 29 |s ","PurpleWin")| 00000b50 0d 03 98 54 20 20 20 45 51 55 53 20 a4 65 6e 63 |...T EQUS .enc| 00000b60 6f 64 65 64 69 63 74 28 22 73 6f 20 74 68 61 74 |odedict("so that| 00000b70 20 79 6f 75 20 63 61 6e 20 61 63 74 75 61 6c 6c | you can actuall| 00000b80 79 20 72 65 61 64 20 74 68 65 20 74 69 74 6c 65 |y read the title| 00000b90 62 61 72 73 2e 20 22 2c 22 50 75 72 70 6c 65 57 |bars. ","PurpleW| 00000ba0 69 6e 22 29 0d 03 a2 0d 20 20 20 45 51 55 42 20 |in").... EQUB | 00000bb0 30 0d 03 ac 0c 20 20 20 41 4c 49 47 4e 0d 03 b6 |0.... ALIGN...| 00000bc0 05 3a 0d 03 c0 2e 20 20 20 20 20 20 20 20 20 20 |.:.... | 00000bd0 3b 20 2a 2a 2a 2a 20 45 6e 64 20 6f 66 20 6d 6f |; **** End of mo| 00000be0 64 75 6c 65 20 68 65 61 64 65 72 20 2a 2a 2a 2a |dule header ****| 00000bf0 0d 03 ca 05 3a 0d 03 d4 23 20 a4 63 6f 64 65 6e |....:...# .coden| 00000c00 61 6d 65 28 22 77 69 6d 70 5f 63 72 65 61 74 65 |ame("wimp_create| 00000c10 77 69 6e 64 6f 77 22 29 0d 03 de 16 2e 77 69 6d |window").....wim| 00000c20 70 5f 63 72 65 61 74 65 77 69 6e 64 6f 77 0d 03 |p_createwindow..| 00000c30 e8 3e 20 20 20 53 54 4d 46 44 20 20 20 28 73 70 |.> STMFD (sp| 00000c40 29 21 2c 7b 72 30 2d 72 31 2c 6c 69 6e 6b 7d 20 |)!,{r0-r1,link} | 00000c50 20 20 20 20 20 20 20 20 20 20 20 3b 20 53 74 61 | ; Sta| 00000c60 63 6b 20 72 65 67 69 73 74 65 72 73 0d 03 f2 16 |ck registers....| 00000c70 3b 20 74 69 74 6c 65 20 66 6f 72 65 67 72 6f 75 |; title foregrou| 00000c80 6e 64 0d 03 fc 39 20 20 20 4c 44 52 42 20 20 20 |nd...9 LDRB | 00000c90 20 72 30 2c 5b 72 31 2c 23 33 32 5d 20 20 20 20 | r0,[r1,#32] | 00000ca0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00000cb0 20 67 65 74 20 63 6f 6c 6f 75 72 0d 04 06 3e 20 | get colour...> | 00000cc0 20 20 54 45 51 20 20 20 20 20 72 30 2c 23 37 20 | TEQ r0,#7 | 00000cd0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000ce0 20 20 20 20 20 20 20 20 3b 20 69 73 20 69 74 20 | ; is it | 00000cf0 27 62 6c 61 63 6b 27 20 3f 0d 04 10 37 20 20 20 |'black' ?...7 | 00000d00 ec 51 20 20 20 72 30 2c 23 30 20 20 20 20 20 20 |.Q r0,#0 | 00000d10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000d20 20 20 20 3b 20 6d 61 6b 65 20 70 75 72 70 6c 65 | ; make purple| 00000d30 0d 04 1a 39 20 20 20 53 54 52 42 20 20 20 20 72 |...9 STRB r| 00000d40 30 2c 5b 72 31 2c 23 33 32 5d 20 20 20 20 20 20 |0,[r1,#32] | 00000d50 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 73 | ; s| 00000d60 74 6f 72 65 20 62 61 63 6b 0d 04 24 16 3b 20 74 |tore back..$.; t| 00000d70 69 74 6c 65 20 62 61 63 6b 67 72 6f 75 6e 64 0d |itle background.| 00000d80 04 2e 39 20 20 20 4c 44 52 42 20 20 20 20 72 30 |..9 LDRB r0| 00000d90 2c 5b 72 31 2c 23 33 33 5d 20 20 20 20 20 20 20 |,[r1,#33] | 00000da0 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 67 65 | ; ge| 00000db0 74 20 63 6f 6c 6f 75 72 0d 04 38 3d 20 20 20 54 |t colour..8= T| 00000dc0 45 51 20 20 20 20 20 72 30 2c 23 32 20 20 20 20 |EQ r0,#2 | 00000dd0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000de0 20 20 20 20 20 3b 20 69 73 20 69 74 20 27 67 72 | ; is it 'gr| 00000df0 65 79 27 20 3f 0d 04 42 3b 20 20 20 ec 51 20 20 |ey' ?..B; .Q | 00000e00 20 72 30 2c 23 35 20 20 20 20 20 20 20 20 20 20 | r0,#5 | 00000e10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00000e20 20 6d 61 6b 65 20 6d 69 64 20 79 65 6c 6c 6f 77 | make mid yellow| 00000e30 0d 04 4c 39 20 20 20 53 54 52 42 20 20 20 20 72 |..L9 STRB r| 00000e40 30 2c 5b 72 31 2c 23 33 33 5d 20 20 20 20 20 20 |0,[r1,#33] | 00000e50 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 73 | ; s| 00000e60 74 6f 72 65 20 62 61 63 6b 0d 04 56 11 3b 20 74 |tore back..V.; t| 00000e70 69 74 6c 65 20 66 6f 63 75 73 0d 04 60 39 20 20 |itle focus..`9 | 00000e80 20 4c 44 52 42 20 20 20 20 72 30 2c 5b 72 31 2c | LDRB r0,[r1,| 00000e90 23 33 38 5d 20 20 20 20 20 20 20 20 20 20 20 20 |#38] | 00000ea0 20 20 20 20 20 20 20 3b 20 67 65 74 20 63 6f 6c | ; get col| 00000eb0 6f 75 72 0d 04 6a 3e 20 20 20 54 45 51 20 20 20 |our..j> TEQ | 00000ec0 20 20 72 30 2c 23 31 32 20 20 20 20 20 20 20 20 | r0,#12 | 00000ed0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000ee0 3b 20 69 73 20 69 74 20 27 63 72 65 61 6d 27 20 |; is it 'cream' | 00000ef0 3f 0d 04 74 3b 20 20 20 ec 51 20 20 20 72 30 2c |?..t; .Q r0,| 00000f00 23 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |#7 | 00000f10 20 20 20 20 20 20 20 20 20 20 20 3b 20 6d 61 6b | ; mak| 00000f20 65 20 6d 69 64 20 79 65 6c 6c 6f 77 0d 04 7e 39 |e mid yellow..~9| 00000f30 20 20 20 53 54 52 42 20 20 20 20 72 30 2c 5b 72 | STRB r0,[r| 00000f40 31 2c 23 33 38 5d 20 20 20 20 20 20 20 20 20 20 |1,#38] | 00000f50 20 20 20 20 20 20 20 20 20 3b 20 73 74 6f 72 65 | ; store| 00000f60 20 62 61 63 6b 0d 04 88 3f 20 20 20 4c 44 4d 46 | back...? LDMF| 00000f70 44 20 20 20 28 73 70 29 21 2c 7b 72 30 2d 72 31 |D (sp)!,{r0-r1| 00000f80 2c 70 63 7d 5e 20 20 20 20 20 20 20 20 20 20 20 |,pc}^ | 00000f90 20 20 3b 20 52 65 74 75 72 6e 20 66 72 6f 6d 20 | ; Return from | 00000fa0 63 61 6c 6c 0d 04 92 05 3a 0d 04 9c 21 20 a4 63 |call....:...! .c| 00000fb0 6f 64 65 6e 61 6d 65 28 22 77 69 6d 70 5f 63 72 |odename("wimp_cr| 00000fc0 65 61 74 65 6d 65 6e 75 22 29 0d 04 a6 14 2e 77 |eatemenu").....w| 00000fd0 69 6d 70 5f 63 72 65 61 74 65 6d 65 6e 75 0d 04 |imp_createmenu..| 00000fe0 b0 3e 20 20 20 53 54 4d 46 44 20 20 20 28 73 70 |.> STMFD (sp| 00000ff0 29 21 2c 7b 72 30 2d 72 31 2c 6c 69 6e 6b 7d 20 |)!,{r0-r1,link} | 00001000 20 20 20 20 20 20 20 20 20 20 20 3b 20 53 74 61 | ; Sta| 00001010 63 6b 20 72 65 67 69 73 74 65 72 73 0d 04 ba 3d |ck registers...=| 00001020 20 20 20 54 53 54 20 20 20 20 20 72 31 2c 23 33 | TST r1,#3| 00001030 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001040 20 20 20 20 20 20 20 20 20 3b 20 69 73 20 69 74 | ; is it| 00001050 20 61 20 6d 65 6e 75 20 3f 0d 04 c4 35 20 20 20 | a menu ?...5 | 00001060 42 4e 45 20 20 20 20 20 5f 5f 7a 30 5f 6e 6f 74 |BNE __z0_not| 00001070 61 6d 65 6e 75 20 20 20 20 20 20 20 20 20 20 20 |amenu | 00001080 20 20 20 20 20 20 20 20 20 20 3b 20 6e 6f 0d 04 | ; no..| 00001090 ce 16 3b 20 74 69 74 6c 65 20 66 6f 72 65 67 72 |..; title foregr| 000010a0 6f 75 6e 64 0d 04 d8 39 20 20 20 4c 44 52 42 20 |ound...9 LDRB | 000010b0 20 20 20 72 30 2c 5b 72 31 2c 23 31 32 5d 20 20 | r0,[r1,#12] | 000010c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000010d0 20 3b 20 67 65 74 20 63 6f 6c 6f 75 72 0d 04 e2 | ; get colour...| 000010e0 3e 20 20 20 54 45 51 20 20 20 20 20 72 30 2c 23 |> TEQ r0,#| 000010f0 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |7 | 00001100 20 20 20 20 20 20 20 20 20 20 3b 20 69 73 20 69 | ; is i| 00001110 74 20 27 62 6c 61 63 6b 27 20 3f 0d 04 ec 37 20 |t 'black' ?...7 | 00001120 20 20 ec 51 20 20 20 72 30 2c 23 30 20 20 20 20 | .Q r0,#0 | 00001130 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001140 20 20 20 20 20 3b 20 6d 61 6b 65 20 70 75 72 70 | ; make purp| 00001150 6c 65 0d 04 f6 39 20 20 20 53 54 52 42 20 20 20 |le...9 STRB | 00001160 20 72 30 2c 5b 72 31 2c 23 31 32 5d 20 20 20 20 | r0,[r1,#12] | 00001170 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00001180 20 73 74 6f 72 65 20 62 61 63 6b 0d 05 00 16 3b | store back....;| 00001190 20 74 69 74 6c 65 20 62 61 63 6b 67 72 6f 75 6e | title backgroun| 000011a0 64 0d 05 0a 39 20 20 20 4c 44 52 42 20 20 20 20 |d...9 LDRB | 000011b0 72 30 2c 5b 72 31 2c 23 31 33 5d 20 20 20 20 20 |r0,[r1,#13] | 000011c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 | ; | 000011d0 67 65 74 20 63 6f 6c 6f 75 72 0d 05 14 3d 20 20 |get colour...= | 000011e0 20 54 45 51 20 20 20 20 20 72 30 2c 23 32 20 20 | TEQ r0,#2 | 000011f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001200 20 20 20 20 20 20 20 3b 20 69 73 20 69 74 20 27 | ; is it '| 00001210 67 72 65 79 27 20 3f 0d 05 1e 3b 20 20 20 ec 51 |grey' ?...; .Q| 00001220 20 20 20 72 30 2c 23 35 20 20 20 20 20 20 20 20 | r0,#5 | 00001230 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001240 20 3b 20 6d 61 6b 65 20 6d 69 64 20 79 65 6c 6c | ; make mid yell| 00001250 6f 77 0d 05 28 39 20 20 20 53 54 52 42 20 20 20 |ow..(9 STRB | 00001260 20 72 30 2c 5b 72 31 2c 23 31 33 5d 20 20 20 20 | r0,[r1,#13] | 00001270 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00001280 20 73 74 6f 72 65 20 62 61 63 6b 0d 05 32 12 2e | store back..2..| 00001290 5f 5f 7a 30 5f 6e 6f 74 61 6d 65 6e 75 0d 05 3c |__z0_notamenu..<| 000012a0 3f 20 20 20 4c 44 4d 46 44 20 20 20 28 73 70 29 |? LDMFD (sp)| 000012b0 21 2c 7b 72 30 2d 72 31 2c 70 63 7d 5e 20 20 20 |!,{r0-r1,pc}^ | 000012c0 20 20 20 20 20 20 20 20 20 20 3b 20 52 65 74 75 | ; Retu| 000012d0 72 6e 20 66 72 6f 6d 20 63 61 6c 6c 0d 05 46 05 |rn from call..F.| 000012e0 5d 0d 05 50 20 f4 20 2a 2a 2a 2a 20 45 6e 64 20 |]..P . **** End | 000012f0 6f 66 20 6d 61 69 6e 20 63 6f 64 65 20 2a 2a 2a |of main code ***| 00001300 2a 0d 05 5a 36 f4 20 53 65 74 20 66 69 6e 61 6c |*..Z6. Set final| 00001310 20 70 6f 69 6e 74 65 72 20 74 6f 20 66 69 6e 64 | pointer to find| 00001320 20 74 68 65 20 6c 65 6e 67 74 68 20 6f 66 20 74 | the length of t| 00001330 68 65 20 63 6f 64 65 0d 05 64 13 f2 70 61 74 63 |he code..d..patc| 00001340 68 5f 73 65 74 70 63 28 30 29 0d 05 6e 0b ed 20 |h_setpc(0)..n.. | 00001350 70 61 73 73 25 0d 05 78 13 f2 70 61 74 63 68 5f |pass%..x..patch_| 00001360 73 61 76 65 66 69 6c 65 0d 05 96 05 e0 0d 05 a0 |savefile........| 00001370 05 3a 0d 05 aa 21 f4 20 2a 2a 2a 2a 20 46 69 6c |.:...!. **** Fil| 00001380 69 6e 67 20 70 72 6f 63 65 64 75 72 65 73 20 2a |ing procedures *| 00001390 2a 2a 2a 0d 05 b4 05 3a 0d 05 be 15 dd 20 f2 70 |***....:..... .p| 000013a0 61 74 63 68 5f 6c 6f 61 64 66 69 6c 65 0d 05 c8 |atch_loadfile...| 000013b0 0f de 20 4d 43 25 20 26 31 34 30 30 0d 05 d2 0d |.. MC% &1400....| 000013c0 63 6f 64 65 6c 65 6e 3d 30 0d 05 dc 2d 65 6e 64 |codelen=0...-end| 000013d0 6f 66 63 6f 64 65 3d 28 63 6f 64 65 6c 65 6e 2b |ofcode=(codelen+| 000013e0 26 30 2b 33 29 20 80 20 2d 34 3a 6d 61 78 3d 63 |&0+3) . -4:max=c| 000013f0 6f 64 65 6c 65 6e 0d 05 e6 19 4c 25 3d 65 6e 64 |odelen....L%=end| 00001400 6f 66 63 6f 64 65 3a 5f 5f 63 61 70 25 3d a3 0d |ofcode:__cap%=..| 00001410 06 68 05 e1 0d 06 72 05 3a 0d 06 7c 15 dd 20 f2 |.h....r.:..|.. .| 00001420 70 61 74 63 68 5f 73 61 76 65 66 69 6c 65 0d 06 |patch_savefile..| 00001430 86 28 6f 75 74 66 69 6c 65 24 3d 22 3c 50 75 72 |.(outfile$="<Pur| 00001440 70 6c 65 57 69 6e 24 44 69 72 3e 2e 50 75 72 70 |pleWin$Dir>.Purp| 00001450 6c 65 57 69 6e 22 0d 06 90 2a c8 99 20 22 4f 53 |leWin"...*.. "OS| 00001460 5f 46 69 6c 65 22 2c 31 30 2c 6f 75 74 66 69 6c |_File",10,outfil| 00001470 65 24 2c 2c 2c 4d 43 25 2c 6d 61 78 2b 4d 43 25 |e$,,,MC%,max+MC%| 00001480 0d 06 9a 24 ff 28 22 53 65 74 74 79 70 65 20 22 |...$.("Settype "| 00001490 2b 6f 75 74 66 69 6c 65 24 2b 22 20 4d 6f 64 75 |+outfile$+" Modu| 000014a0 6c 65 22 29 0d 06 a4 1f 70 61 74 63 68 64 69 72 |le")....patchdir| 000014b0 24 3d 22 3c 50 75 72 70 6c 65 57 69 6e 24 44 69 |$="<PurpleWin$Di| 000014c0 72 3e 22 0d 06 d6 05 e1 0d 06 e0 05 3a 0d 06 ea |r>".........:...| 000014d0 1d f4 20 2a 2a 2a 2a 20 45 72 72 6f 72 20 48 61 |.. **** Error Ha| 000014e0 6e 64 6c 65 72 20 2a 2a 2a 2a 0d 06 f4 05 3a 0d |ndler ****....:.| 000014f0 06 fe 0b dd f2 45 72 72 6f 72 0d 07 08 07 ea 20 |.....Error..... | 00001500 85 0d 07 12 3d ee 20 85 20 ea 3a f7 20 85 3a 85 |....=. . .:. .:.| 00001510 20 a2 20 9f 2c f6 24 2b 22 20 77 68 69 6c 73 74 | . .,.$+" whilst| 00001520 20 69 6e 20 65 72 72 6f 72 20 68 61 6e 64 6c 65 | in error handle| 00001530 72 20 61 74 20 6c 69 6e 65 20 22 2b c3 9e 0d 07 |r at line "+....| 00001540 80 1b 85 20 a2 20 9f 2c f6 24 2b 22 20 61 74 20 |... . .,.$+" at | 00001550 6c 69 6e 65 20 22 2b c3 9e 0d 07 8a 05 e1 0d 07 |line "+.........| 00001560 94 05 3a 0d 08 02 22 f4 20 2a 2a 2a 2a 20 55 74 |..:...". **** Ut| 00001570 69 6c 69 74 79 20 70 72 6f 63 65 64 75 72 65 73 |ility procedures| 00001580 20 2a 2a 2a 2a 0d 08 0c 05 3a 0d 08 16 14 dd f2 | ****....:......| 00001590 70 61 74 63 68 5f 73 65 74 70 63 28 6e 29 0d 08 |patch_setpc(n)..| 000015a0 20 1a e7 20 50 25 2d 26 30 3e 6d 61 78 20 8c 6d | .. P%-&0>max .m| 000015b0 61 78 3d 50 25 2d 26 30 0d 08 2a 14 50 25 3d 6e |ax=P%-&0..*.P%=n| 000015c0 3a 4f 25 3d 4d 43 25 2b 6e 2d 26 30 0d 08 34 05 |:O%=MC%+n-&0..4.| 000015d0 e1 0d 08 3e 05 3a 0d 08 48 22 dd a4 66 69 6e 64 |...>.:..H"..find| 000015e0 66 72 65 65 72 65 67 28 61 2c 62 2c 63 2c 64 29 |freereg(a,b,c,d)| 000015f0 3a ea 20 6e 3a 6e 3d 30 0d 08 52 1c c8 95 20 6e |:. n:n=0..R... n| 00001600 3d 61 20 84 20 6e 3d 62 20 84 20 6e 3d 63 20 84 |=a . n=b . n=c .| 00001610 20 6e 3d 64 0d 08 5c 09 20 6e 2b 3d 31 0d 08 66 | n=d..\. n+=1..f| 00001620 05 ce 0d 08 70 06 3d 6e 0d 08 7a 05 3a 0d 08 84 |....p.=n..z.:...| 00001630 28 f4 20 2a 2a 2a 2a 20 4c 6f 6e 67 20 41 44 52 |(. **** Long ADR| 00001640 20 6d 61 63 72 6f 20 70 72 6f 63 65 64 75 72 65 | macro procedure| 00001650 20 2a 2a 2a 2a 0d 08 8e 05 3a 0d 08 98 40 f4 20 | ****....:...@. | 00001660 44 45 53 43 2e 20 3a 20 41 44 52 20 65 71 75 69 |DESC. : ADR equi| 00001670 76 61 6c 65 6e 74 20 66 6f 72 20 6c 6f 6e 67 20 |valent for long | 00001680 61 64 64 72 65 73 73 20 72 61 6e 67 65 73 2c 20 |address ranges, | 00001690 69 6e 20 32 20 69 6e 73 74 73 0d 08 a2 43 f4 20 |in 2 insts...C. | 000016a0 45 4e 54 52 59 20 3a 20 63 6f 6e 64 24 20 3d 20 |ENTRY : cond$ = | 000016b0 74 77 6f 20 63 68 61 72 20 73 74 72 69 6e 67 2c |two char string,| 000016c0 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 | containing the | 000016d0 41 52 4d 20 63 6f 6e 64 69 74 69 6f 6e 0d 08 ac |ARM condition...| 000016e0 1a f4 20 20 20 20 20 20 20 20 20 72 65 67 25 20 |.. reg% | 000016f0 3d 20 30 2e 2e 31 35 0d 08 b6 2b f4 20 20 20 20 |= 0..15...+. | 00001700 20 20 20 20 20 70 6f 69 6e 74 65 72 25 20 3d 20 | pointer% = | 00001710 6c 6f 6e 67 20 72 61 6e 67 65 20 70 6f 69 6e 74 |long range point| 00001720 65 72 0d 08 c0 42 f4 20 43 4f 4d 4d 2e 20 3a 20 |er...B. COMM. : | 00001730 70 61 73 73 25 20 3d 20 4f 50 54 20 76 61 72 69 |pass% = OPT vari| 00001740 61 62 6c 65 20 69 6e 20 74 68 65 20 61 73 73 65 |able in the asse| 00001750 6d 62 6c 65 72 20 46 4f 52 2e 2e 4e 45 58 54 20 |mbler FOR..NEXT | 00001760 6c 6f 6f 70 0d 08 ca 2d f4 20 20 20 20 20 20 20 |loop...-. | 00001770 20 20 43 61 6e 20 6f 6e 6c 79 20 68 61 6e 64 6c | Can only handl| 00001780 65 20 36 34 20 4b 42 79 74 65 20 72 61 6e 67 65 |e 64 KByte range| 00001790 73 0d 08 d4 26 dd a4 4c 41 44 52 28 63 6f 6e 64 |s...&..LADR(cond| 000017a0 24 2c 72 65 67 25 2c 70 6f 69 6e 74 65 72 25 2c |$,reg%,pointer%,| 000017b0 69 6e 6c 69 6e 65 29 0d 08 de 21 ea 20 63 63 25 |inline)...!. cc%| 000017c0 2c 64 69 66 66 25 2c 6c 6f 25 2c 68 69 25 2c 6f |,diff%,lo%,hi%,o| 000017d0 70 31 25 2c 6f 70 32 25 0d 08 e8 23 e7 20 28 70 |p1%,op2%...#. (p| 000017e0 61 73 73 25 20 80 25 31 30 29 3d 30 20 50 25 2b |ass% .%10)=0 P%+| 000017f0 3d 38 3a 4f 25 2b 3d 38 3a 3d 30 0d 09 10 48 e7 |=8:O%+=8:=0...H.| 00001800 20 94 28 70 6f 69 6e 74 65 72 25 2d 50 25 29 3e | .(pointer%-P%)>| 00001810 36 35 35 33 35 20 8c 85 20 39 39 39 2c 22 4c 41 |65535 .. 999,"LA| 00001820 44 52 20 63 61 6e 20 6f 6e 6c 79 20 68 61 6e 64 |DR can only hand| 00001830 6c 65 20 36 34 20 4b 42 79 74 65 20 72 61 6e 67 |le 64 KByte rang| 00001840 65 73 22 0d 09 1a 27 e7 63 6f 6e 64 24 3d 22 20 |es"...'.cond$=" | 00001850 20 22 20 84 20 63 6f 6e 64 24 3d 22 22 20 20 8c | " . cond$="" .| 00001860 63 6f 6e 64 24 3d 22 41 4c 22 0d 09 24 36 63 63 |cond$="AL"..$6cc| 00001870 25 3d a7 22 45 51 4e 45 43 53 43 43 4d 49 50 4c |%=."EQNECSCCMIPL| 00001880 56 53 56 43 48 49 4c 53 47 45 4c 54 47 54 4c 45 |VSVCHILSGELTGTLE| 00001890 41 4c 4e 56 4c 4f 48 53 22 2c 63 6f 6e 64 24 29 |ALNVLOHS",cond$)| 000018a0 0d 09 2e 4b e7 20 63 63 25 3d 30 20 8c 85 20 39 |...K. cc%=0 .. 9| 000018b0 39 39 2c 22 55 6e 6b 6e 6f 77 6e 20 63 6f 6e 64 |99,"Unknown cond| 000018c0 69 74 69 6f 6e 20 66 6f 72 20 4c 41 44 52 20 28 |ition for LADR (| 000018d0 22 2b 63 6f 6e 64 24 2b 22 29 22 20 8b 20 63 63 |"+cond$+")" . cc| 000018e0 25 3d 28 63 63 25 2d 31 29 81 32 0d 09 38 23 e7 |%=(cc%-1).2..8#.| 000018f0 20 63 63 25 3d 31 36 20 8c 63 63 25 3d 33 20 8b | cc%=16 .cc%=3 .| 00001900 e7 63 63 25 3d 31 37 20 8c 63 63 25 3d 32 0d 09 |.cc%=17 .cc%=2..| 00001910 42 17 64 69 66 66 25 3d 70 6f 69 6e 74 65 72 25 |B.diff%=pointer%| 00001920 2d 50 25 2d 38 0d 09 4c 14 6c 6f 25 3d 94 28 64 |-P%-8..L.lo%=.(d| 00001930 69 66 66 25 29 80 26 46 46 0d 09 56 16 68 69 25 |iff%).&FF..V.hi%| 00001940 3d 94 28 64 69 66 66 25 29 80 26 46 46 30 30 0d |=.(diff%).&FF00.| 00001950 09 60 0e e7 64 69 66 66 25 3e 3d 30 8c 0d 09 6a |.`..diff%>=0...j| 00001960 2c 20 6f 70 31 25 3d 28 63 63 25 3c 3c 32 38 29 |, op1%=(cc%<<28)| 00001970 2b 26 30 32 38 46 30 30 30 30 2b 28 72 65 67 25 |+&028F0000+(reg%| 00001980 3c 3c 31 32 29 2b 6c 6f 25 0d 09 74 3c 20 6f 70 |<<12)+lo%..t< op| 00001990 32 25 3d 28 63 63 25 3c 3c 32 38 29 2b 26 30 32 |2%=(cc%<<28)+&02| 000019a0 38 30 30 43 30 30 2b 28 72 65 67 25 3c 3c 31 36 |800C00+(reg%<<16| 000019b0 29 2b 28 72 65 67 25 3c 3c 31 32 29 2b 28 68 69 |)+(reg%<<12)+(hi| 000019c0 25 3e 3e 38 29 0d 09 7e 05 cc 0d 09 88 2c 20 6f |%>>8)..~....., o| 000019d0 70 31 25 3d 28 63 63 25 3c 3c 32 38 29 2b 26 30 |p1%=(cc%<<28)+&0| 000019e0 32 34 46 30 30 30 30 2b 28 72 65 67 25 3c 3c 31 |24F0000+(reg%<<1| 000019f0 32 29 2b 6c 6f 25 0d 09 92 3c 20 6f 70 32 25 3d |2)+lo%...< op2%=| 00001a00 28 63 63 25 3c 3c 32 38 29 2b 26 30 32 34 30 30 |(cc%<<28)+&02400| 00001a10 43 30 30 2b 28 72 65 67 25 3c 3c 31 36 29 2b 28 |C00+(reg%<<16)+(| 00001a20 72 65 67 25 3c 3c 31 32 29 2b 28 68 69 25 3e 3e |reg%<<12)+(hi%>>| 00001a30 38 29 0d 09 9c 05 cd 0d 09 a6 24 5b 4f 50 54 20 |8)........$[OPT | 00001a40 70 61 73 73 25 3a 45 51 55 44 20 6f 70 31 25 3a |pass%:EQUD op1%:| 00001a50 45 51 55 44 20 6f 70 32 25 3a 5d 0d 09 b0 06 3d |EQUD op2%:]....=| 00001a60 30 0d 09 ba 05 3a 0d 09 c4 29 f4 20 2a 2a 2a 2a |0....:...). ****| 00001a70 20 43 6f 64 65 20 70 72 65 66 69 78 20 6d 61 63 | Code prefix mac| 00001a80 72 6f 20 72 6f 75 74 69 6e 65 20 2a 2a 2a 2a 0d |ro routine ****.| 00001a90 09 ce 05 3a 0d 09 d8 12 dd a4 63 6f 64 65 6e 61 |...:......codena| 00001aa0 6d 65 28 6e 24 29 0d 09 e2 0e 5b 4f 50 54 20 70 |me(n$)....[OPT p| 00001ab0 61 73 73 25 0d 09 ec 1a 20 20 20 45 51 55 53 20 |ass%.... EQUS | 00001ac0 20 20 20 6e 24 2b bd 30 3a 41 4c 49 47 4e 0d 09 | n$+.0:ALIGN..| 00001ad0 f6 2a 20 20 20 45 51 55 44 20 20 20 20 26 46 46 |.* EQUD &FF| 00001ae0 30 30 30 30 30 30 2b 28 28 a9 28 6e 24 29 2b 34 |000000+((.(n$)+4| 00001af0 29 20 80 20 ac 20 33 29 0d 0a 00 0c 5d 3a 3d 70 |) . . 3)....]:=p| 00001b00 61 73 73 25 0d 0a 0a 05 3a 0d 0a 14 17 dd a4 65 |ass%....:......e| 00001b10 6e 63 6f 64 65 64 69 63 74 28 61 24 2c 63 24 29 |ncodedict(a$,c$)| 00001b20 0d 0a 1e 0f ea 20 63 68 25 2c 6e 25 2c 62 24 0d |..... ch%,n%,b$.| 00001b30 0a 28 05 f5 0d 0a 32 0f 20 63 68 25 3d a3 3a f7 |.(....2. ch%=.:.| 00001b40 20 2b 31 0d 0a 3c 06 20 f5 0d 0a 46 0d 20 20 f3 | +1..<. ...F. .| 00001b50 20 6e 25 2c 62 24 0d 0a 50 10 20 20 e7 20 6e 25 | n%,b$..P. . n%| 00001b60 3c 3e 2d 31 20 8c 0d 0a 5a 3b 20 20 20 e7 20 a7 |<>-1 ...Z; . .| 00001b70 62 24 2c 22 a4 22 29 3c 3e 30 20 8c 62 24 3d c0 |b$,".")<>0 .b$=.| 00001b80 62 24 2c a7 62 24 2c 22 a4 22 29 2d 31 29 2b 63 |b$,.b$,".")-1)+c| 00001b90 24 2b c1 62 24 2c a7 62 24 2c 22 a4 22 29 2b 31 |$+.b$,.b$,".")+1| 00001ba0 29 0d 0a 64 3c 20 20 20 e7 20 a7 62 24 2c 22 a3 |)..d< . .b$,".| 00001bb0 22 29 3c 3e 30 20 8c 62 24 3d c0 62 24 2c a7 62 |")<>0 .b$=.b$,.b| 00001bc0 24 2c 22 a3 22 29 2d 31 29 2b bd 31 30 2b c1 62 |$,".")-1)+.10+.b| 00001bd0 24 2c a7 62 24 2c 22 a3 22 29 2b 31 29 0d 0a 6e |$,.b$,".")+1)..n| 00001be0 15 20 20 20 e7 20 a7 61 24 2c 62 24 29 3c 3e 30 |. . .a$,b$)<>0| 00001bf0 20 8c 0d 0a 78 34 20 20 20 20 61 24 3d c0 61 24 | ...x4 a$=.a$| 00001c00 2c a7 61 24 2c 62 24 29 2d 31 29 2b bd 32 37 2b |,.a$,b$)-1)+.27+| 00001c10 bd 6e 25 2b c1 61 24 2c a7 61 24 2c 62 24 29 2b |.n%+.a$,.a$,b$)+| 00001c20 a9 28 62 24 29 29 0d 0a 82 0d 20 20 20 20 63 68 |.(b$)).... ch| 00001c30 25 3d b9 0d 0a 8c 08 20 20 20 cd 0d 0a 96 07 20 |%=..... ..... | 00001c40 20 cd 0d 0a a0 0b 20 fd 6e 25 3d 2d 31 0d 0a aa | ..... .n%=-1...| 00001c50 0a fd 63 68 25 3d a3 0d 0a b4 07 3d 61 24 0d 0a |..ch%=.....=a$..| 00001c60 be 15 dc 20 31 2c 20 22 53 79 6e 74 61 78 3a 20 |... 1, "Syntax: | 00001c70 2a a4 22 0d 0a c8 10 dc 20 32 2c 20 22 20 74 68 |*."..... 2, " th| 00001c80 65 20 22 0d 0a d2 13 dc 20 33 2c 20 22 64 69 72 |e "..... 3, "dir| 00001c90 65 63 74 6f 72 22 0d 0a dc 18 dc 20 34 2c 20 22 |ector"..... 4, "| 00001ca0 66 69 6c 69 6e 67 20 73 79 73 74 65 6d 22 0d 0a |filing system"..| 00001cb0 e6 12 dc 20 35 2c 20 22 63 75 72 72 65 6e 74 22 |... 5, "current"| 00001cc0 0d 0a f0 45 dc 20 36 2c 20 22 74 6f 20 61 20 76 |...E. 6, "to a v| 00001cd0 61 72 69 61 62 6c 65 2e 20 4f 74 68 65 72 20 74 |ariable. Other t| 00001ce0 79 70 65 73 20 6f 66 20 76 61 6c 75 65 20 63 61 |ypes of value ca| 00001cf0 6e 20 62 65 20 61 73 73 69 67 6e 65 64 20 77 69 |n be assigned wi| 00001d00 74 68 20 2a 22 0d 0a fa 0f dc 20 37 2c 20 22 66 |th *"..... 7, "f| 00001d10 69 6c 65 22 0d 0b 04 12 dc 20 38 2c 20 22 64 65 |ile"..... 8, "de| 00001d20 66 61 75 6c 74 22 0d 0b 0e 0f dc 20 39 2c 20 22 |fault"..... 9, "| 00001d30 74 69 6f 6e 22 0d 0b 18 16 dc 20 31 30 2c 20 22 |tion"..... 10, "| 00001d40 2a 43 6f 6e 66 69 67 75 72 65 22 0d 0b 22 10 dc |*Configure".."..| 00001d50 20 31 31 2c 20 22 6e 61 6d 65 22 0d 0b 2c 13 dc | 11, "name"..,..| 00001d60 20 31 32 2c 20 22 20 73 65 72 76 65 72 22 0d 0b | 12, " server"..| 00001d70 36 12 dc 20 31 33 2c 20 22 6e 75 6d 62 65 72 22 |6.. 13, "number"| 00001d80 0d 0b 40 18 dc 20 31 34 2c 20 22 53 79 6e 74 61 |..@.. 14, "Synta| 00001d90 78 3a 20 2a a4 20 3c 22 0d 0b 4a 3c dc 20 31 35 |x: *. <"..J<. 15| 00001da0 2c 20 22 20 6f 6e 65 20 6f 72 20 6d 6f 72 65 20 |, " one or more | 00001db0 66 69 6c 65 73 20 74 68 61 74 20 6d 61 74 63 68 |files that match| 00001dc0 20 74 68 65 20 67 69 76 65 6e 20 77 69 6c 64 63 | the given wildc| 00001dd0 61 72 64 22 0d 0b 54 11 dc 20 31 36 2c 20 22 20 |ard"..T.. 16, " | 00001de0 61 6e 64 20 22 0d 0b 5e 1e dc 20 31 37 2c 20 22 |and "..^.. 17, "| 00001df0 72 65 6c 6f 63 61 74 61 62 6c 65 20 6d 6f 64 75 |relocatable modu| 00001e00 6c 65 22 0d 0b 68 37 dc 20 31 38 2c 20 22 a3 43 |le"..h7. 18, ".C| 00001e10 28 6f 6e 66 69 72 6d 29 09 50 72 6f 6d 70 74 20 |(onfirm).Prompt | 00001e20 66 6f 72 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e |for confirmation| 00001e30 20 6f 66 20 65 61 63 68 20 22 0d 0b 72 15 dc 20 | of each "..r.. | 00001e40 31 39 2c 20 22 73 65 74 73 20 74 68 65 20 22 0d |19, "sets the ".| 00001e50 0b 7c 25 dc 20 32 30 2c 20 22 53 79 6e 74 61 78 |.|%. 20, "Syntax| 00001e60 3a 20 2a a4 20 5b 3c 64 69 73 63 20 73 70 65 63 |: *. [<disc spec| 00001e70 2e 3e 5d 22 0d 0b 86 37 dc 20 32 31 2c 20 22 29 |.>]"...7. 21, ")| 00001e80 a3 56 28 65 72 62 6f 73 65 29 09 50 72 69 6e 74 |.V(erbose).Print| 00001e90 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 | information on | 00001ea0 65 61 63 68 20 66 69 6c 65 20 22 0d 0b 90 4b dc |each file "...K.| 00001eb0 20 32 33 2c 20 22 73 70 72 69 74 65 4c 61 6e 64 | 23, "spriteLand| 00001ec0 73 63 61 70 65 20 5b 3c 58 53 63 61 6c 65 3e 20 |scape [<XScale> | 00001ed0 5b 3c 59 53 63 61 6c 65 3e 20 5b 3c 4d 61 72 67 |[<YScale> [<Marg| 00001ee0 69 6e 3e 20 5b 3c 54 68 72 65 73 68 6f 6c 64 3e |in> [<Threshold>| 00001ef0 5d 5d 5d 5d 5d 22 0d 0b 9a 41 dc 20 32 34 2c 20 |]]]]]"...A. 24, | 00001f00 22 20 69 73 20 75 73 65 64 20 74 6f 20 70 72 69 |" is used to pri| 00001f10 6e 74 20 61 20 68 61 72 64 20 63 6f 70 79 20 6f |nt a hard copy o| 00001f20 66 20 74 68 65 20 73 63 72 65 65 6e 20 6f 6e 20 |f the screen on | 00001f30 45 50 53 4f 4e 2d 22 0d 0b a4 31 dc 20 32 35 2c |EPSON-"...1. 25,| 00001f40 20 22 2e a3 4f 70 74 69 6f 6e 73 3a 20 28 75 73 | "..Options: (us| 00001f50 65 20 7e 20 74 6f 20 66 6f 72 63 65 20 6f 66 66 |e ~ to force off| 00001f60 2c 20 65 67 2e 20 7e 22 0d 0b ae 12 dc 20 32 36 |, eg. ~"..... 26| 00001f70 2c 20 22 70 72 69 6e 74 65 22 0d 0b b8 21 dc 20 |, "printe"...!. | 00001f80 32 37 2c 20 22 53 79 6e 74 61 78 3a 20 2a a4 20 |27, "Syntax: *. | 00001f90 3c 66 69 6c 65 6e 61 6d 65 3e 22 0d 0b c2 12 dc |<filename>".....| 00001fa0 20 32 38 2c 20 22 73 65 6c 65 63 74 22 0d 0b cc | 28, "select"...| 00001fb0 15 dc 20 32 39 2c 20 22 78 70 72 65 73 73 69 6f |.. 29, "xpressio| 00001fc0 6e 22 0d 0b d6 18 dc 20 33 30 2c 20 22 53 79 6e |n"..... 30, "Syn| 00001fd0 74 61 78 3a 20 2a a4 20 5b 22 0d 0b e0 12 dc 20 |tax: *. ["..... | 00001fe0 33 31 2c 20 22 73 70 72 69 74 65 22 0d 0b ea 15 |31, "sprite"....| 00001ff0 dc 20 33 32 2c 20 22 20 64 69 73 70 6c 61 79 73 |. 32, " displays| 00002000 22 0d 0b f4 16 dc 20 33 33 2c 20 22 66 72 65 65 |"..... 33, "free| 00002010 20 73 70 61 63 65 22 0d 0b fe 12 dc 20 33 34 2c | space"..... 34,| 00002020 20 22 20 7b 6f 66 66 7d 22 0d 0c 08 13 dc 20 33 | " {off}"..... 3| 00002030 35 2c 20 22 6c 69 62 72 61 72 79 22 0d 0c 12 15 |5, "library"....| 00002040 dc 20 33 36 2c 20 22 70 61 72 61 6d 65 74 65 72 |. 36, "parameter| 00002050 22 0d 0c 1c 12 dc 20 33 37 2c 20 22 6f 62 6a 65 |"..... 37, "obje| 00002060 63 74 22 0d 0c 26 11 dc 20 33 38 2c 20 22 20 61 |ct"..&.. 38, " a| 00002070 6c 6c 20 22 0d 0c 30 10 dc 20 33 39 2c 20 22 64 |ll "..0.. 39, "d| 00002080 69 73 63 22 0d 0c 3a 10 dc 20 34 30 2c 20 22 20 |isc"..:.. 40, " | 00002090 74 6f 20 22 0d 0c 44 10 dc 20 34 31 2c 20 22 20 |to "..D.. 41, " | 000020a0 69 73 20 22 0d 0c 4e 0c dc 20 30 2c 20 22 a4 22 |is "..N.. 0, "."| 000020b0 0d 0c 58 0c dc 20 2d 31 2c 20 22 22 0d 0c 62 05 |..X.. -1, ""..b.| 000020c0 3a 0d 7f 7f 0d f4 20 4a 46 50 61 74 63 68 0d ff |:..... JFPatch..| 000020d0