Home » Archimedes archive » Acorn User » AU 1998-12.adf » Regulars » StarInfo/Fletcher/!Purple/Patch
StarInfo/Fletcher/!Purple/Patch
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/Patch |
Read OK: | ✔ |
File size: | 080E bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
App PurpleWin In - Out PurpleWin Type Module Ver 1.00e Define Module Name PurpleWin Author Justin Fletcher Commands Name PurpleWin Help ... The PurpleWin module forces window tools to be the right colours so that you can actually read the titlebars. End Commands WimpSWIs SWI Wimp_CreateWindow Pre wimp_createwindow SWI Wimp_CreateMenu Pre wimp_createmenu End WimpSWIs End Module >wimp_createwindow STMFD (sp)!,{r0-r1,link} ; Stack registers ; title foreground LDRB r0,[r1,#32] ; get colour TEQ r0,#7 ; is it 'black' ? MOVEQ r0,#0 ; make purple STRB r0,[r1,#32] ; store back ; title background LDRB r0,[r1,#33] ; get colour TEQ r0,#2 ; is it 'grey' ? MOVEQ r0,#5 ; make mid yellow STRB r0,[r1,#33] ; store back ; title focus LDRB r0,[r1,#38] ; get colour TEQ r0,#12 ; is it 'cream' ? MOVEQ r0,#7 ; make mid yellow STRB r0,[r1,#38] ; store back LDMFD (sp)!,{r0-r1,pc}^ ; Return from call >wimp_createmenu STMFD (sp)!,{r0-r1,link} ; Stack registers TST r1,#3 ; is it a menu ? BNE $notamenu ; no ; title foreground LDRB r0,[r1,#12] ; get colour TEQ r0,#7 ; is it 'black' ? MOVEQ r0,#0 ; make purple STRB r0,[r1,#12] ; store back ; title background LDRB r0,[r1,#13] ; get colour TEQ r0,#2 ; is it 'grey' ? MOVEQ r0,#5 ; make mid yellow STRB r0,[r1,#13] ; store back $notamenu LDMFD (sp)!,{r0-r1,pc}^ ; Return from call
00000000 41 70 70 20 20 50 75 72 70 6c 65 57 69 6e 0a 49 |App PurpleWin.I| 00000010 6e 20 20 20 2d 0a 4f 75 74 20 20 50 75 72 70 6c |n -.Out Purpl| 00000020 65 57 69 6e 0a 54 79 70 65 20 4d 6f 64 75 6c 65 |eWin.Type Module| 00000030 0a 56 65 72 20 20 31 2e 30 30 65 0a 0a 44 65 66 |.Ver 1.00e..Def| 00000040 69 6e 65 20 4d 6f 64 75 6c 65 0a 20 4e 61 6d 65 |ine Module. Name| 00000050 20 20 20 20 20 20 50 75 72 70 6c 65 57 69 6e 0a | PurpleWin.| 00000060 20 41 75 74 68 6f 72 20 20 20 20 4a 75 73 74 69 | Author Justi| 00000070 6e 20 46 6c 65 74 63 68 65 72 0a 20 43 6f 6d 6d |n Fletcher. Comm| 00000080 61 6e 64 73 0a 20 20 4e 61 6d 65 20 20 20 20 20 |ands. Name | 00000090 50 75 72 70 6c 65 57 69 6e 0a 20 20 48 65 6c 70 |PurpleWin. Help| 000000a0 20 20 20 20 20 2e 2e 2e 0a 20 20 20 20 20 20 20 | .... | 000000b0 20 20 20 20 54 68 65 20 50 75 72 70 6c 65 57 69 | The PurpleWi| 000000c0 6e 20 6d 6f 64 75 6c 65 20 66 6f 72 63 65 73 20 |n module forces | 000000d0 77 69 6e 64 6f 77 20 74 6f 6f 6c 73 20 74 6f 20 |window tools to | 000000e0 62 65 20 74 68 65 20 72 69 67 68 74 20 63 6f 6c |be the right col| 000000f0 6f 75 72 73 0a 20 20 20 20 20 20 20 20 20 20 20 |ours. | 00000100 73 6f 20 74 68 61 74 20 79 6f 75 20 63 61 6e 20 |so that you can | 00000110 61 63 74 75 61 6c 6c 79 20 72 65 61 64 20 74 68 |actually read th| 00000120 65 20 74 69 74 6c 65 62 61 72 73 2e 0a 20 45 6e |e titlebars.. En| 00000130 64 20 43 6f 6d 6d 61 6e 64 73 0a 20 57 69 6d 70 |d Commands. Wimp| 00000140 53 57 49 73 0a 20 20 53 57 49 20 20 20 20 20 20 |SWIs. SWI | 00000150 57 69 6d 70 5f 43 72 65 61 74 65 57 69 6e 64 6f |Wimp_CreateWindo| 00000160 77 0a 20 20 50 72 65 20 20 20 20 20 20 77 69 6d |w. Pre wim| 00000170 70 5f 63 72 65 61 74 65 77 69 6e 64 6f 77 0a 20 |p_createwindow. | 00000180 20 53 57 49 20 20 20 20 20 20 57 69 6d 70 5f 43 | SWI Wimp_C| 00000190 72 65 61 74 65 4d 65 6e 75 0a 20 20 50 72 65 20 |reateMenu. Pre | 000001a0 20 20 20 20 20 77 69 6d 70 5f 63 72 65 61 74 65 | wimp_create| 000001b0 6d 65 6e 75 0a 20 45 6e 64 20 57 69 6d 70 53 57 |menu. End WimpSW| 000001c0 49 73 0a 45 6e 64 20 4d 6f 64 75 6c 65 0a 0a 3e |Is.End Module..>| 000001d0 77 69 6d 70 5f 63 72 65 61 74 65 77 69 6e 64 6f |wimp_createwindo| 000001e0 77 0a 20 20 20 53 54 4d 46 44 20 20 20 28 73 70 |w. STMFD (sp| 000001f0 29 21 2c 7b 72 30 2d 72 31 2c 6c 69 6e 6b 7d 20 |)!,{r0-r1,link} | 00000200 20 20 20 20 20 20 20 20 20 20 20 3b 20 53 74 61 | ; Sta| 00000210 63 6b 20 72 65 67 69 73 74 65 72 73 0a 3b 20 74 |ck registers.; t| 00000220 69 74 6c 65 20 66 6f 72 65 67 72 6f 75 6e 64 0a |itle foreground.| 00000230 20 20 20 4c 44 52 42 20 20 20 20 72 30 2c 5b 72 | LDRB r0,[r| 00000240 31 2c 23 33 32 5d 20 20 20 20 20 20 20 20 20 20 |1,#32] | 00000250 20 20 20 20 20 20 20 20 20 3b 20 67 65 74 20 63 | ; get c| 00000260 6f 6c 6f 75 72 0a 20 20 20 54 45 51 20 20 20 20 |olour. TEQ | 00000270 20 72 30 2c 23 37 20 20 20 20 20 20 20 20 20 20 | r0,#7 | 00000280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00000290 20 69 73 20 69 74 20 27 62 6c 61 63 6b 27 20 3f | is it 'black' ?| 000002a0 0a 20 20 20 4d 4f 56 45 51 20 20 20 72 30 2c 23 |. MOVEQ r0,#| 000002b0 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |0 | 000002c0 20 20 20 20 20 20 20 20 20 20 3b 20 6d 61 6b 65 | ; make| 000002d0 20 70 75 72 70 6c 65 0a 20 20 20 53 54 52 42 20 | purple. STRB | 000002e0 20 20 20 72 30 2c 5b 72 31 2c 23 33 32 5d 20 20 | r0,[r1,#32] | 000002f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000300 20 3b 20 73 74 6f 72 65 20 62 61 63 6b 0a 3b 20 | ; store back.; | 00000310 74 69 74 6c 65 20 62 61 63 6b 67 72 6f 75 6e 64 |title background| 00000320 0a 20 20 20 4c 44 52 42 20 20 20 20 72 30 2c 5b |. LDRB r0,[| 00000330 72 31 2c 23 33 33 5d 20 20 20 20 20 20 20 20 20 |r1,#33] | 00000340 20 20 20 20 20 20 20 20 20 20 3b 20 67 65 74 20 | ; get | 00000350 63 6f 6c 6f 75 72 0a 20 20 20 54 45 51 20 20 20 |colour. TEQ | 00000360 20 20 72 30 2c 23 32 20 20 20 20 20 20 20 20 20 | r0,#2 | 00000370 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000380 3b 20 69 73 20 69 74 20 27 67 72 65 79 27 20 3f |; is it 'grey' ?| 00000390 0a 20 20 20 4d 4f 56 45 51 20 20 20 72 30 2c 23 |. MOVEQ r0,#| 000003a0 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |5 | 000003b0 20 20 20 20 20 20 20 20 20 20 3b 20 6d 61 6b 65 | ; make| 000003c0 20 6d 69 64 20 79 65 6c 6c 6f 77 0a 20 20 20 53 | mid yellow. S| 000003d0 54 52 42 20 20 20 20 72 30 2c 5b 72 31 2c 23 33 |TRB r0,[r1,#3| 000003e0 33 5d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |3] | 000003f0 20 20 20 20 20 3b 20 73 74 6f 72 65 20 62 61 63 | ; store bac| 00000400 6b 0a 3b 20 74 69 74 6c 65 20 66 6f 63 75 73 0a |k.; title focus.| 00000410 20 20 20 4c 44 52 42 20 20 20 20 72 30 2c 5b 72 | LDRB r0,[r| 00000420 31 2c 23 33 38 5d 20 20 20 20 20 20 20 20 20 20 |1,#38] | 00000430 20 20 20 20 20 20 20 20 20 3b 20 67 65 74 20 63 | ; get c| 00000440 6f 6c 6f 75 72 0a 20 20 20 54 45 51 20 20 20 20 |olour. TEQ | 00000450 20 72 30 2c 23 31 32 20 20 20 20 20 20 20 20 20 | r0,#12 | 00000460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00000470 20 69 73 20 69 74 20 27 63 72 65 61 6d 27 20 3f | is it 'cream' ?| 00000480 0a 20 20 20 4d 4f 56 45 51 20 20 20 72 30 2c 23 |. MOVEQ r0,#| 00000490 37 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |7 | 000004a0 20 20 20 20 20 20 20 20 20 20 3b 20 6d 61 6b 65 | ; make| 000004b0 20 6d 69 64 20 79 65 6c 6c 6f 77 0a 20 20 20 53 | mid yellow. S| 000004c0 54 52 42 20 20 20 20 72 30 2c 5b 72 31 2c 23 33 |TRB r0,[r1,#3| 000004d0 38 5d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |8] | 000004e0 20 20 20 20 20 3b 20 73 74 6f 72 65 20 62 61 63 | ; store bac| 000004f0 6b 0a 20 20 20 4c 44 4d 46 44 20 20 20 28 73 70 |k. LDMFD (sp| 00000500 29 21 2c 7b 72 30 2d 72 31 2c 70 63 7d 5e 20 20 |)!,{r0-r1,pc}^ | 00000510 20 20 20 20 20 20 20 20 20 20 20 3b 20 52 65 74 | ; Ret| 00000520 75 72 6e 20 66 72 6f 6d 20 63 61 6c 6c 0a 0a 3e |urn from call..>| 00000530 77 69 6d 70 5f 63 72 65 61 74 65 6d 65 6e 75 0a |wimp_createmenu.| 00000540 20 20 20 53 54 4d 46 44 20 20 20 28 73 70 29 21 | STMFD (sp)!| 00000550 2c 7b 72 30 2d 72 31 2c 6c 69 6e 6b 7d 20 20 20 |,{r0-r1,link} | 00000560 20 20 20 20 20 20 20 20 20 3b 20 53 74 61 63 6b | ; Stack| 00000570 20 72 65 67 69 73 74 65 72 73 0a 20 20 20 54 53 | registers. TS| 00000580 54 20 20 20 20 20 72 31 2c 23 33 20 20 20 20 20 |T r1,#3 | 00000590 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000005a0 20 20 20 20 3b 20 69 73 20 69 74 20 61 20 6d 65 | ; is it a me| 000005b0 6e 75 20 3f 0a 20 20 20 42 4e 45 20 20 20 20 20 |nu ?. BNE | 000005c0 24 6e 6f 74 61 6d 65 6e 75 20 20 20 20 20 20 20 |$notamenu | 000005d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 20 | ; | 000005e0 6e 6f 0a 3b 20 74 69 74 6c 65 20 66 6f 72 65 67 |no.; title foreg| 000005f0 72 6f 75 6e 64 0a 20 20 20 4c 44 52 42 20 20 20 |round. LDRB | 00000600 20 72 30 2c 5b 72 31 2c 23 31 32 5d 20 20 20 20 | r0,[r1,#12] | 00000610 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b | ;| 00000620 20 67 65 74 20 63 6f 6c 6f 75 72 0a 20 20 20 54 | get colour. T| 00000630 45 51 20 20 20 20 20 72 30 2c 23 37 20 20 20 20 |EQ r0,#7 | 00000640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000650 20 20 20 20 20 3b 20 69 73 20 69 74 20 27 62 6c | ; is it 'bl| 00000660 61 63 6b 27 20 3f 0a 20 20 20 4d 4f 56 45 51 20 |ack' ?. MOVEQ | 00000670 20 20 72 30 2c 23 30 20 20 20 20 20 20 20 20 20 | r0,#0 | 00000680 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000690 3b 20 6d 61 6b 65 20 70 75 72 70 6c 65 0a 20 20 |; make purple. | 000006a0 20 53 54 52 42 20 20 20 20 72 30 2c 5b 72 31 2c | STRB r0,[r1,| 000006b0 23 31 32 5d 20 20 20 20 20 20 20 20 20 20 20 20 |#12] | 000006c0 20 20 20 20 20 20 20 3b 20 73 74 6f 72 65 20 62 | ; store b| 000006d0 61 63 6b 0a 3b 20 74 69 74 6c 65 20 62 61 63 6b |ack.; title back| 000006e0 67 72 6f 75 6e 64 0a 20 20 20 4c 44 52 42 20 20 |ground. LDRB | 000006f0 20 20 72 30 2c 5b 72 31 2c 23 31 33 5d 20 20 20 | r0,[r1,#13] | 00000700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000710 3b 20 67 65 74 20 63 6f 6c 6f 75 72 0a 20 20 20 |; get colour. | 00000720 54 45 51 20 20 20 20 20 72 30 2c 23 32 20 20 20 |TEQ r0,#2 | 00000730 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000740 20 20 20 20 20 20 3b 20 69 73 20 69 74 20 27 67 | ; is it 'g| 00000750 72 65 79 27 20 3f 0a 20 20 20 4d 4f 56 45 51 20 |rey' ?. MOVEQ | 00000760 20 20 72 30 2c 23 35 20 20 20 20 20 20 20 20 20 | r0,#5 | 00000770 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000780 3b 20 6d 61 6b 65 20 6d 69 64 20 79 65 6c 6c 6f |; make mid yello| 00000790 77 0a 20 20 20 53 54 52 42 20 20 20 20 72 30 2c |w. STRB r0,| 000007a0 5b 72 31 2c 23 31 33 5d 20 20 20 20 20 20 20 20 |[r1,#13] | 000007b0 20 20 20 20 20 20 20 20 20 20 20 3b 20 73 74 6f | ; sto| 000007c0 72 65 20 62 61 63 6b 0a 24 6e 6f 74 61 6d 65 6e |re back.$notamen| 000007d0 75 0a 20 20 20 4c 44 4d 46 44 20 20 20 28 73 70 |u. LDMFD (sp| 000007e0 29 21 2c 7b 72 30 2d 72 31 2c 70 63 7d 5e 20 20 |)!,{r0-r1,pc}^ | 000007f0 20 20 20 20 20 20 20 20 20 20 20 3b 20 52 65 74 | ; Ret| 00000800 75 72 6e 20 66 72 6f 6d 20 63 61 6c 6c 0a |urn from call.| 0000080e