Home » Archimedes archive » Acorn User » AU 1997-06 B.adf » Regulars » StarInfo/Thomas/Plasmoid
StarInfo/Thomas/Plasmoid
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 1997-06 B.adf » Regulars |
Filename: | StarInfo/Thomas/Plasmoid |
Read OK: | ✔ |
File size: | 0E92 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM >Plasmoid 20REM ========================================================================= 30REM Non-plasma-but-looks-like-plasma-maybe program 40REM by Dave Thomas, 1995-6 50REM Original PC version by John O'Rourke 60REM ========================================================================= 70 80ON ERROR REPORT:PRINT " at line ";ERL:END 90 100REM ------------------------------------------------------------------------ 110REM Configuration 120REM ------------- 130 140fx%=128 :REM x size of the display (tables are scaled to this value) 150fy%=128 :REM y size of the display 160t1inc%=2 :REM x increment 170t2inc%=1 :REM y increment 180 190REM ------------------------------------------------------------------------ 200 210DIM mode% 27, vdu% 7 220 230screen_width%=320 240screen_height%=256 250screen_bpp%=8 260 270!mode%=1 280mode%!4=screen_width% 290mode%!8=screen_height% 300mode%!12=LOG(screen_bpp%)/LOG(2) 310mode%!16=-1 320mode%!20=3 330mode%!24=255 340mode%!28=-1 350MODE mode% 360OFF 370 380!vdu%=148:vdu%!4=-1 390SYS "OS_ReadVduVariables",vdu%,vdu% 400screen%=!vdu% 410 420tx=0:ty=1:sintab=2:sx=3:sy=4:col=5:row=6:tmp=7:p=8:t1=9:t2=10:s=11:c=12 430DIM code% 16383 440FOR opt%=0 TO 2 STEP 2 450P%=code% 460[ OPT opt% 470 480 ADR sintab, sintable 490 MOV t1, #0 500 MOV t2, #0 510 MOV c, #512 520 SUB c, c, #1 530.main 540 STMFD r13!, {r0-r2} 550 MOV r0, #19 560 SWI "OS_Byte" 570 LDMFD r13!, {r0-r2} 580 590 LDR tx, [sintab, t1, LSL #2] 600 LDR ty, [sintab, t2, LSL #2] 610 ADD t1, t1, #t1inc% 620 ADD t2, t2, #t2inc% 630 AND t1, t1, c 640 AND t2, t2, c 650 660 LDR s, screenaddr 670 MOV row, #fy% 680.l0 690 MOV col, #fx% 700.l1 710 LDR sx, [sintab, col, LSL #3] 720 SUB col, col, #1 730 MUL sx, tx, sx 740 LDR sy, [sintab, row, LSL #3] 750 MLA tmp, ty, sy, sx 760 MOV tmp, tmp, LSR #16 770 AND p, tmp, #255 780 790 LDR sx, [sintab, col, LSL #3] 800 SUB col, col, #1 810 MUL sx, tx, sx 820 LDR sy, [sintab, row, LSL #3] 830 MLA tmp, ty, sy, sx 840 MOV tmp, tmp, LSR #16 850 AND tmp, tmp, #255 860 ORR p, p, tmp, LSL #8 870 880 LDR sx, [sintab, col, LSL #3] 890 SUB col, col, #1 900 MUL sx, tx, sx 910 LDR sy, [sintab, row, LSL #3] 920 MLA tmp, ty, sy, sx 930 MOV tmp, tmp, LSR #16 940 AND tmp, tmp, #255 950 ORR p, p, tmp, LSL #16 960 970 LDR sx, [sintab, col, LSL #3] 980 SUB col, col, #1 990 MUL sx, tx, sx 1000 LDR sy, [sintab, row, LSL #3] 1010 MLA tmp, ty, sy, sx 1020 MOV tmp, tmp, LSR #16 1030 AND tmp, tmp, #255 1040 ORR p, p, tmp, LSL #24 1050 1060 STR p, [s], #4 1070 CMP col, #0 1080 BNE l1 1090] 1100IF fx%<screen_width% THEN 1110[ OPT opt% 1120 ADD s, s, #screen_width%-fx% 1130] 1140ENDIF 1150[ OPT opt% 1160 1170 SUBS row, row, #1 1180 BNE l0 1190 1200 SWI "OS_ReadEscapeState" 1210 BCC main 1220 1230 MOV pc,r14 1240 1250.screenaddr 1260 DCD !vdu% 1270.sintable 1280] 1290P%+=1024*4 1300NEXT 1310 1320PROCpalette 1330FOR sx% = 0 TO 511 :REM bizzzzzzaree! 1340 sintable!(sx%*4)=SIN(sx%*PI/fx%)*4096 1350NEXT 1360 1370CALL code% 1380 1390END 1400 1410DEF PROCpalette 1420DIM palette% 1023 1430FOR c%=0 TO 127 1440 palette%!(c%<<2) =(127*SIN(c%*PI/256))<<25 1450 palette%!(255-c%<<2)=(127*SIN(c%*PI/256))<<25 1460NEXT 1470SYS "ColourTrans_WritePalette",-1,-1,palette%,0,0 1480ENDPROC 1490
� >Plasmoid O� ========================================================================= 4� Non-plasma-but-looks-like-plasma-maybe program (� by Dave Thomas, 1995-6 2*� Original PC version by John O'Rourke <O� ========================================================================= F P� � �:� " at line ";�:� Z dN� ------------------------------------------------------------------------ n� Configuration x� ------------- � �Gfx%=128 :� x size of the display (tables are scaled to this value) �%fy%=128 :� y size of the display �t1inc%=2 :� x increment �t2inc%=1 :� y increment � �N� ------------------------------------------------------------------------ � �� mode% 27, vdu% 7 � �screen_width%=320 �screen_height%=256 �screen_bpp%=8 !mode%=1 mode%!4=screen_width% "mode%!8=screen_height% , mode%!12=�(screen_bpp%)/�(2) 6mode%!16=-1 @mode%!20=3 Jmode%!24=255 Tmode%!28=-1 ^� mode% h� r |!vdu%=148:vdu%!4=-1 �&ș "OS_ReadVduVariables",vdu%,vdu% �screen%=!vdu% � �Ktx=0:ty=1:sintab=2:sx=3:sy=4:col=5:row=6:tmp=7:p=8:t1=9:t2=10:s=11:c=12 �� code% 16383 �� opt%=0 � 2 � 2 �P%=code% �[ OPT opt% � �$ ADR sintab, sintable � MOV t1, #0 � MOV t2, #0 � MOV c, #512 SUB c, c, #1 .main ! STMFD r13!, {r0-r2} & MOV r0, #19 0 SWI "OS_Byte" :! LDMFD r13!, {r0-r2} D N, LDR tx, [sintab, t1, LSL #2] X, LDR ty, [sintab, t2, LSL #2] b# ADD t1, t1, #t1inc% l# ADD t2, t2, #t2inc% v � t1, t1, c � � t2, t2, c � �! LDR s, screenaddr � MOV row, #fy% �.l0 � MOV col, #fx% �.l1 �- LDR sx, [sintab, col, LSL #3] � SUB col, col, #1 � MUL sx, tx, sx �- LDR sy, [sintab, row, LSL #3] �# MLA tmp, ty, sy, sx �% MOV tmp, tmp, LSR #16 � p, tmp, #255 - LDR sx, [sintab, col, LSL #3] SUB col, col, #1 * MUL sx, tx, sx 4- LDR sy, [sintab, row, LSL #3] ># MLA tmp, ty, sy, sx H% MOV tmp, tmp, LSR #16 R � tmp, tmp, #255 \$ �R p, p, tmp, LSL #8 f p- LDR sx, [sintab, col, LSL #3] z SUB col, col, #1 � MUL sx, tx, sx �- LDR sy, [sintab, row, LSL #3] �# MLA tmp, ty, sy, sx �% MOV tmp, tmp, LSR #16 � � tmp, tmp, #255 �% �R p, p, tmp, LSL #16 � �- LDR sx, [sintab, col, LSL #3] � SUB col, col, #1 � MUL sx, tx, sx �- LDR sy, [sintab, row, LSL #3] �# MLA tmp, ty, sy, sx �% MOV tmp, tmp, LSR #16 � tmp, tmp, #255 % �R p, p, tmp, LSL #24 $ STR p, [s], #4 . CMP col, #0 8 BNE l1 B] L� fx%<screen_width% � V[ OPT opt% `, ADD s, s, #screen_width%-fx% j] t� ~[ OPT opt% � � SUBS row, row, #1 � BNE l0 � �( SWI "OS_ReadEscapeState" � BCC main � � MOV pc,r14 � �.screenaddr � DCD !vdu% � .sintable ] P%+=1024*4 � (�palette 2$� sx% = 0 � 511 :� bizzzzzzaree! <( sintable!(sx%*4)=�(sx%*�/fx%)*4096 F� P Z� code% d n� x �� �palette �� palette% 1023 �� c%=0 � 127 �0 palette%!(c%<<2) =(127*�(c%*�/256))<<25 �0 palette%!(255-c%<<2)=(127*�(c%*�/256))<<25 �� �4ș "ColourTrans_WritePalette",-1,-1,palette%,0,0 �� � �
00000000 0d 00 0a 0f f4 20 3e 50 6c 61 73 6d 6f 69 64 0d |..... >Plasmoid.| 00000010 00 14 4f f4 20 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |..O. ===========| 00000020 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000050 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 00 |==============..| 00000060 1e 34 f4 20 4e 6f 6e 2d 70 6c 61 73 6d 61 2d 62 |.4. Non-plasma-b| 00000070 75 74 2d 6c 6f 6f 6b 73 2d 6c 69 6b 65 2d 70 6c |ut-looks-like-pl| 00000080 61 73 6d 61 2d 6d 61 79 62 65 20 70 72 6f 67 72 |asma-maybe progr| 00000090 61 6d 0d 00 28 1c f4 20 62 79 20 44 61 76 65 20 |am..(.. by Dave | 000000a0 54 68 6f 6d 61 73 2c 20 31 39 39 35 2d 36 0d 00 |Thomas, 1995-6..| 000000b0 32 2a f4 20 4f 72 69 67 69 6e 61 6c 20 50 43 20 |2*. Original PC | 000000c0 76 65 72 73 69 6f 6e 20 62 79 20 4a 6f 68 6e 20 |version by John | 000000d0 4f 27 52 6f 75 72 6b 65 0d 00 3c 4f f4 20 3d 3d |O'Rourke..<O. ==| 000000e0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000120 3d 3d 3d 3d 3d 3d 3d 0d 00 46 04 0d 00 50 1b ee |=======..F...P..| 00000130 20 85 20 f6 3a f1 20 22 20 61 74 20 6c 69 6e 65 | . .:. " at line| 00000140 20 22 3b 9e 3a e0 0d 00 5a 04 0d 00 64 4e f4 20 | ";.:...Z...dN. | 00000150 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 00000190 2d 2d 2d 2d 2d 2d 2d 2d 0d 00 6e 13 f4 20 43 6f |--------..n.. Co| 000001a0 6e 66 69 67 75 72 61 74 69 6f 6e 0d 00 78 13 f4 |nfiguration..x..| 000001b0 20 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 00 | -------------..| 000001c0 82 04 0d 00 8c 47 66 78 25 3d 31 32 38 20 20 3a |.....Gfx%=128 :| 000001d0 f4 20 78 20 73 69 7a 65 20 6f 66 20 74 68 65 20 |. x size of the | 000001e0 64 69 73 70 6c 61 79 20 28 74 61 62 6c 65 73 20 |display (tables | 000001f0 61 72 65 20 73 63 61 6c 65 64 20 74 6f 20 74 68 |are scaled to th| 00000200 69 73 20 76 61 6c 75 65 29 0d 00 96 25 66 79 25 |is value)...%fy%| 00000210 3d 31 32 38 20 20 3a f4 20 79 20 73 69 7a 65 20 |=128 :. y size | 00000220 6f 66 20 74 68 65 20 64 69 73 70 6c 61 79 0d 00 |of the display..| 00000230 a0 1b 74 31 69 6e 63 25 3d 32 20 3a f4 20 78 20 |..t1inc%=2 :. x | 00000240 69 6e 63 72 65 6d 65 6e 74 0d 00 aa 1b 74 32 69 |increment....t2i| 00000250 6e 63 25 3d 31 20 3a f4 20 79 20 69 6e 63 72 65 |nc%=1 :. y incre| 00000260 6d 65 6e 74 0d 00 b4 04 0d 00 be 4e f4 20 2d 2d |ment.......N. --| 00000270 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d |----------------| * 000002b0 2d 2d 2d 2d 2d 2d 0d 00 c8 04 0d 00 d2 16 de 20 |------......... | 000002c0 6d 6f 64 65 25 20 32 37 2c 20 76 64 75 25 20 37 |mode% 27, vdu% 7| 000002d0 0d 00 dc 04 0d 00 e6 15 73 63 72 65 65 6e 5f 77 |........screen_w| 000002e0 69 64 74 68 25 3d 33 32 30 0d 00 f0 16 73 63 72 |idth%=320....scr| 000002f0 65 65 6e 5f 68 65 69 67 68 74 25 3d 32 35 36 0d |een_height%=256.| 00000300 00 fa 11 73 63 72 65 65 6e 5f 62 70 70 25 3d 38 |...screen_bpp%=8| 00000310 0d 01 04 04 0d 01 0e 0c 21 6d 6f 64 65 25 3d 31 |........!mode%=1| 00000320 0d 01 18 19 6d 6f 64 65 25 21 34 3d 73 63 72 65 |....mode%!4=scre| 00000330 65 6e 5f 77 69 64 74 68 25 0d 01 22 1a 6d 6f 64 |en_width%..".mod| 00000340 65 25 21 38 3d 73 63 72 65 65 6e 5f 68 65 69 67 |e%!8=screen_heig| 00000350 68 74 25 0d 01 2c 20 6d 6f 64 65 25 21 31 32 3d |ht%.., mode%!12=| 00000360 ab 28 73 63 72 65 65 6e 5f 62 70 70 25 29 2f ab |.(screen_bpp%)/.| 00000370 28 32 29 0d 01 36 0f 6d 6f 64 65 25 21 31 36 3d |(2)..6.mode%!16=| 00000380 2d 31 0d 01 40 0e 6d 6f 64 65 25 21 32 30 3d 33 |-1..@.mode%!20=3| 00000390 0d 01 4a 10 6d 6f 64 65 25 21 32 34 3d 32 35 35 |..J.mode%!24=255| 000003a0 0d 01 54 0f 6d 6f 64 65 25 21 32 38 3d 2d 31 0d |..T.mode%!28=-1.| 000003b0 01 5e 0b eb 20 6d 6f 64 65 25 0d 01 68 05 87 0d |.^.. mode%..h...| 000003c0 01 72 04 0d 01 7c 17 21 76 64 75 25 3d 31 34 38 |.r...|.!vdu%=148| 000003d0 3a 76 64 75 25 21 34 3d 2d 31 0d 01 86 26 c8 99 |:vdu%!4=-1...&..| 000003e0 20 22 4f 53 5f 52 65 61 64 56 64 75 56 61 72 69 | "OS_ReadVduVari| 000003f0 61 62 6c 65 73 22 2c 76 64 75 25 2c 76 64 75 25 |ables",vdu%,vdu%| 00000400 0d 01 90 11 73 63 72 65 65 6e 25 3d 21 76 64 75 |....screen%=!vdu| 00000410 25 0d 01 9a 04 0d 01 a4 4b 74 78 3d 30 3a 74 79 |%.......Ktx=0:ty| 00000420 3d 31 3a 73 69 6e 74 61 62 3d 32 3a 73 78 3d 33 |=1:sintab=2:sx=3| 00000430 3a 73 79 3d 34 3a 63 6f 6c 3d 35 3a 72 6f 77 3d |:sy=4:col=5:row=| 00000440 36 3a 74 6d 70 3d 37 3a 70 3d 38 3a 74 31 3d 39 |6:tmp=7:p=8:t1=9| 00000450 3a 74 32 3d 31 30 3a 73 3d 31 31 3a 63 3d 31 32 |:t2=10:s=11:c=12| 00000460 0d 01 ae 11 de 20 63 6f 64 65 25 20 31 36 33 38 |..... code% 1638| 00000470 33 0d 01 b8 14 e3 20 6f 70 74 25 3d 30 20 b8 20 |3..... opt%=0 . | 00000480 32 20 88 20 32 0d 01 c2 0c 50 25 3d 63 6f 64 65 |2 . 2....P%=code| 00000490 25 0d 01 cc 18 5b 20 20 20 20 20 20 20 4f 50 54 |%....[ OPT| 000004a0 20 20 20 20 20 6f 70 74 25 0d 01 d6 04 0d 01 e0 | opt%.......| 000004b0 24 20 20 20 20 20 20 20 20 41 44 52 20 20 20 20 |$ ADR | 000004c0 20 73 69 6e 74 61 62 2c 20 73 69 6e 74 61 62 6c | sintab, sintabl| 000004d0 65 0d 01 ea 1a 20 20 20 20 20 20 20 20 4d 4f 56 |e.... MOV| 000004e0 20 20 20 20 20 74 31 2c 20 23 30 0d 01 f4 1a 20 | t1, #0.... | 000004f0 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 74 | MOV t| 00000500 32 2c 20 23 30 0d 01 fe 1b 20 20 20 20 20 20 20 |2, #0.... | 00000510 20 4d 4f 56 20 20 20 20 20 63 2c 20 23 35 31 32 | MOV c, #512| 00000520 0d 02 08 1c 20 20 20 20 20 20 20 20 53 55 42 20 |.... SUB | 00000530 20 20 20 20 63 2c 20 63 2c 20 23 31 0d 02 12 09 | c, c, #1....| 00000540 2e 6d 61 69 6e 0d 02 1c 21 20 20 20 20 20 20 20 |.main...! | 00000550 20 53 54 4d 46 44 20 20 20 72 31 33 21 2c 20 7b | STMFD r13!, {| 00000560 72 30 2d 72 32 7d 0d 02 26 1b 20 20 20 20 20 20 |r0-r2}..&. | 00000570 20 20 4d 4f 56 20 20 20 20 20 72 30 2c 20 23 31 | MOV r0, #1| 00000580 39 0d 02 30 1d 20 20 20 20 20 20 20 20 53 57 49 |9..0. SWI| 00000590 20 20 20 20 20 22 4f 53 5f 42 79 74 65 22 0d 02 | "OS_Byte"..| 000005a0 3a 21 20 20 20 20 20 20 20 20 4c 44 4d 46 44 20 |:! LDMFD | 000005b0 20 20 72 31 33 21 2c 20 7b 72 30 2d 72 32 7d 0d | r13!, {r0-r2}.| 000005c0 02 44 04 0d 02 4e 2c 20 20 20 20 20 20 20 20 4c |.D...N, L| 000005d0 44 52 20 20 20 20 20 74 78 2c 20 5b 73 69 6e 74 |DR tx, [sint| 000005e0 61 62 2c 20 74 31 2c 20 4c 53 4c 20 23 32 5d 0d |ab, t1, LSL #2].| 000005f0 02 58 2c 20 20 20 20 20 20 20 20 4c 44 52 20 20 |.X, LDR | 00000600 20 20 20 74 79 2c 20 5b 73 69 6e 74 61 62 2c 20 | ty, [sintab, | 00000610 74 32 2c 20 4c 53 4c 20 23 32 5d 0d 02 62 23 20 |t2, LSL #2]..b# | 00000620 20 20 20 20 20 20 20 41 44 44 20 20 20 20 20 74 | ADD t| 00000630 31 2c 20 74 31 2c 20 23 74 31 69 6e 63 25 0d 02 |1, t1, #t1inc%..| 00000640 6c 23 20 20 20 20 20 20 20 20 41 44 44 20 20 20 |l# ADD | 00000650 20 20 74 32 2c 20 74 32 2c 20 23 74 32 69 6e 63 | t2, t2, #t2inc| 00000660 25 0d 02 76 1b 20 20 20 20 20 20 20 20 80 20 20 |%..v. . | 00000670 20 20 20 74 31 2c 20 74 31 2c 20 63 0d 02 80 1b | t1, t1, c....| 00000680 20 20 20 20 20 20 20 20 80 20 20 20 20 20 74 32 | . t2| 00000690 2c 20 74 32 2c 20 63 0d 02 8a 04 0d 02 94 21 20 |, t2, c.......! | 000006a0 20 20 20 20 20 20 20 4c 44 52 20 20 20 20 20 73 | LDR s| 000006b0 2c 20 73 63 72 65 65 6e 61 64 64 72 0d 02 9e 1d |, screenaddr....| 000006c0 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 | MOV | 000006d0 72 6f 77 2c 20 23 66 79 25 0d 02 a8 07 2e 6c 30 |row, #fy%.....l0| 000006e0 0d 02 b2 1d 20 20 20 20 20 20 20 20 4d 4f 56 20 |.... MOV | 000006f0 20 20 20 20 63 6f 6c 2c 20 23 66 78 25 0d 02 bc | col, #fx%...| 00000700 07 2e 6c 31 0d 02 c6 2d 20 20 20 20 20 20 20 20 |..l1...- | 00000710 4c 44 52 20 20 20 20 20 73 78 2c 20 5b 73 69 6e |LDR sx, [sin| 00000720 74 61 62 2c 20 63 6f 6c 2c 20 4c 53 4c 20 23 33 |tab, col, LSL #3| 00000730 5d 0d 02 d0 20 20 20 20 20 20 20 20 20 53 55 42 |]... SUB| 00000740 20 20 20 20 20 63 6f 6c 2c 20 63 6f 6c 2c 20 23 | col, col, #| 00000750 31 0d 02 da 1e 20 20 20 20 20 20 20 20 4d 55 4c |1.... MUL| 00000760 20 20 20 20 20 73 78 2c 20 74 78 2c 20 73 78 0d | sx, tx, sx.| 00000770 02 e4 2d 20 20 20 20 20 20 20 20 4c 44 52 20 20 |..- LDR | 00000780 20 20 20 73 79 2c 20 5b 73 69 6e 74 61 62 2c 20 | sy, [sintab, | 00000790 72 6f 77 2c 20 4c 53 4c 20 23 33 5d 0d 02 ee 23 |row, LSL #3]...#| 000007a0 20 20 20 20 20 20 20 20 4d 4c 41 20 20 20 20 20 | MLA | 000007b0 74 6d 70 2c 20 74 79 2c 20 73 79 2c 20 73 78 0d |tmp, ty, sy, sx.| 000007c0 02 f8 25 20 20 20 20 20 20 20 20 4d 4f 56 20 20 |..% MOV | 000007d0 20 20 20 74 6d 70 2c 20 74 6d 70 2c 20 4c 53 52 | tmp, tmp, LSR| 000007e0 20 23 31 36 0d 03 02 1e 20 20 20 20 20 20 20 20 | #16.... | 000007f0 80 20 20 20 20 20 70 2c 20 74 6d 70 2c 20 23 32 |. p, tmp, #2| 00000800 35 35 0d 03 0c 04 0d 03 16 2d 20 20 20 20 20 20 |55.......- | 00000810 20 20 4c 44 52 20 20 20 20 20 73 78 2c 20 5b 73 | LDR sx, [s| 00000820 69 6e 74 61 62 2c 20 63 6f 6c 2c 20 4c 53 4c 20 |intab, col, LSL | 00000830 23 33 5d 0d 03 20 20 20 20 20 20 20 20 20 20 53 |#3].. S| 00000840 55 42 20 20 20 20 20 63 6f 6c 2c 20 63 6f 6c 2c |UB col, col,| 00000850 20 23 31 0d 03 2a 1e 20 20 20 20 20 20 20 20 4d | #1..*. M| 00000860 55 4c 20 20 20 20 20 73 78 2c 20 74 78 2c 20 73 |UL sx, tx, s| 00000870 78 0d 03 34 2d 20 20 20 20 20 20 20 20 4c 44 52 |x..4- LDR| 00000880 20 20 20 20 20 73 79 2c 20 5b 73 69 6e 74 61 62 | sy, [sintab| 00000890 2c 20 72 6f 77 2c 20 4c 53 4c 20 23 33 5d 0d 03 |, row, LSL #3]..| 000008a0 3e 23 20 20 20 20 20 20 20 20 4d 4c 41 20 20 20 |># MLA | 000008b0 20 20 74 6d 70 2c 20 74 79 2c 20 73 79 2c 20 73 | tmp, ty, sy, s| 000008c0 78 0d 03 48 25 20 20 20 20 20 20 20 20 4d 4f 56 |x..H% MOV| 000008d0 20 20 20 20 20 74 6d 70 2c 20 74 6d 70 2c 20 4c | tmp, tmp, L| 000008e0 53 52 20 23 31 36 0d 03 52 20 20 20 20 20 20 20 |SR #16..R | 000008f0 20 20 80 20 20 20 20 20 74 6d 70 2c 20 74 6d 70 | . tmp, tmp| 00000900 2c 20 23 32 35 35 0d 03 5c 24 20 20 20 20 20 20 |, #255..\$ | 00000910 20 20 84 52 20 20 20 20 20 70 2c 20 70 2c 20 74 | .R p, p, t| 00000920 6d 70 2c 20 4c 53 4c 20 23 38 0d 03 66 04 0d 03 |mp, LSL #8..f...| 00000930 70 2d 20 20 20 20 20 20 20 20 4c 44 52 20 20 20 |p- LDR | 00000940 20 20 73 78 2c 20 5b 73 69 6e 74 61 62 2c 20 63 | sx, [sintab, c| 00000950 6f 6c 2c 20 4c 53 4c 20 23 33 5d 0d 03 7a 20 20 |ol, LSL #3]..z | 00000960 20 20 20 20 20 20 20 53 55 42 20 20 20 20 20 63 | SUB c| 00000970 6f 6c 2c 20 63 6f 6c 2c 20 23 31 0d 03 84 1e 20 |ol, col, #1.... | 00000980 20 20 20 20 20 20 20 4d 55 4c 20 20 20 20 20 73 | MUL s| 00000990 78 2c 20 74 78 2c 20 73 78 0d 03 8e 2d 20 20 20 |x, tx, sx...- | 000009a0 20 20 20 20 20 4c 44 52 20 20 20 20 20 73 79 2c | LDR sy,| 000009b0 20 5b 73 69 6e 74 61 62 2c 20 72 6f 77 2c 20 4c | [sintab, row, L| 000009c0 53 4c 20 23 33 5d 0d 03 98 23 20 20 20 20 20 20 |SL #3]...# | 000009d0 20 20 4d 4c 41 20 20 20 20 20 74 6d 70 2c 20 74 | MLA tmp, t| 000009e0 79 2c 20 73 79 2c 20 73 78 0d 03 a2 25 20 20 20 |y, sy, sx...% | 000009f0 20 20 20 20 20 4d 4f 56 20 20 20 20 20 74 6d 70 | MOV tmp| 00000a00 2c 20 74 6d 70 2c 20 4c 53 52 20 23 31 36 0d 03 |, tmp, LSR #16..| 00000a10 ac 20 20 20 20 20 20 20 20 20 80 20 20 20 20 20 |. . | 00000a20 74 6d 70 2c 20 74 6d 70 2c 20 23 32 35 35 0d 03 |tmp, tmp, #255..| 00000a30 b6 25 20 20 20 20 20 20 20 20 84 52 20 20 20 20 |.% .R | 00000a40 20 70 2c 20 70 2c 20 74 6d 70 2c 20 4c 53 4c 20 | p, p, tmp, LSL | 00000a50 23 31 36 0d 03 c0 04 0d 03 ca 2d 20 20 20 20 20 |#16.......- | 00000a60 20 20 20 4c 44 52 20 20 20 20 20 73 78 2c 20 5b | LDR sx, [| 00000a70 73 69 6e 74 61 62 2c 20 63 6f 6c 2c 20 4c 53 4c |sintab, col, LSL| 00000a80 20 23 33 5d 0d 03 d4 20 20 20 20 20 20 20 20 20 | #3]... | 00000a90 53 55 42 20 20 20 20 20 63 6f 6c 2c 20 63 6f 6c |SUB col, col| 00000aa0 2c 20 23 31 0d 03 de 1e 20 20 20 20 20 20 20 20 |, #1.... | 00000ab0 4d 55 4c 20 20 20 20 20 73 78 2c 20 74 78 2c 20 |MUL sx, tx, | 00000ac0 73 78 0d 03 e8 2d 20 20 20 20 20 20 20 20 4c 44 |sx...- LD| 00000ad0 52 20 20 20 20 20 73 79 2c 20 5b 73 69 6e 74 61 |R sy, [sinta| 00000ae0 62 2c 20 72 6f 77 2c 20 4c 53 4c 20 23 33 5d 0d |b, row, LSL #3].| 00000af0 03 f2 23 20 20 20 20 20 20 20 20 4d 4c 41 20 20 |..# MLA | 00000b00 20 20 20 74 6d 70 2c 20 74 79 2c 20 73 79 2c 20 | tmp, ty, sy, | 00000b10 73 78 0d 03 fc 25 20 20 20 20 20 20 20 20 4d 4f |sx...% MO| 00000b20 56 20 20 20 20 20 74 6d 70 2c 20 74 6d 70 2c 20 |V tmp, tmp, | 00000b30 4c 53 52 20 23 31 36 0d 04 06 20 20 20 20 20 20 |LSR #16... | 00000b40 20 20 20 80 20 20 20 20 20 74 6d 70 2c 20 74 6d | . tmp, tm| 00000b50 70 2c 20 23 32 35 35 0d 04 10 25 20 20 20 20 20 |p, #255...% | 00000b60 20 20 20 84 52 20 20 20 20 20 70 2c 20 70 2c 20 | .R p, p, | 00000b70 74 6d 70 2c 20 4c 53 4c 20 23 32 34 0d 04 1a 04 |tmp, LSL #24....| 00000b80 0d 04 24 1e 20 20 20 20 20 20 20 20 53 54 52 20 |..$. STR | 00000b90 20 20 20 20 70 2c 20 5b 73 5d 2c 20 23 34 0d 04 | p, [s], #4..| 00000ba0 2e 1b 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 |.. CMP | 00000bb0 20 20 63 6f 6c 2c 20 23 30 0d 04 38 16 20 20 20 | col, #0..8. | 00000bc0 20 20 20 20 20 42 4e 45 20 20 20 20 20 6c 31 0d | BNE l1.| 00000bd0 04 42 05 5d 0d 04 4c 19 e7 20 66 78 25 3c 73 63 |.B.]..L.. fx%<sc| 00000be0 72 65 65 6e 5f 77 69 64 74 68 25 20 8c 0d 04 56 |reen_width% ...V| 00000bf0 18 5b 20 20 20 20 20 20 20 4f 50 54 20 20 20 20 |.[ OPT | 00000c00 20 6f 70 74 25 0d 04 60 2c 20 20 20 20 20 20 20 | opt%..`, | 00000c10 20 41 44 44 20 20 20 20 20 73 2c 20 73 2c 20 23 | ADD s, s, #| 00000c20 73 63 72 65 65 6e 5f 77 69 64 74 68 25 2d 66 78 |screen_width%-fx| 00000c30 25 0d 04 6a 05 5d 0d 04 74 05 cd 0d 04 7e 18 5b |%..j.]..t....~.[| 00000c40 20 20 20 20 20 20 20 4f 50 54 20 20 20 20 20 6f | OPT o| 00000c50 70 74 25 0d 04 88 04 0d 04 92 20 20 20 20 20 20 |pt%....... | 00000c60 20 20 20 53 55 42 53 20 20 20 20 72 6f 77 2c 20 | SUBS row, | 00000c70 72 6f 77 2c 20 23 31 0d 04 9c 16 20 20 20 20 20 |row, #1.... | 00000c80 20 20 20 42 4e 45 20 20 20 20 20 6c 30 0d 04 a6 | BNE l0...| 00000c90 04 0d 04 b0 28 20 20 20 20 20 20 20 20 53 57 49 |....( SWI| 00000ca0 20 20 20 20 20 22 4f 53 5f 52 65 61 64 45 73 63 | "OS_ReadEsc| 00000cb0 61 70 65 53 74 61 74 65 22 0d 04 ba 18 20 20 20 |apeState".... | 00000cc0 20 20 20 20 20 42 43 43 20 20 20 20 20 6d 61 69 | BCC mai| 00000cd0 6e 0d 04 c4 04 0d 04 ce 1a 20 20 20 20 20 20 20 |n........ | 00000ce0 20 4d 4f 56 20 20 20 20 20 70 63 2c 72 31 34 0d | MOV pc,r14.| 00000cf0 04 d8 04 0d 04 e2 0f 2e 73 63 72 65 65 6e 61 64 |........screenad| 00000d00 64 72 0d 04 ec 19 20 20 20 20 20 20 20 20 44 43 |dr.... DC| 00000d10 44 20 20 20 20 20 21 76 64 75 25 0d 04 f6 0d 2e |D !vdu%.....| 00000d20 73 69 6e 74 61 62 6c 65 0d 05 00 05 5d 0d 05 0a |sintable....]...| 00000d30 0e 50 25 2b 3d 31 30 32 34 2a 34 0d 05 14 05 ed |.P%+=1024*4.....| 00000d40 0d 05 1e 04 0d 05 28 0c f2 70 61 6c 65 74 74 65 |......(..palette| 00000d50 0d 05 32 24 e3 20 73 78 25 20 3d 20 30 20 b8 20 |..2$. sx% = 0 . | 00000d60 35 31 31 20 3a f4 20 62 69 7a 7a 7a 7a 7a 7a 61 |511 :. bizzzzzza| 00000d70 72 65 65 21 0d 05 3c 28 20 20 73 69 6e 74 61 62 |ree!..<( sintab| 00000d80 6c 65 21 28 73 78 25 2a 34 29 3d b5 28 73 78 25 |le!(sx%*4)=.(sx%| 00000d90 2a af 2f 66 78 25 29 2a 34 30 39 36 0d 05 46 05 |*./fx%)*4096..F.| 00000da0 ed 0d 05 50 04 0d 05 5a 0b d6 20 63 6f 64 65 25 |...P...Z.. code%| 00000db0 0d 05 64 04 0d 05 6e 05 e0 0d 05 78 04 0d 05 82 |..d...n....x....| 00000dc0 0e dd 20 f2 70 61 6c 65 74 74 65 0d 05 8c 13 de |.. .palette.....| 00000dd0 20 70 61 6c 65 74 74 65 25 20 31 30 32 33 0d 05 | palette% 1023..| 00000de0 96 10 e3 20 63 25 3d 30 20 b8 20 31 32 37 0d 05 |... c%=0 . 127..| 00000df0 a0 30 20 20 70 61 6c 65 74 74 65 25 21 28 63 25 |.0 palette%!(c%| 00000e00 3c 3c 32 29 20 20 20 20 3d 28 31 32 37 2a b5 28 |<<2) =(127*.(| 00000e10 63 25 2a af 2f 32 35 36 29 29 3c 3c 32 35 0d 05 |c%*./256))<<25..| 00000e20 aa 30 20 20 70 61 6c 65 74 74 65 25 21 28 32 35 |.0 palette%!(25| 00000e30 35 2d 63 25 3c 3c 32 29 3d 28 31 32 37 2a b5 28 |5-c%<<2)=(127*.(| 00000e40 63 25 2a af 2f 32 35 36 29 29 3c 3c 32 35 0d 05 |c%*./256))<<25..| 00000e50 b4 05 ed 0d 05 be 34 c8 99 20 22 43 6f 6c 6f 75 |......4.. "Colou| 00000e60 72 54 72 61 6e 73 5f 57 72 69 74 65 50 61 6c 65 |rTrans_WritePale| 00000e70 74 74 65 22 2c 2d 31 2c 2d 31 2c 70 61 6c 65 74 |tte",-1,-1,palet| 00000e80 74 65 25 2c 30 2c 30 0d 05 c8 05 e1 0d 05 d2 04 |te%,0,0.........| 00000e90 0d ff |..| 00000e92