Home » Personal collection » Acorn hard disk » files » !ScrSave » !RunImage

!RunImage

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » files » !ScrSave
Filename: !RunImage
Read OK:
File size: 24C3 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM !ScrSave
   20REM LEN Dominic Ford, 1999
   30:
   40ON ERROR !txt%=0:$(txt%+4)=REPORT$+" at line "+STR$ERL+CHR$0:SYS "Wimp_ReportError",txt%,0,"ScreenSaver":END
   50DIM q% 256,q2% 256,r% 256,menusp% &1000,iconsp% 256,infosp% &400,txt% 256,e% 256
   60:
   70PROCsetmeup
   80:
   90SYS "Wimp_Initialise",200,&4B534154,"ScrSave"
  100PROCicon
  110PROCmenus
  120time=TIME:MOUSE ox,oy,c
  130 REPEAT
  140  SYS "Wimp_Poll",0,q% TO a%
  150  MOUSEx,y,c:IF ox<>x OR oy<>y OR c<>0 THEN time=TIME
  160  MOUSE ox,oy,c
  170  SYS"OS_Byte",121,0 TO ,c:IF c<>255THENtime=TIME
  180  IF(TIME-time)>500 THEN PROCdoit
  190  CASE a% OF
  200   WHEN 6
  210    CASE q%!12 OF
  220     WHEN -2
  230      IF q%!16=icon% AND q%!8=2 THEN PROCopen_menu
  240    ENDCASE
  250   WHEN 8
  260     SYS "Wimp_ProcessKey",q%!24
  270   WHEN 9
  280    PROChandlemenu
  290   WHEN 17,18
  300    CASE q%!16 OF
  310     WHEN 0
  320      END
  330    ENDCASE
  340  ENDCASE
  350 UNTIL FALSE
  360:
  370DEFPROCerror(e$)
  380!e%=0
  390$(e%+4)=e$+CHR$0
  400SYS "Wimp_ReportError",e%,0,"ScrSave"
  410ENDPROC
  420:
  430DEFFNconfirm(m$)
  440LOCAL r%
  450!e%=0
  460$(e%+4)=m$+CHR$0
  470SYS "Wimp_ReportError",e%,&13,"ScrSave" TO ,r%
  480=r%
  490:
  500DEFPROCfault(err%,err$)
  510!e%=err%
  520$(e%+4)=err$+CHR$0
  530IFerr%=220 THEN $(e%+4)="Bad filename"+CHR$0
  540SYS "Wimp_ReportError",e%,0,"ScrSave"
  550ENDPROC
  560:
  570DEFPROCmenus
  580 PROCinfobox
  590 PROCmainmenu
  600ENDPROC
  610:
  620DEFPROCmainmenu
  630 p%=menusp%+512:mainmenu%=p%
  640 $p%="ScrSave"+CHR$0:p%!12=&70207:p%!16=200
  650 p%!20=40:p%!24=0:f%=p%+28
  660 !f%=0:f%!4=info%:f%!8=&07000011:$(f%+12)="Info"+CHR$0:f%+=24
  670 !f%=&80:f%!4=-1:f%!8=&07003011:$(f%+12)="Quit"+CHR$0:f%+=24
  680ENDPROC
  690:
  700DEFPROChandlemenu
  710 LOCAL a%,l%
  720 CASE !q% OF
  730   WHEN 1
  740   END
  750 ENDCASE
  760 SYS "Wimp_GetPointerInfo",,q%
  770 IF ((q%!8) AND 1)=1 THEN PROCopen_menu
  780ENDPROC
  790:
  800DEFPROCinfobox
  810LOCAL s%,i%
  820s%=infosp%
  830s%!28=&84000012
  840s%!32=&1070207
  850s%!36=&20103
  860s%!40=20:s%!44=0
  870s%!48=636:s%!52=216
  880s%!56=&00000119
  890s%!60=&00000000
  900s%!64=1
  910s%!68=616
  920s%!70=216
  930s%!72=s%+528
  940s%!76=s%+390
  950s%!80=32
  960s%!84=8
  970i%=s%+88
  980!i%=32:i%!4=8
  990i%!8=184:i%!12=56
 1000i%!16=&07000211
 1010$(i%+20)="Version:"+CHR$0
 1020i%+=32
 1030!i%=188:i%!4=8
 1040i%!8=632:i%!12=56
 1050i%!16=&0700013D
 1060i%!20=s%+400
 1070i%!24=s%+390
 1080i%!28=30
 1090i%+=32
 1100!i%=32:i%!4=60
 1110i%!8=184:i%!12=108
 1120i%!16=&07000211
 1130$(i%+20)="Author:"+CHR$0
 1140i%+=32
 1150!i%=188:i%!4=60
 1160i%!8=632:i%!12=108
 1170i%!16=&0700013D
 1180i%!20=s%+432
 1190i%!24=s%+390
 1200i%!28=30
 1210i%+=32
 1220!i%=32:i%!4=112
 1230i%!8=184:i%!12=160
 1240i%!16=&07000211
 1250$(i%+20)="Purpose:"+CHR$0
 1260i%+=32
 1270!i%=188:i%!4=112
 1280i%!8=632:i%!12=160
 1290i%!16=&0700013D
 1300i%!20=s%+464
 1310i%!24=s%+390
 1320i%!28=30
 1330i%+=32
 1340!i%=32:i%!4=164
 1350i%!8=184:i%!12=212
 1360i%!16=&07000211
 1370$(i%+20)="Name:"+CHR$0
 1380i%+=32
 1390!i%=188:i%!4=164
 1400i%!8=632:i%!12=212
 1410i%!16=&0700013D
 1420i%!20=s%+496
 1430i%!24=s%+390
 1440i%!28=30
 1450s%!390=0
 1460$(s%+400)="1.00 (20-Dec-99)"+CHR$0
 1470$(s%+432)="� Dominic Ford, 1999"+CHR$0
 1480$(s%+464)="Screen Saver"+CHR$0
 1490$(s%+496)="ScrSave"+CHR$0
 1500$(s%+528)="About this program"+CHR$0
 1510SYS "Wimp_CreateWindow",,s% TO info%
 1520ENDPROC
 1530:
 1540DEFPROCopen_menu
 1550 SYS "Wimp_CreateMenu",,mainmenu%,(!q%)-64,160
 1560ENDPROC
 1570:
 1580DEFPROCicon
 1590sp%=iconsp%
 1600!sp%=-1
 1610sp%!4=0
 1620sp%!8=0
 1630sp%!12=&64:sp%!16=&44
 1640sp%!20=&1700300A
 1650$(sp%+24)="!scrsave"+CHR$0
 1660SYS "Wimp_CreateIcon",,sp% TO icon%
 1670ENDPROC
 1680:
 1690REM ACTUAL CODE!
 1700:
 1710DEFPROCsetmeup
 1720speed%=2<<16
 1730tracks%=8
 1740DIM code% 50000
 1750link=14:pc=15
 1760x=5:y=6:h=7:v=8
 1770track=9:base=10:temp=11:add=12
 1780count=1:point=2:key=3:top=4
 1790amount%=900
 1800FOR pass%=0 TO 2 STEP 2
 1810P%=code%
 1820[OPTpass%
 1830.random FNrndplace
 1840.rndadd EQUD random
 1850.rndcnt EQUD random
 1860.xstart EQUD RND(320)<<16
 1870.ystart EQUD RND(256)<<16
 1880.which  EQUD 1
 1890.colour EQUB RND(255)
 1900        EQUB RND(255)
 1910        EQUB RND(255)
 1920        EQUB RND(255)
 1930        EQUB RND(255)
 1940        EQUB RND(255)
 1950.colno1 EQUB RND(255)
 1960.colno2 EQUB RND(255)
 1970.coladd EQUB 0
 1980        ALIGN
 1990.vdu    EQUD 148
 2000        EQUD -1
 2010        ALIGN
 2020
 2030.start  STR     link,return
 2040        LDR     base,vdu
 2050        ADD     top,base,#81920
 2060        SUB     top,top,#640
 2070        MOV     track,#1
 2080        MOV     key,#1
 2090.loop   MOV     R0,#121
 2100        MOV     R1,#0
 2110        SWI     "OS_Byte"
 2120        CMP     R1,#255
 2130        BNE     end
 2140        MOV     count,#0
 2150        ADD     key,key,#1
 2160        CMP     key,#100
 2170        BLGT    set
 2180        ADR     add,data+32
 2190.loop2  ADD     count,count,#1
 2200        TEQ     count,#(amount%/3)
 2210        BLEQ    chng2
 2220        TEQ     count,#(amount%/3*2)
 2230        BLEQ    chng4
 2240        TEQ     count,#1
 2250        BLEQ    chng1
 2260        MOV     temp,#0
 2270        ADD     x,add,track,LSL#2
 2280        LDR     point,[x,#-36]
 2290        CMP     point,top
 2300        CMPLT   base,point
 2310        STRLTB  temp,[point]
 2320        LDMIA   add,{x,y,h,v}
 2330        CMP     x,#65536
 2340        CMPGT   y,#131072
 2350        BLE     skip1
 2360        CMP     x,#(316<<16)
 2370        CMPLT   y,#16646144
 2380        BGE     skip1
 2390        MOV     temp,y,LSR#16
 2400        ADD     point,base,temp,LSL#8
 2410        ADD     point,point,temp,LSL#6
 2420        ADD     point,point,x,LSR#16
 2430        MOV     temp,#0
 2440        STRB    temp,[point],#640
 2450        STRB    temp,[point],#-321
 2460        STRB    temp,[point],#2
 2470        STRB    temp,[point]
 2480.skip1  SUB     x,x,h
 2490        SUB     v,v,#1024
 2500        SUB     y,y,v
 2510        CMP     h,#0
 2520        ADDLT   h,h,#64
 2530        SUBGT   h,h,#64
 2540        MOV     point,#0
 2550        TEQ     key,#1
 2560        BLEQ    reset
 2570        CMP     x,#65536
 2580        CMPGT   y,#131072
 2590        BLE     skip2
 2600        CMP     x,#(316<<16)
 2610        CMPLT   y,#16646144
 2620        BGE     skip2
 2630        MOV     temp,y,LSR#16
 2640        ADD     point,base,temp,LSL#8
 2650        ADD     point,point,temp,LSL#6
 2660        ADD     point,point,x,LSR#16
 2670        LDRB    temp,colno1
 2680        STRB    temp,[point],#640
 2690        STRB    temp,[point],#-321
 2700        STRB    temp,[point],#2
 2710        STRB    temp,[point]
 2720.skip2  STMIA   add,{x,y,h,v}
 2730        SUB     temp,point,#1
 2740        SUB     add,add,#36
 2750        ADD     x,add,track,LSL#2
 2760        STR     temp,[x]
 2770        LDRB    temp,colno2
 2780        FNplottracks
 2790        ADD     add,add,#52
 2800        CMP     count,#amount%
 2810        BLE     loop2
 2820        ADD     track,track,#1
 2830        CMP     track,#tracks%
 2840        MOVGT   track,#1
 2850        B       loop
 2860.end    LDR     pc,return
 2870.return EQUD 0
 2880
 2890.reset  LDR     temp,which
 2900        CMP     count,temp
 2910        MOVLT   pc,link
 2920        ADD     temp,temp,#(amount%/3)
 2930        CMP     count,temp
 2940        MOVGT   pc,link
 2950        LDR     x,xstart
 2960        LDR     y,ystart
 2970        LDR     temp,rndcnt
 2980        ADR     h,rndadd
 2990        CMP     temp,h
 3000        LDRGE   temp,rndadd
 3010        LDR     h,[temp],#4
 3020        LDR     v,[temp],#4
 3030        STR     temp,rndcnt
 3040        STMIA   add,{x,y,h,v}
 3050        MOV     pc,link
 3060.set    SUB     key,key,#100
 3070        LDR     x,xstart
 3080        LDR     y,ystart
 3090        ADD     x,x,y,LSR#1
 3100        ADD     x,x,#16<<16
 3110        CMP     x,#320<<16
 3120        SUBGE   x,x,#300<<16
 3130        STR     x,xstart
 3140        ADD     y,y,x
 3150        SUB     y,y,#64<<16
 3160        CMP     y,#256<<16
 3170        SUBGE   y,y,#250<<16
 3180        CMP     y,#1<<16
 3190        ADDLE   y,y,#250<<16
 3200        STR     y,ystart
 3210        LDR     temp,which
 3220        ADD     temp,temp,#(amount%/3)
 3230        CMP     temp,#amount%
 3240        MOVGT   temp,#1
 3250        STR     temp,which
 3260        LDRB    temp,coladd
 3270        ADD     temp,temp,#2
 3280        CMP     temp,#6
 3290        MOVGE   temp,#0
 3300        STRB    temp,coladd
 3310        ADR     x,colour
 3320        ADD     temp,x,temp
 3330        LDRB    x,[temp]
 3340        ADD     x,x,#3
 3350        CMP     x,#255
 3360        SUBGE   x,x,#253
 3370        STRB    x,[temp]
 3380        LDRB    y,[temp,#1]!
 3390        SUB     y,y,#5
 3400        CMP     y,#1
 3410        ADDGE   y,y,#256
 3420        STRB    y,[temp]
 3430        MOV     pc,link
 3440
 3450.chng2  LDRB    x,colour+2
 3460        STRB    x,colno1
 3470        LDRB    x,colour+3
 3480        STRB    x,colno2
 3490        MOV     pc,link
 3500
 3510.chng4  LDRB    x,colour+4
 3520        STRB    x,colno1
 3530        LDRB    x,colour+5
 3540        STRB    x,colno2
 3550        MOV     pc,link
 3560
 3570.chng1  LDRB    x,colour
 3580        STRB    x,colno1
 3590        LDRB    x,colour+1
 3600        STRB    x,colno2
 3610        MOV     pc,link
 3620.data
 3630]
 3640NEXTpass%
 3650SYS "OS_ReadVduVariables",vdu,vdu
 3660PROCpoints
 3670ENDPROC
 3680
 3690DEF PROCpoints
 3700x%=RND(1280)<<14
 3710y%=(256<<16)-(RND(1024)<<14)
 3720n%=0
 3730c=4*tracks%
 3740FOR n=data+c TO data+amount%*(16+c)+c STEP 16+c
 3750 n%+=1
 3760 IF n% MOD (amount%/5)=0 x%=RND(1280)<<14:y%=(256<<16)-(RND(1024)<<14)
 3770 a=RAD(RND(360000)/1000)
 3780 d=1-1/(1+RND(10000)/1000)
 3790 !n=x%
 3800 n!4=y%
 3810 n!8=speed%*COS(a)*d
 3820 n!12=speed%*SIN(a)*d
 3830 FOR l%=n+16 TO n+16+c STEP 4
 3840  !l%=0
 3850 NEXT
 3860NEXT
 3870ENDPROC
 3880:
 3890DEF FNplottracks
 3900FOR n=1 TO tracks%
 3910[OPT pass%
 3920        LDR     point,[add,#4]!
 3930        CMP     point,top
 3940        CMPLT   base,point
 3950        STRLTB  temp,[point]
 3960]
 3970NEXT
 3980=0
 3990:
 4000DEF FNrndplace
 4010FOR n=1 TO 700
 4020a=RAD(RND(360000)/1000)
 4030d=1-1/(1+RND(10000)/1000)
 4040[OPT pass%
 4050        EQUD speed%*COSa*d
 4060        EQUD speed%*SINa*d
 4070]
 4080NEXT
 4090=0
 4100:
 4110DEFPROCdoit
 4120MODE13
 4130OFF
 4140CALLstart
 4150MODE12:MOUSE ON:OSCLI"<ScrSave$Dir>.!Palette"
 4160SYS "Wimp_ForceRedraw",-1,0,0,1280,1024
 4170time=TIME
 4180ENDPROC

� !ScrSave
� � Dominic Ford, 1999
:
([� � !txt%=0:$(txt%+4)=�$+" at line "+Þ+�0:ș "Wimp_ReportError",txt%,0,"ScreenSaver":�
2R� q% 256,q2% 256,r% 256,menusp% &1000,iconsp% 256,infosp% &400,txt% 256,e% 256
<:
F�setmeup
P:
Z0ș "Wimp_Initialise",200,&4B534154,"ScrSave"
d	�icon
n
�menus
xtime=�:ȗ ox,oy,c
� �
�  ș "Wimp_Poll",0,q% � a%
�-  ȗx,y,c:� ox<>x � oy<>y � c<>0 � time=�
�  ȗ ox,oy,c
�,  ș"OS_Byte",121,0 � ,c:� c<>255�time=�
�  �(�-time)>500 � �doit
�
  Ȏ a% �
�
   � 6
�    Ȏ q%!12 �
�
     � -2
�-      � q%!16=icon% � q%!8=2 � �open_menu
�	    �
�
   � 8
#     ș "Wimp_ProcessKey",q%!24

   � 9
    �handlemenu
"   � 17,18
,    Ȏ q%!16 �
6     � 0
@      �
J	    �
T  �
^ � �
h:
r��error(e$)
|	!e%=0
�$(e%+4)=e$+�0
�(ș "Wimp_ReportError",e%,0,"ScrSave"
��
�:
�ݤconfirm(m$)
�� r%
�	!e%=0
�$(e%+4)=m$+�0
�0ș "Wimp_ReportError",e%,&13,"ScrSave" � ,r%
�=r%
�:
���fault(err%,err$)
�!e%=err%
$(e%+4)=err$+�0
)�err%=220 � $(e%+4)="Bad filename"+�0
(ș "Wimp_ReportError",e%,0,"ScrSave"
&�
0:
:��menus
D
 �infobox
N �mainmenu
X�
b:
l��mainmenu
v  p%=menusp%+512:mainmenu%=p%
�, $p%="ScrSave"+�0:p%!12=&70207:p%!16=200
� p%!20=40:p%!24=0:f%=p%+28
�> !f%=0:f%!4=info%:f%!8=&07000011:$(f%+12)="Info"+�0:f%+=24
�= !f%=&80:f%!4=-1:f%!8=&07003011:$(f%+12)="Quit"+�0:f%+=24
��
�:
���handlemenu
� � a%,l%
�
 Ȏ !q% �
�
   � 1
�   �
� �
�! ș "Wimp_GetPointerInfo",,q%
" � ((q%!8) � 1)=1 � �open_menu
�
:
 
��infobox
*� s%,i%
4s%=infosp%
>s%!28=&84000012
Hs%!32=&1070207
Rs%!36=&20103
\s%!40=20:s%!44=0
fs%!48=636:s%!52=216
ps%!56=&00000119
zs%!60=&00000000
�s%!64=1
�
s%!68=616
�
s%!70=216
�s%!72=s%+528
�s%!76=s%+390
�s%!80=32
�s%!84=8
�i%=s%+88
�!i%=32:i%!4=8
�i%!8=184:i%!12=56
�i%!16=&07000211
�$(i%+20)="Version:"+�0
�
i%+=32
!i%=188:i%!4=8
i%!8=632:i%!12=56
i%!16=&0700013D
$i%!20=s%+400
.i%!24=s%+390
8i%!28=30
B
i%+=32
L!i%=32:i%!4=60
Vi%!8=184:i%!12=108
`i%!16=&07000211
j$(i%+20)="Author:"+�0
t
i%+=32
~!i%=188:i%!4=60
�i%!8=632:i%!12=108
�i%!16=&0700013D
�i%!20=s%+432
�i%!24=s%+390
�i%!28=30
�
i%+=32
�!i%=32:i%!4=112
�i%!8=184:i%!12=160
�i%!16=&07000211
�$(i%+20)="Purpose:"+�0
�
i%+=32
�!i%=188:i%!4=112
i%!8=632:i%!12=160

i%!16=&0700013D
i%!20=s%+464
i%!24=s%+390
(i%!28=30
2
i%+=32
<!i%=32:i%!4=164
Fi%!8=184:i%!12=212
Pi%!16=&07000211
Z$(i%+20)="Name:"+�0
d
i%+=32
n!i%=188:i%!4=164
xi%!8=632:i%!12=212
�i%!16=&0700013D
�i%!20=s%+496
�i%!24=s%+390
�i%!28=30
�s%!390=0
�#$(s%+400)="1.00 (20-Dec-99)"+�0
�'$(s%+432)="� Dominic Ford, 1999"+�0
�$(s%+464)="Screen Saver"+�0
�$(s%+496)="ScrSave"+�0
�%$(s%+528)="About this program"+�0
�&ș "Wimp_CreateWindow",,s% � info%
��
�:
��open_menu
1 ș "Wimp_CreateMenu",,mainmenu%,(!q%)-64,160
�
":
,
��icon
6sp%=iconsp%
@!sp%=-1
Jsp%!4=0
Tsp%!8=0
^sp%!12=&64:sp%!16=&44
hsp%!20=&1700300A
r$(sp%+24)="!scrsave"+�0
|%ș "Wimp_CreateIcon",,sp% � icon%
��
�:
�� ACTUAL CODE!
�:
�
��setmeup
�speed%=2<<16
�
tracks%=8
�� code% 50000
�link=14:pc=15
�x=5:y=6:h=7:v=8
�"track=9:base=10:temp=11:add=12
�count=1:point=2:key=3:top=4
�amount%=900
� pass%=0 � 2 � 2
P%=code%

[OPTpass%
&.random �rndplace
0.rndadd EQUD random
:.rndcnt EQUD random
D.xstart EQUD �(320)<<16
N.ystart EQUD �(256)<<16
X.which  EQUD 1
b.colour EQUB �(255)
l        EQUB �(255)
v        EQUB �(255)
�        EQUB �(255)
�        EQUB �(255)
�        EQUB �(255)
�.colno1 EQUB �(255)
�.colno2 EQUB �(255)
�.coladd EQUB 0
�        ALIGN
�.vdu    EQUD 148
�        EQUD -1
�        ALIGN
�
�.start  STR     link,return
�        LDR     base,vdu
#        ADD     top,base,#81920
         SUB     top,top,#640
        MOV     track,#1
         MOV     key,#1
*.loop   MOV     R0,#121
4        MOV     R1,#0
>        SWI     "OS_Byte"
H        CMP     R1,#255
R        BNE     end
\        MOV     count,#0
f        ADD     key,key,#1
p        CMP     key,#100
z        BLGT    set
�        ADR     add,data+32
�".loop2  ADD     count,count,#1
�&        TEQ     count,#(amount%/3)
�        BLEQ    chng2
�(        TEQ     count,#(amount%/3*2)
�        BLEQ    chng4
�        TEQ     count,#1
�        BLEQ    chng1
�        MOV     temp,#0
�%        ADD     x,add,track,LSL#2
�"        LDR     point,[x,#-36]
�        CMP     point,top
�        CMPLT   base,point
	         STRLTB  temp,[point]
	!        LDMIA   add,{x,y,h,v}
	        CMP     x,#65536
	$        CMPGT   y,#131072
	.        BLE     skip1
	8         CMP     x,#(316<<16)
	B        CMPLT   y,#16646144
	L        BGE     skip1
	V!        MOV     temp,y,LSR#16
	`)        ADD     point,base,temp,LSL#8
	j*        ADD     point,point,temp,LSL#6
	t(        ADD     point,point,x,LSR#16
	~        MOV     temp,#0
	�%        STRB    temp,[point],#640
	�&        STRB    temp,[point],#-321
	�#        STRB    temp,[point],#2
	�         STRB    temp,[point]
	�.skip1  SUB     x,x,h
	�        SUB     v,v,#1024
	�        SUB     y,y,v
	�        CMP     h,#0
	�        ADDLT   h,h,#64
	�        SUBGT   h,h,#64
	�        MOV     point,#0
	�        TEQ     key,#1
        BLEQ    reset

        CMP     x,#65536
        CMPGT   y,#131072
        BLE     skip2
(         CMP     x,#(316<<16)
2        CMPLT   y,#16646144
<        BGE     skip2
F!        MOV     temp,y,LSR#16
P)        ADD     point,base,temp,LSL#8
Z*        ADD     point,point,temp,LSL#6
d(        ADD     point,point,x,LSR#16
n        LDRB    temp,colno1
x%        STRB    temp,[point],#640
�&        STRB    temp,[point],#-321
�#        STRB    temp,[point],#2
�         STRB    temp,[point]
�!.skip2  STMIA   add,{x,y,h,v}
�!        SUB     temp,point,#1
�        SUB     add,add,#36
�%        ADD     x,add,track,LSL#2
�        STR     temp,[x]
�        LDRB    temp,colno2
�        �plottracks
�        ADD     add,add,#52
�"        CMP     count,#amount%
�        BLE     loop2
"        ADD     track,track,#1
"        CMP     track,#tracks%
        MOVGT   track,#1
"        B       loop
,.end    LDR     pc,return
6.return EQUD 0
@
J.reset  LDR     temp,which
T        CMP     count,temp
^        MOVLT   pc,link
h*        ADD     temp,temp,#(amount%/3)
r        CMP     count,temp
|        MOVGT   pc,link
�        LDR     x,xstart
�        LDR     y,ystart
�        LDR     temp,rndcnt
�        ADR     h,rndadd
�        CMP     temp,h
�        LDRGE   temp,rndadd
�        LDR     h,[temp],#4
�        LDR     v,[temp],#4
�        STR     temp,rndcnt
�!        STMIA   add,{x,y,h,v}
�        MOV     pc,link
� .set    SUB     key,key,#100
�        LDR     x,xstart
        LDR     y,ystart
        ADD     x,x,y,LSR#1
        ADD     x,x,#16<<16
&        CMP     x,#320<<16
0         SUBGE   x,x,#300<<16
:        STR     x,xstart
D        ADD     y,y,x
N        SUB     y,y,#64<<16
X        CMP     y,#256<<16
b         SUBGE   y,y,#250<<16
l        CMP     y,#1<<16
v         ADDLE   y,y,#250<<16
�        STR     y,ystart
�        LDR     temp,which
�*        ADD     temp,temp,#(amount%/3)
�!        CMP     temp,#amount%
�        MOVGT   temp,#1
�        STR     temp,which
�        LDRB    temp,coladd
�         ADD     temp,temp,#2
�        CMP     temp,#6
�        MOVGE   temp,#0
�        STRB    temp,coladd
�        ADR     x,colour
�        ADD     temp,x,temp

        LDRB    x,[temp]

        ADD     x,x,#3

        CMP     x,#255

         SUBGE   x,x,#253

*        STRB    x,[temp]

4         LDRB    y,[temp,#1]!

>        SUB     y,y,#5

H        CMP     y,#1

R        ADDGE   y,y,#256

\        STRB    y,[temp]

f        MOV     pc,link

p

z.chng2  LDRB    x,colour+2

�        STRB    x,colno1

�        LDRB    x,colour+3

�        STRB    x,colno2

�        MOV     pc,link

�

�.chng4  LDRB    x,colour+4

�        STRB    x,colno1

�        LDRB    x,colour+5

�        STRB    x,colno2

�        MOV     pc,link

�

�.chng1  LDRB    x,colour

�        STRB    x,colno1
        LDRB    x,colour+1
        STRB    x,colno2
        MOV     pc,link
$	.data
.]
8
�pass%
B$ș "OS_ReadVduVariables",vdu,vdu
L�points
V�
`
j
� �points
tx%=�(1280)<<14
~y%=(256<<16)-(�(1024)<<14)
�n%=0
�c=4*tracks%
�-� n=data+c � data+amount%*(16+c)+c � 16+c
�
 n%+=1
�C � n% � (amount%/5)=0 x%=�(1280)<<14:y%=(256<<16)-(�(1024)<<14)
� a=�(�(360000)/1000)
� d=1-1/(1+�(10000)/1000)
�
 !n=x%
� n!4=y%
� n!8=speed%*�(a)*d
� n!12=speed%*�(a)*d
� � l%=n+16 � n+16+c � 4
  !l%=0

 �
�
�
(:
2� �plottracks
<� n=1 � tracks%
F[OPT pass%
P#        LDR     point,[add,#4]!
Z        CMP     point,top
d        CMPLT   base,point
n         STRLTB  temp,[point]
x]
��
�=0
�:
�� �rndplace
�� n=1 � 700
�a=�(�(360000)/1000)
�d=1-1/(1+�(10000)/1000)
�[OPT pass%
�        EQUD speed%*�a*d
�        EQUD speed%*�a*d
�]
��
�=0
:

��doit
�13
"�
,
�start
6&�12:ȗ �:�"<ScrSave$Dir>.!Palette"
@*ș "Wimp_ForceRedraw",-1,0,0,1280,1024
J
time=�
T�
�
00000000  0d 00 0a 0e f4 20 21 53  63 72 53 61 76 65 0d 00  |..... !ScrSave..|
00000010  14 1a f4 20 a9 20 44 6f  6d 69 6e 69 63 20 46 6f  |... . Dominic Fo|
00000020  72 64 2c 20 31 39 39 39  0d 00 1e 05 3a 0d 00 28  |rd, 1999....:..(|
00000030  5b ee 20 85 20 21 74 78  74 25 3d 30 3a 24 28 74  |[. . !txt%=0:$(t|
00000040  78 74 25 2b 34 29 3d f6  24 2b 22 20 61 74 20 6c  |xt%+4)=.$+" at l|
00000050  69 6e 65 20 22 2b c3 9e  2b bd 30 3a c8 99 20 22  |ine "+..+.0:.. "|
00000060  57 69 6d 70 5f 52 65 70  6f 72 74 45 72 72 6f 72  |Wimp_ReportError|
00000070  22 2c 74 78 74 25 2c 30  2c 22 53 63 72 65 65 6e  |",txt%,0,"Screen|
00000080  53 61 76 65 72 22 3a e0  0d 00 32 52 de 20 71 25  |Saver":...2R. q%|
00000090  20 32 35 36 2c 71 32 25  20 32 35 36 2c 72 25 20  | 256,q2% 256,r% |
000000a0  32 35 36 2c 6d 65 6e 75  73 70 25 20 26 31 30 30  |256,menusp% &100|
000000b0  30 2c 69 63 6f 6e 73 70  25 20 32 35 36 2c 69 6e  |0,iconsp% 256,in|
000000c0  66 6f 73 70 25 20 26 34  30 30 2c 74 78 74 25 20  |fosp% &400,txt% |
000000d0  32 35 36 2c 65 25 20 32  35 36 0d 00 3c 05 3a 0d  |256,e% 256..<.:.|
000000e0  00 46 0c f2 73 65 74 6d  65 75 70 0d 00 50 05 3a  |.F..setmeup..P.:|
000000f0  0d 00 5a 30 c8 99 20 22  57 69 6d 70 5f 49 6e 69  |..Z0.. "Wimp_Ini|
00000100  74 69 61 6c 69 73 65 22  2c 32 30 30 2c 26 34 42  |tialise",200,&4B|
00000110  35 33 34 31 35 34 2c 22  53 63 72 53 61 76 65 22  |534154,"ScrSave"|
00000120  0d 00 64 09 f2 69 63 6f  6e 0d 00 6e 0a f2 6d 65  |..d..icon..n..me|
00000130  6e 75 73 0d 00 78 15 74  69 6d 65 3d 91 3a c8 97  |nus..x.time=.:..|
00000140  20 6f 78 2c 6f 79 2c 63  0d 00 82 06 20 f5 0d 00  | ox,oy,c.... ...|
00000150  8c 1e 20 20 c8 99 20 22  57 69 6d 70 5f 50 6f 6c  |..  .. "Wimp_Pol|
00000160  6c 22 2c 30 2c 71 25 20  b8 20 61 25 0d 00 96 2d  |l",0,q% . a%...-|
00000170  20 20 c8 97 78 2c 79 2c  63 3a e7 20 6f 78 3c 3e  |  ..x,y,c:. ox<>|
00000180  78 20 84 20 6f 79 3c 3e  79 20 84 20 63 3c 3e 30  |x . oy<>y . c<>0|
00000190  20 8c 20 74 69 6d 65 3d  91 0d 00 a0 10 20 20 c8  | . time=.....  .|
000001a0  97 20 6f 78 2c 6f 79 2c  63 0d 00 aa 2c 20 20 c8  |. ox,oy,c...,  .|
000001b0  99 22 4f 53 5f 42 79 74  65 22 2c 31 32 31 2c 30  |."OS_Byte",121,0|
000001c0  20 b8 20 2c 63 3a e7 20  63 3c 3e 32 35 35 8c 74  | . ,c:. c<>255.t|
000001d0  69 6d 65 3d 91 0d 00 b4  1b 20 20 e7 28 91 2d 74  |ime=.....  .(.-t|
000001e0  69 6d 65 29 3e 35 30 30  20 8c 20 f2 64 6f 69 74  |ime)>500 . .doit|
000001f0  0d 00 be 0d 20 20 c8 8e  20 61 25 20 ca 0d 00 c8  |....  .. a% ....|
00000200  0a 20 20 20 c9 20 36 0d  00 d2 12 20 20 20 20 c8  |.   . 6....    .|
00000210  8e 20 71 25 21 31 32 20  ca 0d 00 dc 0d 20 20 20  |. q%!12 .....   |
00000220  20 20 c9 20 2d 32 0d 00  e6 2d 20 20 20 20 20 20  |  . -2...-      |
00000230  e7 20 71 25 21 31 36 3d  69 63 6f 6e 25 20 80 20  |. q%!16=icon% . |
00000240  71 25 21 38 3d 32 20 8c  20 f2 6f 70 65 6e 5f 6d  |q%!8=2 . .open_m|
00000250  65 6e 75 0d 00 f0 09 20  20 20 20 cb 0d 00 fa 0a  |enu....    .....|
00000260  20 20 20 c9 20 38 0d 01  04 23 20 20 20 20 20 c8  |   . 8...#     .|
00000270  99 20 22 57 69 6d 70 5f  50 72 6f 63 65 73 73 4b  |. "Wimp_ProcessK|
00000280  65 79 22 2c 71 25 21 32  34 0d 01 0e 0a 20 20 20  |ey",q%!24....   |
00000290  c9 20 39 0d 01 18 13 20  20 20 20 f2 68 61 6e 64  |. 9....    .hand|
000002a0  6c 65 6d 65 6e 75 0d 01  22 0e 20 20 20 c9 20 31  |lemenu..".   . 1|
000002b0  37 2c 31 38 0d 01 2c 12  20 20 20 20 c8 8e 20 71  |7,18..,.    .. q|
000002c0  25 21 31 36 20 ca 0d 01  36 0c 20 20 20 20 20 c9  |%!16 ...6.     .|
000002d0  20 30 0d 01 40 0b 20 20  20 20 20 20 e0 0d 01 4a  | 0..@.      ...J|
000002e0  09 20 20 20 20 cb 0d 01  54 07 20 20 cb 0d 01 5e  |.    ...T.  ...^|
000002f0  08 20 fd 20 a3 0d 01 68  05 3a 0d 01 72 0f dd f2  |. . ...h.:..r...|
00000300  65 72 72 6f 72 28 65 24  29 0d 01 7c 09 21 65 25  |error(e$)..|.!e%|
00000310  3d 30 0d 01 86 11 24 28  65 25 2b 34 29 3d 65 24  |=0....$(e%+4)=e$|
00000320  2b bd 30 0d 01 90 28 c8  99 20 22 57 69 6d 70 5f  |+.0...(.. "Wimp_|
00000330  52 65 70 6f 72 74 45 72  72 6f 72 22 2c 65 25 2c  |ReportError",e%,|
00000340  30 2c 22 53 63 72 53 61  76 65 22 0d 01 9a 05 e1  |0,"ScrSave".....|
00000350  0d 01 a4 05 3a 0d 01 ae  11 dd a4 63 6f 6e 66 69  |....:......confi|
00000360  72 6d 28 6d 24 29 0d 01  b8 08 ea 20 72 25 0d 01  |rm(m$)..... r%..|
00000370  c2 09 21 65 25 3d 30 0d  01 cc 11 24 28 65 25 2b  |..!e%=0....$(e%+|
00000380  34 29 3d 6d 24 2b bd 30  0d 01 d6 30 c8 99 20 22  |4)=m$+.0...0.. "|
00000390  57 69 6d 70 5f 52 65 70  6f 72 74 45 72 72 6f 72  |Wimp_ReportError|
000003a0  22 2c 65 25 2c 26 31 33  2c 22 53 63 72 53 61 76  |",e%,&13,"ScrSav|
000003b0  65 22 20 b8 20 2c 72 25  0d 01 e0 07 3d 72 25 0d  |e" . ,r%....=r%.|
000003c0  01 ea 05 3a 0d 01 f4 16  dd f2 66 61 75 6c 74 28  |...:......fault(|
000003d0  65 72 72 25 2c 65 72 72  24 29 0d 01 fe 0c 21 65  |err%,err$)....!e|
000003e0  25 3d 65 72 72 25 0d 02  08 13 24 28 65 25 2b 34  |%=err%....$(e%+4|
000003f0  29 3d 65 72 72 24 2b bd  30 0d 02 12 29 e7 65 72  |)=err$+.0...).er|
00000400  72 25 3d 32 32 30 20 8c  20 24 28 65 25 2b 34 29  |r%=220 . $(e%+4)|
00000410  3d 22 42 61 64 20 66 69  6c 65 6e 61 6d 65 22 2b  |="Bad filename"+|
00000420  bd 30 0d 02 1c 28 c8 99  20 22 57 69 6d 70 5f 52  |.0...(.. "Wimp_R|
00000430  65 70 6f 72 74 45 72 72  6f 72 22 2c 65 25 2c 30  |eportError",e%,0|
00000440  2c 22 53 63 72 53 61 76  65 22 0d 02 26 05 e1 0d  |,"ScrSave"..&...|
00000450  02 30 05 3a 0d 02 3a 0b  dd f2 6d 65 6e 75 73 0d  |.0.:..:...menus.|
00000460  02 44 0d 20 f2 69 6e 66  6f 62 6f 78 0d 02 4e 0e  |.D. .infobox..N.|
00000470  20 f2 6d 61 69 6e 6d 65  6e 75 0d 02 58 05 e1 0d  | .mainmenu..X...|
00000480  02 62 05 3a 0d 02 6c 0e  dd f2 6d 61 69 6e 6d 65  |.b.:..l...mainme|
00000490  6e 75 0d 02 76 20 20 70  25 3d 6d 65 6e 75 73 70  |nu..v  p%=menusp|
000004a0  25 2b 35 31 32 3a 6d 61  69 6e 6d 65 6e 75 25 3d  |%+512:mainmenu%=|
000004b0  70 25 0d 02 80 2c 20 24  70 25 3d 22 53 63 72 53  |p%..., $p%="ScrS|
000004c0  61 76 65 22 2b bd 30 3a  70 25 21 31 32 3d 26 37  |ave"+.0:p%!12=&7|
000004d0  30 32 30 37 3a 70 25 21  31 36 3d 32 30 30 0d 02  |0207:p%!16=200..|
000004e0  8a 1e 20 70 25 21 32 30  3d 34 30 3a 70 25 21 32  |.. p%!20=40:p%!2|
000004f0  34 3d 30 3a 66 25 3d 70  25 2b 32 38 0d 02 94 3e  |4=0:f%=p%+28...>|
00000500  20 21 66 25 3d 30 3a 66  25 21 34 3d 69 6e 66 6f  | !f%=0:f%!4=info|
00000510  25 3a 66 25 21 38 3d 26  30 37 30 30 30 30 31 31  |%:f%!8=&07000011|
00000520  3a 24 28 66 25 2b 31 32  29 3d 22 49 6e 66 6f 22  |:$(f%+12)="Info"|
00000530  2b bd 30 3a 66 25 2b 3d  32 34 0d 02 9e 3d 20 21  |+.0:f%+=24...= !|
00000540  66 25 3d 26 38 30 3a 66  25 21 34 3d 2d 31 3a 66  |f%=&80:f%!4=-1:f|
00000550  25 21 38 3d 26 30 37 30  30 33 30 31 31 3a 24 28  |%!8=&07003011:$(|
00000560  66 25 2b 31 32 29 3d 22  51 75 69 74 22 2b bd 30  |f%+12)="Quit"+.0|
00000570  3a 66 25 2b 3d 32 34 0d  02 a8 05 e1 0d 02 b2 05  |:f%+=24.........|
00000580  3a 0d 02 bc 10 dd f2 68  61 6e 64 6c 65 6d 65 6e  |:......handlemen|
00000590  75 0d 02 c6 0c 20 ea 20  61 25 2c 6c 25 0d 02 d0  |u.... . a%,l%...|
000005a0  0d 20 c8 8e 20 21 71 25  20 ca 0d 02 da 0a 20 20  |. .. !q% .....  |
000005b0  20 c9 20 31 0d 02 e4 08  20 20 20 e0 0d 02 ee 06  | . 1....   .....|
000005c0  20 cb 0d 02 f8 21 20 c8  99 20 22 57 69 6d 70 5f  | ....! .. "Wimp_|
000005d0  47 65 74 50 6f 69 6e 74  65 72 49 6e 66 6f 22 2c  |GetPointerInfo",|
000005e0  2c 71 25 0d 03 02 22 20  e7 20 28 28 71 25 21 38  |,q%..." . ((q%!8|
000005f0  29 20 80 20 31 29 3d 31  20 8c 20 f2 6f 70 65 6e  |) . 1)=1 . .open|
00000600  5f 6d 65 6e 75 0d 03 0c  05 e1 0d 03 16 05 3a 0d  |_menu.........:.|
00000610  03 20 0d dd f2 69 6e 66  6f 62 6f 78 0d 03 2a 0b  |. ...infobox..*.|
00000620  ea 20 73 25 2c 69 25 0d  03 34 0e 73 25 3d 69 6e  |. s%,i%..4.s%=in|
00000630  66 6f 73 70 25 0d 03 3e  13 73 25 21 32 38 3d 26  |fosp%..>.s%!28=&|
00000640  38 34 30 30 30 30 31 32  0d 03 48 12 73 25 21 33  |84000012..H.s%!3|
00000650  32 3d 26 31 30 37 30 32  30 37 0d 03 52 10 73 25  |2=&1070207..R.s%|
00000660  21 33 36 3d 26 32 30 31  30 33 0d 03 5c 14 73 25  |!36=&20103..\.s%|
00000670  21 34 30 3d 32 30 3a 73  25 21 34 34 3d 30 0d 03  |!40=20:s%!44=0..|
00000680  66 17 73 25 21 34 38 3d  36 33 36 3a 73 25 21 35  |f.s%!48=636:s%!5|
00000690  32 3d 32 31 36 0d 03 70  13 73 25 21 35 36 3d 26  |2=216..p.s%!56=&|
000006a0  30 30 30 30 30 31 31 39  0d 03 7a 13 73 25 21 36  |00000119..z.s%!6|
000006b0  30 3d 26 30 30 30 30 30  30 30 30 0d 03 84 0b 73  |0=&00000000....s|
000006c0  25 21 36 34 3d 31 0d 03  8e 0d 73 25 21 36 38 3d  |%!64=1....s%!68=|
000006d0  36 31 36 0d 03 98 0d 73  25 21 37 30 3d 32 31 36  |616....s%!70=216|
000006e0  0d 03 a2 10 73 25 21 37  32 3d 73 25 2b 35 32 38  |....s%!72=s%+528|
000006f0  0d 03 ac 10 73 25 21 37  36 3d 73 25 2b 33 39 30  |....s%!76=s%+390|
00000700  0d 03 b6 0c 73 25 21 38  30 3d 33 32 0d 03 c0 0b  |....s%!80=32....|
00000710  73 25 21 38 34 3d 38 0d  03 ca 0c 69 25 3d 73 25  |s%!84=8....i%=s%|
00000720  2b 38 38 0d 03 d4 11 21  69 25 3d 33 32 3a 69 25  |+88....!i%=32:i%|
00000730  21 34 3d 38 0d 03 de 15  69 25 21 38 3d 31 38 34  |!4=8....i%!8=184|
00000740  3a 69 25 21 31 32 3d 35  36 0d 03 e8 13 69 25 21  |:i%!12=56....i%!|
00000750  31 36 3d 26 30 37 30 30  30 32 31 31 0d 03 f2 1a  |16=&07000211....|
00000760  24 28 69 25 2b 32 30 29  3d 22 56 65 72 73 69 6f  |$(i%+20)="Versio|
00000770  6e 3a 22 2b bd 30 0d 03  fc 0a 69 25 2b 3d 33 32  |n:"+.0....i%+=32|
00000780  0d 04 06 12 21 69 25 3d  31 38 38 3a 69 25 21 34  |....!i%=188:i%!4|
00000790  3d 38 0d 04 10 15 69 25  21 38 3d 36 33 32 3a 69  |=8....i%!8=632:i|
000007a0  25 21 31 32 3d 35 36 0d  04 1a 13 69 25 21 31 36  |%!12=56....i%!16|
000007b0  3d 26 30 37 30 30 30 31  33 44 0d 04 24 10 69 25  |=&0700013D..$.i%|
000007c0  21 32 30 3d 73 25 2b 34  30 30 0d 04 2e 10 69 25  |!20=s%+400....i%|
000007d0  21 32 34 3d 73 25 2b 33  39 30 0d 04 38 0c 69 25  |!24=s%+390..8.i%|
000007e0  21 32 38 3d 33 30 0d 04  42 0a 69 25 2b 3d 33 32  |!28=30..B.i%+=32|
000007f0  0d 04 4c 12 21 69 25 3d  33 32 3a 69 25 21 34 3d  |..L.!i%=32:i%!4=|
00000800  36 30 0d 04 56 16 69 25  21 38 3d 31 38 34 3a 69  |60..V.i%!8=184:i|
00000810  25 21 31 32 3d 31 30 38  0d 04 60 13 69 25 21 31  |%!12=108..`.i%!1|
00000820  36 3d 26 30 37 30 30 30  32 31 31 0d 04 6a 19 24  |6=&07000211..j.$|
00000830  28 69 25 2b 32 30 29 3d  22 41 75 74 68 6f 72 3a  |(i%+20)="Author:|
00000840  22 2b bd 30 0d 04 74 0a  69 25 2b 3d 33 32 0d 04  |"+.0..t.i%+=32..|
00000850  7e 13 21 69 25 3d 31 38  38 3a 69 25 21 34 3d 36  |~.!i%=188:i%!4=6|
00000860  30 0d 04 88 16 69 25 21  38 3d 36 33 32 3a 69 25  |0....i%!8=632:i%|
00000870  21 31 32 3d 31 30 38 0d  04 92 13 69 25 21 31 36  |!12=108....i%!16|
00000880  3d 26 30 37 30 30 30 31  33 44 0d 04 9c 10 69 25  |=&0700013D....i%|
00000890  21 32 30 3d 73 25 2b 34  33 32 0d 04 a6 10 69 25  |!20=s%+432....i%|
000008a0  21 32 34 3d 73 25 2b 33  39 30 0d 04 b0 0c 69 25  |!24=s%+390....i%|
000008b0  21 32 38 3d 33 30 0d 04  ba 0a 69 25 2b 3d 33 32  |!28=30....i%+=32|
000008c0  0d 04 c4 13 21 69 25 3d  33 32 3a 69 25 21 34 3d  |....!i%=32:i%!4=|
000008d0  31 31 32 0d 04 ce 16 69  25 21 38 3d 31 38 34 3a  |112....i%!8=184:|
000008e0  69 25 21 31 32 3d 31 36  30 0d 04 d8 13 69 25 21  |i%!12=160....i%!|
000008f0  31 36 3d 26 30 37 30 30  30 32 31 31 0d 04 e2 1a  |16=&07000211....|
00000900  24 28 69 25 2b 32 30 29  3d 22 50 75 72 70 6f 73  |$(i%+20)="Purpos|
00000910  65 3a 22 2b bd 30 0d 04  ec 0a 69 25 2b 3d 33 32  |e:"+.0....i%+=32|
00000920  0d 04 f6 14 21 69 25 3d  31 38 38 3a 69 25 21 34  |....!i%=188:i%!4|
00000930  3d 31 31 32 0d 05 00 16  69 25 21 38 3d 36 33 32  |=112....i%!8=632|
00000940  3a 69 25 21 31 32 3d 31  36 30 0d 05 0a 13 69 25  |:i%!12=160....i%|
00000950  21 31 36 3d 26 30 37 30  30 30 31 33 44 0d 05 14  |!16=&0700013D...|
00000960  10 69 25 21 32 30 3d 73  25 2b 34 36 34 0d 05 1e  |.i%!20=s%+464...|
00000970  10 69 25 21 32 34 3d 73  25 2b 33 39 30 0d 05 28  |.i%!24=s%+390..(|
00000980  0c 69 25 21 32 38 3d 33  30 0d 05 32 0a 69 25 2b  |.i%!28=30..2.i%+|
00000990  3d 33 32 0d 05 3c 13 21  69 25 3d 33 32 3a 69 25  |=32..<.!i%=32:i%|
000009a0  21 34 3d 31 36 34 0d 05  46 16 69 25 21 38 3d 31  |!4=164..F.i%!8=1|
000009b0  38 34 3a 69 25 21 31 32  3d 32 31 32 0d 05 50 13  |84:i%!12=212..P.|
000009c0  69 25 21 31 36 3d 26 30  37 30 30 30 32 31 31 0d  |i%!16=&07000211.|
000009d0  05 5a 17 24 28 69 25 2b  32 30 29 3d 22 4e 61 6d  |.Z.$(i%+20)="Nam|
000009e0  65 3a 22 2b bd 30 0d 05  64 0a 69 25 2b 3d 33 32  |e:"+.0..d.i%+=32|
000009f0  0d 05 6e 14 21 69 25 3d  31 38 38 3a 69 25 21 34  |..n.!i%=188:i%!4|
00000a00  3d 31 36 34 0d 05 78 16  69 25 21 38 3d 36 33 32  |=164..x.i%!8=632|
00000a10  3a 69 25 21 31 32 3d 32  31 32 0d 05 82 13 69 25  |:i%!12=212....i%|
00000a20  21 31 36 3d 26 30 37 30  30 30 31 33 44 0d 05 8c  |!16=&0700013D...|
00000a30  10 69 25 21 32 30 3d 73  25 2b 34 39 36 0d 05 96  |.i%!20=s%+496...|
00000a40  10 69 25 21 32 34 3d 73  25 2b 33 39 30 0d 05 a0  |.i%!24=s%+390...|
00000a50  0c 69 25 21 32 38 3d 33  30 0d 05 aa 0c 73 25 21  |.i%!28=30....s%!|
00000a60  33 39 30 3d 30 0d 05 b4  23 24 28 73 25 2b 34 30  |390=0...#$(s%+40|
00000a70  30 29 3d 22 31 2e 30 30  20 28 32 30 2d 44 65 63  |0)="1.00 (20-Dec|
00000a80  2d 39 39 29 22 2b bd 30  0d 05 be 27 24 28 73 25  |-99)"+.0...'$(s%|
00000a90  2b 34 33 32 29 3d 22 a9  20 44 6f 6d 69 6e 69 63  |+432)=". Dominic|
00000aa0  20 46 6f 72 64 2c 20 31  39 39 39 22 2b bd 30 0d  | Ford, 1999"+.0.|
00000ab0  05 c8 1f 24 28 73 25 2b  34 36 34 29 3d 22 53 63  |...$(s%+464)="Sc|
00000ac0  72 65 65 6e 20 53 61 76  65 72 22 2b bd 30 0d 05  |reen Saver"+.0..|
00000ad0  d2 1a 24 28 73 25 2b 34  39 36 29 3d 22 53 63 72  |..$(s%+496)="Scr|
00000ae0  53 61 76 65 22 2b bd 30  0d 05 dc 25 24 28 73 25  |Save"+.0...%$(s%|
00000af0  2b 35 32 38 29 3d 22 41  62 6f 75 74 20 74 68 69  |+528)="About thi|
00000b00  73 20 70 72 6f 67 72 61  6d 22 2b bd 30 0d 05 e6  |s program"+.0...|
00000b10  26 c8 99 20 22 57 69 6d  70 5f 43 72 65 61 74 65  |&.. "Wimp_Create|
00000b20  57 69 6e 64 6f 77 22 2c  2c 73 25 20 b8 20 69 6e  |Window",,s% . in|
00000b30  66 6f 25 0d 05 f0 05 e1  0d 05 fa 05 3a 0d 06 04  |fo%.........:...|
00000b40  0f dd f2 6f 70 65 6e 5f  6d 65 6e 75 0d 06 0e 31  |...open_menu...1|
00000b50  20 c8 99 20 22 57 69 6d  70 5f 43 72 65 61 74 65  | .. "Wimp_Create|
00000b60  4d 65 6e 75 22 2c 2c 6d  61 69 6e 6d 65 6e 75 25  |Menu",,mainmenu%|
00000b70  2c 28 21 71 25 29 2d 36  34 2c 31 36 30 0d 06 18  |,(!q%)-64,160...|
00000b80  05 e1 0d 06 22 05 3a 0d  06 2c 0a dd f2 69 63 6f  |....".:..,...ico|
00000b90  6e 0d 06 36 0f 73 70 25  3d 69 63 6f 6e 73 70 25  |n..6.sp%=iconsp%|
00000ba0  0d 06 40 0b 21 73 70 25  3d 2d 31 0d 06 4a 0b 73  |..@.!sp%=-1..J.s|
00000bb0  70 25 21 34 3d 30 0d 06  54 0b 73 70 25 21 38 3d  |p%!4=0..T.sp%!8=|
00000bc0  30 0d 06 5e 19 73 70 25  21 31 32 3d 26 36 34 3a  |0..^.sp%!12=&64:|
00000bd0  73 70 25 21 31 36 3d 26  34 34 0d 06 68 14 73 70  |sp%!16=&44..h.sp|
00000be0  25 21 32 30 3d 26 31 37  30 30 33 30 30 41 0d 06  |%!20=&1700300A..|
00000bf0  72 1b 24 28 73 70 25 2b  32 34 29 3d 22 21 73 63  |r.$(sp%+24)="!sc|
00000c00  72 73 61 76 65 22 2b bd  30 0d 06 7c 25 c8 99 20  |rsave"+.0..|%.. |
00000c10  22 57 69 6d 70 5f 43 72  65 61 74 65 49 63 6f 6e  |"Wimp_CreateIcon|
00000c20  22 2c 2c 73 70 25 20 b8  20 69 63 6f 6e 25 0d 06  |",,sp% . icon%..|
00000c30  86 05 e1 0d 06 90 05 3a  0d 06 9a 12 f4 20 41 43  |.......:..... AC|
00000c40  54 55 41 4c 20 43 4f 44  45 21 0d 06 a4 05 3a 0d  |TUAL CODE!....:.|
00000c50  06 ae 0d dd f2 73 65 74  6d 65 75 70 0d 06 b8 10  |.....setmeup....|
00000c60  73 70 65 65 64 25 3d 32  3c 3c 31 36 0d 06 c2 0d  |speed%=2<<16....|
00000c70  74 72 61 63 6b 73 25 3d  38 0d 06 cc 11 de 20 63  |tracks%=8..... c|
00000c80  6f 64 65 25 20 35 30 30  30 30 0d 06 d6 11 6c 69  |ode% 50000....li|
00000c90  6e 6b 3d 31 34 3a 70 63  3d 31 35 0d 06 e0 13 78  |nk=14:pc=15....x|
00000ca0  3d 35 3a 79 3d 36 3a 68  3d 37 3a 76 3d 38 0d 06  |=5:y=6:h=7:v=8..|
00000cb0  ea 22 74 72 61 63 6b 3d  39 3a 62 61 73 65 3d 31  |."track=9:base=1|
00000cc0  30 3a 74 65 6d 70 3d 31  31 3a 61 64 64 3d 31 32  |0:temp=11:add=12|
00000cd0  0d 06 f4 1f 63 6f 75 6e  74 3d 31 3a 70 6f 69 6e  |....count=1:poin|
00000ce0  74 3d 32 3a 6b 65 79 3d  33 3a 74 6f 70 3d 34 0d  |t=2:key=3:top=4.|
00000cf0  06 fe 0f 61 6d 6f 75 6e  74 25 3d 39 30 30 0d 07  |...amount%=900..|
00000d00  08 15 e3 20 70 61 73 73  25 3d 30 20 b8 20 32 20  |... pass%=0 . 2 |
00000d10  88 20 32 0d 07 12 0c 50  25 3d 63 6f 64 65 25 0d  |. 2....P%=code%.|
00000d20  07 1c 0d 5b 4f 50 54 70  61 73 73 25 0d 07 26 15  |...[OPTpass%..&.|
00000d30  2e 72 61 6e 64 6f 6d 20  a4 72 6e 64 70 6c 61 63  |.random .rndplac|
00000d40  65 0d 07 30 17 2e 72 6e  64 61 64 64 20 45 51 55  |e..0..rndadd EQU|
00000d50  44 20 72 61 6e 64 6f 6d  0d 07 3a 17 2e 72 6e 64  |D random..:..rnd|
00000d60  63 6e 74 20 45 51 55 44  20 72 61 6e 64 6f 6d 0d  |cnt EQUD random.|
00000d70  07 44 1b 2e 78 73 74 61  72 74 20 45 51 55 44 20  |.D..xstart EQUD |
00000d80  b3 28 33 32 30 29 3c 3c  31 36 0d 07 4e 1b 2e 79  |.(320)<<16..N..y|
00000d90  73 74 61 72 74 20 45 51  55 44 20 b3 28 32 35 36  |start EQUD .(256|
00000da0  29 3c 3c 31 36 0d 07 58  12 2e 77 68 69 63 68 20  |)<<16..X..which |
00000db0  20 45 51 55 44 20 31 0d  07 62 17 2e 63 6f 6c 6f  | EQUD 1..b..colo|
00000dc0  75 72 20 45 51 55 42 20  b3 28 32 35 35 29 0d 07  |ur EQUB .(255)..|
00000dd0  6c 17 20 20 20 20 20 20  20 20 45 51 55 42 20 b3  |l.        EQUB .|
00000de0  28 32 35 35 29 0d 07 76  17 20 20 20 20 20 20 20  |(255)..v.       |
00000df0  20 45 51 55 42 20 b3 28  32 35 35 29 0d 07 80 17  | EQUB .(255)....|
00000e00  20 20 20 20 20 20 20 20  45 51 55 42 20 b3 28 32  |        EQUB .(2|
00000e10  35 35 29 0d 07 8a 17 20  20 20 20 20 20 20 20 45  |55)....        E|
00000e20  51 55 42 20 b3 28 32 35  35 29 0d 07 94 17 20 20  |QUB .(255)....  |
00000e30  20 20 20 20 20 20 45 51  55 42 20 b3 28 32 35 35  |      EQUB .(255|
00000e40  29 0d 07 9e 17 2e 63 6f  6c 6e 6f 31 20 45 51 55  |).....colno1 EQU|
00000e50  42 20 b3 28 32 35 35 29  0d 07 a8 17 2e 63 6f 6c  |B .(255).....col|
00000e60  6e 6f 32 20 45 51 55 42  20 b3 28 32 35 35 29 0d  |no2 EQUB .(255).|
00000e70  07 b2 12 2e 63 6f 6c 61  64 64 20 45 51 55 42 20  |....coladd EQUB |
00000e80  30 0d 07 bc 11 20 20 20  20 20 20 20 20 41 4c 49  |0....        ALI|
00000e90  47 4e 0d 07 c6 14 2e 76  64 75 20 20 20 20 45 51  |GN.....vdu    EQ|
00000ea0  55 44 20 31 34 38 0d 07  d0 13 20 20 20 20 20 20  |UD 148....      |
00000eb0  20 20 45 51 55 44 20 2d  31 0d 07 da 11 20 20 20  |  EQUD -1....   |
00000ec0  20 20 20 20 20 41 4c 49  47 4e 0d 07 e4 04 0d 07  |     ALIGN......|
00000ed0  ee 1f 2e 73 74 61 72 74  20 20 53 54 52 20 20 20  |...start  STR   |
00000ee0  20 20 6c 69 6e 6b 2c 72  65 74 75 72 6e 0d 07 f8  |  link,return...|
00000ef0  1c 20 20 20 20 20 20 20  20 4c 44 52 20 20 20 20  |.        LDR    |
00000f00  20 62 61 73 65 2c 76 64  75 0d 08 02 23 20 20 20  | base,vdu...#   |
00000f10  20 20 20 20 20 41 44 44  20 20 20 20 20 74 6f 70  |     ADD     top|
00000f20  2c 62 61 73 65 2c 23 38  31 39 32 30 0d 08 0c 20  |,base,#81920... |
00000f30  20 20 20 20 20 20 20 20  53 55 42 20 20 20 20 20  |        SUB     |
00000f40  74 6f 70 2c 74 6f 70 2c  23 36 34 30 0d 08 16 1c  |top,top,#640....|
00000f50  20 20 20 20 20 20 20 20  4d 4f 56 20 20 20 20 20  |        MOV     |
00000f60  74 72 61 63 6b 2c 23 31  0d 08 20 1a 20 20 20 20  |track,#1.. .    |
00000f70  20 20 20 20 4d 4f 56 20  20 20 20 20 6b 65 79 2c  |    MOV     key,|
00000f80  23 31 0d 08 2a 1b 2e 6c  6f 6f 70 20 20 20 4d 4f  |#1..*..loop   MO|
00000f90  56 20 20 20 20 20 52 30  2c 23 31 32 31 0d 08 34  |V     R0,#121..4|
00000fa0  19 20 20 20 20 20 20 20  20 4d 4f 56 20 20 20 20  |.        MOV    |
00000fb0  20 52 31 2c 23 30 0d 08  3e 1d 20 20 20 20 20 20  | R1,#0..>.      |
00000fc0  20 20 53 57 49 20 20 20  20 20 22 4f 53 5f 42 79  |  SWI     "OS_By|
00000fd0  74 65 22 0d 08 48 1b 20  20 20 20 20 20 20 20 43  |te"..H.        C|
00000fe0  4d 50 20 20 20 20 20 52  31 2c 23 32 35 35 0d 08  |MP     R1,#255..|
00000ff0  52 17 20 20 20 20 20 20  20 20 42 4e 45 20 20 20  |R.        BNE   |
00001000  20 20 65 6e 64 0d 08 5c  1c 20 20 20 20 20 20 20  |  end..\.       |
00001010  20 4d 4f 56 20 20 20 20  20 63 6f 75 6e 74 2c 23  | MOV     count,#|
00001020  30 0d 08 66 1e 20 20 20  20 20 20 20 20 41 44 44  |0..f.        ADD|
00001030  20 20 20 20 20 6b 65 79  2c 6b 65 79 2c 23 31 0d  |     key,key,#1.|
00001040  08 70 1c 20 20 20 20 20  20 20 20 43 4d 50 20 20  |.p.        CMP  |
00001050  20 20 20 6b 65 79 2c 23  31 30 30 0d 08 7a 17 20  |   key,#100..z. |
00001060  20 20 20 20 20 20 20 42  4c 47 54 20 20 20 20 73  |       BLGT    s|
00001070  65 74 0d 08 84 1f 20 20  20 20 20 20 20 20 41 44  |et....        AD|
00001080  52 20 20 20 20 20 61 64  64 2c 64 61 74 61 2b 33  |R     add,data+3|
00001090  32 0d 08 8e 22 2e 6c 6f  6f 70 32 20 20 41 44 44  |2...".loop2  ADD|
000010a0  20 20 20 20 20 63 6f 75  6e 74 2c 63 6f 75 6e 74  |     count,count|
000010b0  2c 23 31 0d 08 98 26 20  20 20 20 20 20 20 20 54  |,#1...&        T|
000010c0  45 51 20 20 20 20 20 63  6f 75 6e 74 2c 23 28 61  |EQ     count,#(a|
000010d0  6d 6f 75 6e 74 25 2f 33  29 0d 08 a2 19 20 20 20  |mount%/3)....   |
000010e0  20 20 20 20 20 42 4c 45  51 20 20 20 20 63 68 6e  |     BLEQ    chn|
000010f0  67 32 0d 08 ac 28 20 20  20 20 20 20 20 20 54 45  |g2...(        TE|
00001100  51 20 20 20 20 20 63 6f  75 6e 74 2c 23 28 61 6d  |Q     count,#(am|
00001110  6f 75 6e 74 25 2f 33 2a  32 29 0d 08 b6 19 20 20  |ount%/3*2)....  |
00001120  20 20 20 20 20 20 42 4c  45 51 20 20 20 20 63 68  |      BLEQ    ch|
00001130  6e 67 34 0d 08 c0 1c 20  20 20 20 20 20 20 20 54  |ng4....        T|
00001140  45 51 20 20 20 20 20 63  6f 75 6e 74 2c 23 31 0d  |EQ     count,#1.|
00001150  08 ca 19 20 20 20 20 20  20 20 20 42 4c 45 51 20  |...        BLEQ |
00001160  20 20 20 63 68 6e 67 31  0d 08 d4 1b 20 20 20 20  |   chng1....    |
00001170  20 20 20 20 4d 4f 56 20  20 20 20 20 74 65 6d 70  |    MOV     temp|
00001180  2c 23 30 0d 08 de 25 20  20 20 20 20 20 20 20 41  |,#0...%        A|
00001190  44 44 20 20 20 20 20 78  2c 61 64 64 2c 74 72 61  |DD     x,add,tra|
000011a0  63 6b 2c 4c 53 4c 23 32  0d 08 e8 22 20 20 20 20  |ck,LSL#2..."    |
000011b0  20 20 20 20 4c 44 52 20  20 20 20 20 70 6f 69 6e  |    LDR     poin|
000011c0  74 2c 5b 78 2c 23 2d 33  36 5d 0d 08 f2 1d 20 20  |t,[x,#-36]....  |
000011d0  20 20 20 20 20 20 43 4d  50 20 20 20 20 20 70 6f  |      CMP     po|
000011e0  69 6e 74 2c 74 6f 70 0d  08 fc 1e 20 20 20 20 20  |int,top....     |
000011f0  20 20 20 43 4d 50 4c 54  20 20 20 62 61 73 65 2c  |   CMPLT   base,|
00001200  70 6f 69 6e 74 0d 09 06  20 20 20 20 20 20 20 20  |point...        |
00001210  20 53 54 52 4c 54 42 20  20 74 65 6d 70 2c 5b 70  | STRLTB  temp,[p|
00001220  6f 69 6e 74 5d 0d 09 10  21 20 20 20 20 20 20 20  |oint]...!       |
00001230  20 4c 44 4d 49 41 20 20  20 61 64 64 2c 7b 78 2c  | LDMIA   add,{x,|
00001240  79 2c 68 2c 76 7d 0d 09  1a 1c 20 20 20 20 20 20  |y,h,v}....      |
00001250  20 20 43 4d 50 20 20 20  20 20 78 2c 23 36 35 35  |  CMP     x,#655|
00001260  33 36 0d 09 24 1d 20 20  20 20 20 20 20 20 43 4d  |36..$.        CM|
00001270  50 47 54 20 20 20 79 2c  23 31 33 31 30 37 32 0d  |PGT   y,#131072.|
00001280  09 2e 19 20 20 20 20 20  20 20 20 42 4c 45 20 20  |...        BLE  |
00001290  20 20 20 73 6b 69 70 31  0d 09 38 20 20 20 20 20  |   skip1..8     |
000012a0  20 20 20 20 43 4d 50 20  20 20 20 20 78 2c 23 28  |    CMP     x,#(|
000012b0  33 31 36 3c 3c 31 36 29  0d 09 42 1f 20 20 20 20  |316<<16)..B.    |
000012c0  20 20 20 20 43 4d 50 4c  54 20 20 20 79 2c 23 31  |    CMPLT   y,#1|
000012d0  36 36 34 36 31 34 34 0d  09 4c 19 20 20 20 20 20  |6646144..L.     |
000012e0  20 20 20 42 47 45 20 20  20 20 20 73 6b 69 70 31  |   BGE     skip1|
000012f0  0d 09 56 21 20 20 20 20  20 20 20 20 4d 4f 56 20  |..V!        MOV |
00001300  20 20 20 20 74 65 6d 70  2c 79 2c 4c 53 52 23 31  |    temp,y,LSR#1|
00001310  36 0d 09 60 29 20 20 20  20 20 20 20 20 41 44 44  |6..`)        ADD|
00001320  20 20 20 20 20 70 6f 69  6e 74 2c 62 61 73 65 2c  |     point,base,|
00001330  74 65 6d 70 2c 4c 53 4c  23 38 0d 09 6a 2a 20 20  |temp,LSL#8..j*  |
00001340  20 20 20 20 20 20 41 44  44 20 20 20 20 20 70 6f  |      ADD     po|
00001350  69 6e 74 2c 70 6f 69 6e  74 2c 74 65 6d 70 2c 4c  |int,point,temp,L|
00001360  53 4c 23 36 0d 09 74 28  20 20 20 20 20 20 20 20  |SL#6..t(        |
00001370  41 44 44 20 20 20 20 20  70 6f 69 6e 74 2c 70 6f  |ADD     point,po|
00001380  69 6e 74 2c 78 2c 4c 53  52 23 31 36 0d 09 7e 1b  |int,x,LSR#16..~.|
00001390  20 20 20 20 20 20 20 20  4d 4f 56 20 20 20 20 20  |        MOV     |
000013a0  74 65 6d 70 2c 23 30 0d  09 88 25 20 20 20 20 20  |temp,#0...%     |
000013b0  20 20 20 53 54 52 42 20  20 20 20 74 65 6d 70 2c  |   STRB    temp,|
000013c0  5b 70 6f 69 6e 74 5d 2c  23 36 34 30 0d 09 92 26  |[point],#640...&|
000013d0  20 20 20 20 20 20 20 20  53 54 52 42 20 20 20 20  |        STRB    |
000013e0  74 65 6d 70 2c 5b 70 6f  69 6e 74 5d 2c 23 2d 33  |temp,[point],#-3|
000013f0  32 31 0d 09 9c 23 20 20  20 20 20 20 20 20 53 54  |21...#        ST|
00001400  52 42 20 20 20 20 74 65  6d 70 2c 5b 70 6f 69 6e  |RB    temp,[poin|
00001410  74 5d 2c 23 32 0d 09 a6  20 20 20 20 20 20 20 20  |t],#2...        |
00001420  20 53 54 52 42 20 20 20  20 74 65 6d 70 2c 5b 70  | STRB    temp,[p|
00001430  6f 69 6e 74 5d 0d 09 b0  19 2e 73 6b 69 70 31 20  |oint].....skip1 |
00001440  20 53 55 42 20 20 20 20  20 78 2c 78 2c 68 0d 09  | SUB     x,x,h..|
00001450  ba 1d 20 20 20 20 20 20  20 20 53 55 42 20 20 20  |..        SUB   |
00001460  20 20 76 2c 76 2c 23 31  30 32 34 0d 09 c4 19 20  |  v,v,#1024.... |
00001470  20 20 20 20 20 20 20 53  55 42 20 20 20 20 20 79  |       SUB     y|
00001480  2c 79 2c 76 0d 09 ce 18  20 20 20 20 20 20 20 20  |,y,v....        |
00001490  43 4d 50 20 20 20 20 20  68 2c 23 30 0d 09 d8 1b  |CMP     h,#0....|
000014a0  20 20 20 20 20 20 20 20  41 44 44 4c 54 20 20 20  |        ADDLT   |
000014b0  68 2c 68 2c 23 36 34 0d  09 e2 1b 20 20 20 20 20  |h,h,#64....     |
000014c0  20 20 20 53 55 42 47 54  20 20 20 68 2c 68 2c 23  |   SUBGT   h,h,#|
000014d0  36 34 0d 09 ec 1c 20 20  20 20 20 20 20 20 4d 4f  |64....        MO|
000014e0  56 20 20 20 20 20 70 6f  69 6e 74 2c 23 30 0d 09  |V     point,#0..|
000014f0  f6 1a 20 20 20 20 20 20  20 20 54 45 51 20 20 20  |..        TEQ   |
00001500  20 20 6b 65 79 2c 23 31  0d 0a 00 19 20 20 20 20  |  key,#1....    |
00001510  20 20 20 20 42 4c 45 51  20 20 20 20 72 65 73 65  |    BLEQ    rese|
00001520  74 0d 0a 0a 1c 20 20 20  20 20 20 20 20 43 4d 50  |t....        CMP|
00001530  20 20 20 20 20 78 2c 23  36 35 35 33 36 0d 0a 14  |     x,#65536...|
00001540  1d 20 20 20 20 20 20 20  20 43 4d 50 47 54 20 20  |.        CMPGT  |
00001550  20 79 2c 23 31 33 31 30  37 32 0d 0a 1e 19 20 20  | y,#131072....  |
00001560  20 20 20 20 20 20 42 4c  45 20 20 20 20 20 73 6b  |      BLE     sk|
00001570  69 70 32 0d 0a 28 20 20  20 20 20 20 20 20 20 43  |ip2..(         C|
00001580  4d 50 20 20 20 20 20 78  2c 23 28 33 31 36 3c 3c  |MP     x,#(316<<|
00001590  31 36 29 0d 0a 32 1f 20  20 20 20 20 20 20 20 43  |16)..2.        C|
000015a0  4d 50 4c 54 20 20 20 79  2c 23 31 36 36 34 36 31  |MPLT   y,#166461|
000015b0  34 34 0d 0a 3c 19 20 20  20 20 20 20 20 20 42 47  |44..<.        BG|
000015c0  45 20 20 20 20 20 73 6b  69 70 32 0d 0a 46 21 20  |E     skip2..F! |
000015d0  20 20 20 20 20 20 20 4d  4f 56 20 20 20 20 20 74  |       MOV     t|
000015e0  65 6d 70 2c 79 2c 4c 53  52 23 31 36 0d 0a 50 29  |emp,y,LSR#16..P)|
000015f0  20 20 20 20 20 20 20 20  41 44 44 20 20 20 20 20  |        ADD     |
00001600  70 6f 69 6e 74 2c 62 61  73 65 2c 74 65 6d 70 2c  |point,base,temp,|
00001610  4c 53 4c 23 38 0d 0a 5a  2a 20 20 20 20 20 20 20  |LSL#8..Z*       |
00001620  20 41 44 44 20 20 20 20  20 70 6f 69 6e 74 2c 70  | ADD     point,p|
00001630  6f 69 6e 74 2c 74 65 6d  70 2c 4c 53 4c 23 36 0d  |oint,temp,LSL#6.|
00001640  0a 64 28 20 20 20 20 20  20 20 20 41 44 44 20 20  |.d(        ADD  |
00001650  20 20 20 70 6f 69 6e 74  2c 70 6f 69 6e 74 2c 78  |   point,point,x|
00001660  2c 4c 53 52 23 31 36 0d  0a 6e 1f 20 20 20 20 20  |,LSR#16..n.     |
00001670  20 20 20 4c 44 52 42 20  20 20 20 74 65 6d 70 2c  |   LDRB    temp,|
00001680  63 6f 6c 6e 6f 31 0d 0a  78 25 20 20 20 20 20 20  |colno1..x%      |
00001690  20 20 53 54 52 42 20 20  20 20 74 65 6d 70 2c 5b  |  STRB    temp,[|
000016a0  70 6f 69 6e 74 5d 2c 23  36 34 30 0d 0a 82 26 20  |point],#640...& |
000016b0  20 20 20 20 20 20 20 53  54 52 42 20 20 20 20 74  |       STRB    t|
000016c0  65 6d 70 2c 5b 70 6f 69  6e 74 5d 2c 23 2d 33 32  |emp,[point],#-32|
000016d0  31 0d 0a 8c 23 20 20 20  20 20 20 20 20 53 54 52  |1...#        STR|
000016e0  42 20 20 20 20 74 65 6d  70 2c 5b 70 6f 69 6e 74  |B    temp,[point|
000016f0  5d 2c 23 32 0d 0a 96 20  20 20 20 20 20 20 20 20  |],#2...         |
00001700  53 54 52 42 20 20 20 20  74 65 6d 70 2c 5b 70 6f  |STRB    temp,[po|
00001710  69 6e 74 5d 0d 0a a0 21  2e 73 6b 69 70 32 20 20  |int]...!.skip2  |
00001720  53 54 4d 49 41 20 20 20  61 64 64 2c 7b 78 2c 79  |STMIA   add,{x,y|
00001730  2c 68 2c 76 7d 0d 0a aa  21 20 20 20 20 20 20 20  |,h,v}...!       |
00001740  20 53 55 42 20 20 20 20  20 74 65 6d 70 2c 70 6f  | SUB     temp,po|
00001750  69 6e 74 2c 23 31 0d 0a  b4 1f 20 20 20 20 20 20  |int,#1....      |
00001760  20 20 53 55 42 20 20 20  20 20 61 64 64 2c 61 64  |  SUB     add,ad|
00001770  64 2c 23 33 36 0d 0a be  25 20 20 20 20 20 20 20  |d,#36...%       |
00001780  20 41 44 44 20 20 20 20  20 78 2c 61 64 64 2c 74  | ADD     x,add,t|
00001790  72 61 63 6b 2c 4c 53 4c  23 32 0d 0a c8 1c 20 20  |rack,LSL#2....  |
000017a0  20 20 20 20 20 20 53 54  52 20 20 20 20 20 74 65  |      STR     te|
000017b0  6d 70 2c 5b 78 5d 0d 0a  d2 1f 20 20 20 20 20 20  |mp,[x]....      |
000017c0  20 20 4c 44 52 42 20 20  20 20 74 65 6d 70 2c 63  |  LDRB    temp,c|
000017d0  6f 6c 6e 6f 32 0d 0a dc  17 20 20 20 20 20 20 20  |olno2....       |
000017e0  20 a4 70 6c 6f 74 74 72  61 63 6b 73 0d 0a e6 1f  | .plottracks....|
000017f0  20 20 20 20 20 20 20 20  41 44 44 20 20 20 20 20  |        ADD     |
00001800  61 64 64 2c 61 64 64 2c  23 35 32 0d 0a f0 22 20  |add,add,#52..." |
00001810  20 20 20 20 20 20 20 43  4d 50 20 20 20 20 20 63  |       CMP     c|
00001820  6f 75 6e 74 2c 23 61 6d  6f 75 6e 74 25 0d 0a fa  |ount,#amount%...|
00001830  19 20 20 20 20 20 20 20  20 42 4c 45 20 20 20 20  |.        BLE    |
00001840  20 6c 6f 6f 70 32 0d 0b  04 22 20 20 20 20 20 20  | loop2..."      |
00001850  20 20 41 44 44 20 20 20  20 20 74 72 61 63 6b 2c  |  ADD     track,|
00001860  74 72 61 63 6b 2c 23 31  0d 0b 0e 22 20 20 20 20  |track,#1..."    |
00001870  20 20 20 20 43 4d 50 20  20 20 20 20 74 72 61 63  |    CMP     trac|
00001880  6b 2c 23 74 72 61 63 6b  73 25 0d 0b 18 1c 20 20  |k,#tracks%....  |
00001890  20 20 20 20 20 20 4d 4f  56 47 54 20 20 20 74 72  |      MOVGT   tr|
000018a0  61 63 6b 2c 23 31 0d 0b  22 18 20 20 20 20 20 20  |ack,#1..".      |
000018b0  20 20 42 20 20 20 20 20  20 20 6c 6f 6f 70 0d 0b  |  B       loop..|
000018c0  2c 1d 2e 65 6e 64 20 20  20 20 4c 44 52 20 20 20  |,..end    LDR   |
000018d0  20 20 70 63 2c 72 65 74  75 72 6e 0d 0b 36 12 2e  |  pc,return..6..|
000018e0  72 65 74 75 72 6e 20 45  51 55 44 20 30 0d 0b 40  |return EQUD 0..@|
000018f0  04 0d 0b 4a 1e 2e 72 65  73 65 74 20 20 4c 44 52  |...J..reset  LDR|
00001900  20 20 20 20 20 74 65 6d  70 2c 77 68 69 63 68 0d  |     temp,which.|
00001910  0b 54 1e 20 20 20 20 20  20 20 20 43 4d 50 20 20  |.T.        CMP  |
00001920  20 20 20 63 6f 75 6e 74  2c 74 65 6d 70 0d 0b 5e  |   count,temp..^|
00001930  1b 20 20 20 20 20 20 20  20 4d 4f 56 4c 54 20 20  |.        MOVLT  |
00001940  20 70 63 2c 6c 69 6e 6b  0d 0b 68 2a 20 20 20 20  | pc,link..h*    |
00001950  20 20 20 20 41 44 44 20  20 20 20 20 74 65 6d 70  |    ADD     temp|
00001960  2c 74 65 6d 70 2c 23 28  61 6d 6f 75 6e 74 25 2f  |,temp,#(amount%/|
00001970  33 29 0d 0b 72 1e 20 20  20 20 20 20 20 20 43 4d  |3)..r.        CM|
00001980  50 20 20 20 20 20 63 6f  75 6e 74 2c 74 65 6d 70  |P     count,temp|
00001990  0d 0b 7c 1b 20 20 20 20  20 20 20 20 4d 4f 56 47  |..|.        MOVG|
000019a0  54 20 20 20 70 63 2c 6c  69 6e 6b 0d 0b 86 1c 20  |T   pc,link.... |
000019b0  20 20 20 20 20 20 20 4c  44 52 20 20 20 20 20 78  |       LDR     x|
000019c0  2c 78 73 74 61 72 74 0d  0b 90 1c 20 20 20 20 20  |,xstart....     |
000019d0  20 20 20 4c 44 52 20 20  20 20 20 79 2c 79 73 74  |   LDR     y,yst|
000019e0  61 72 74 0d 0b 9a 1f 20  20 20 20 20 20 20 20 4c  |art....        L|
000019f0  44 52 20 20 20 20 20 74  65 6d 70 2c 72 6e 64 63  |DR     temp,rndc|
00001a00  6e 74 0d 0b a4 1c 20 20  20 20 20 20 20 20 41 44  |nt....        AD|
00001a10  52 20 20 20 20 20 68 2c  72 6e 64 61 64 64 0d 0b  |R     h,rndadd..|
00001a20  ae 1a 20 20 20 20 20 20  20 20 43 4d 50 20 20 20  |..        CMP   |
00001a30  20 20 74 65 6d 70 2c 68  0d 0b b8 1f 20 20 20 20  |  temp,h....    |
00001a40  20 20 20 20 4c 44 52 47  45 20 20 20 74 65 6d 70  |    LDRGE   temp|
00001a50  2c 72 6e 64 61 64 64 0d  0b c2 1f 20 20 20 20 20  |,rndadd....     |
00001a60  20 20 20 4c 44 52 20 20  20 20 20 68 2c 5b 74 65  |   LDR     h,[te|
00001a70  6d 70 5d 2c 23 34 0d 0b  cc 1f 20 20 20 20 20 20  |mp],#4....      |
00001a80  20 20 4c 44 52 20 20 20  20 20 76 2c 5b 74 65 6d  |  LDR     v,[tem|
00001a90  70 5d 2c 23 34 0d 0b d6  1f 20 20 20 20 20 20 20  |p],#4....       |
00001aa0  20 53 54 52 20 20 20 20  20 74 65 6d 70 2c 72 6e  | STR     temp,rn|
00001ab0  64 63 6e 74 0d 0b e0 21  20 20 20 20 20 20 20 20  |dcnt...!        |
00001ac0  53 54 4d 49 41 20 20 20  61 64 64 2c 7b 78 2c 79  |STMIA   add,{x,y|
00001ad0  2c 68 2c 76 7d 0d 0b ea  1b 20 20 20 20 20 20 20  |,h,v}....       |
00001ae0  20 4d 4f 56 20 20 20 20  20 70 63 2c 6c 69 6e 6b  | MOV     pc,link|
00001af0  0d 0b f4 20 2e 73 65 74  20 20 20 20 53 55 42 20  |... .set    SUB |
00001b00  20 20 20 20 6b 65 79 2c  6b 65 79 2c 23 31 30 30  |    key,key,#100|
00001b10  0d 0b fe 1c 20 20 20 20  20 20 20 20 4c 44 52 20  |....        LDR |
00001b20  20 20 20 20 78 2c 78 73  74 61 72 74 0d 0c 08 1c  |    x,xstart....|
00001b30  20 20 20 20 20 20 20 20  4c 44 52 20 20 20 20 20  |        LDR     |
00001b40  79 2c 79 73 74 61 72 74  0d 0c 12 1f 20 20 20 20  |y,ystart....    |
00001b50  20 20 20 20 41 44 44 20  20 20 20 20 78 2c 78 2c  |    ADD     x,x,|
00001b60  79 2c 4c 53 52 23 31 0d  0c 1c 1f 20 20 20 20 20  |y,LSR#1....     |
00001b70  20 20 20 41 44 44 20 20  20 20 20 78 2c 78 2c 23  |   ADD     x,x,#|
00001b80  31 36 3c 3c 31 36 0d 0c  26 1e 20 20 20 20 20 20  |16<<16..&.      |
00001b90  20 20 43 4d 50 20 20 20  20 20 78 2c 23 33 32 30  |  CMP     x,#320|
00001ba0  3c 3c 31 36 0d 0c 30 20  20 20 20 20 20 20 20 20  |<<16..0         |
00001bb0  53 55 42 47 45 20 20 20  78 2c 78 2c 23 33 30 30  |SUBGE   x,x,#300|
00001bc0  3c 3c 31 36 0d 0c 3a 1c  20 20 20 20 20 20 20 20  |<<16..:.        |
00001bd0  53 54 52 20 20 20 20 20  78 2c 78 73 74 61 72 74  |STR     x,xstart|
00001be0  0d 0c 44 19 20 20 20 20  20 20 20 20 41 44 44 20  |..D.        ADD |
00001bf0  20 20 20 20 79 2c 79 2c  78 0d 0c 4e 1f 20 20 20  |    y,y,x..N.   |
00001c00  20 20 20 20 20 53 55 42  20 20 20 20 20 79 2c 79  |     SUB     y,y|
00001c10  2c 23 36 34 3c 3c 31 36  0d 0c 58 1e 20 20 20 20  |,#64<<16..X.    |
00001c20  20 20 20 20 43 4d 50 20  20 20 20 20 79 2c 23 32  |    CMP     y,#2|
00001c30  35 36 3c 3c 31 36 0d 0c  62 20 20 20 20 20 20 20  |56<<16..b       |
00001c40  20 20 53 55 42 47 45 20  20 20 79 2c 79 2c 23 32  |  SUBGE   y,y,#2|
00001c50  35 30 3c 3c 31 36 0d 0c  6c 1c 20 20 20 20 20 20  |50<<16..l.      |
00001c60  20 20 43 4d 50 20 20 20  20 20 79 2c 23 31 3c 3c  |  CMP     y,#1<<|
00001c70  31 36 0d 0c 76 20 20 20  20 20 20 20 20 20 41 44  |16..v         AD|
00001c80  44 4c 45 20 20 20 79 2c  79 2c 23 32 35 30 3c 3c  |DLE   y,y,#250<<|
00001c90  31 36 0d 0c 80 1c 20 20  20 20 20 20 20 20 53 54  |16....        ST|
00001ca0  52 20 20 20 20 20 79 2c  79 73 74 61 72 74 0d 0c  |R     y,ystart..|
00001cb0  8a 1e 20 20 20 20 20 20  20 20 4c 44 52 20 20 20  |..        LDR   |
00001cc0  20 20 74 65 6d 70 2c 77  68 69 63 68 0d 0c 94 2a  |  temp,which...*|
00001cd0  20 20 20 20 20 20 20 20  41 44 44 20 20 20 20 20  |        ADD     |
00001ce0  74 65 6d 70 2c 74 65 6d  70 2c 23 28 61 6d 6f 75  |temp,temp,#(amou|
00001cf0  6e 74 25 2f 33 29 0d 0c  9e 21 20 20 20 20 20 20  |nt%/3)...!      |
00001d00  20 20 43 4d 50 20 20 20  20 20 74 65 6d 70 2c 23  |  CMP     temp,#|
00001d10  61 6d 6f 75 6e 74 25 0d  0c a8 1b 20 20 20 20 20  |amount%....     |
00001d20  20 20 20 4d 4f 56 47 54  20 20 20 74 65 6d 70 2c  |   MOVGT   temp,|
00001d30  23 31 0d 0c b2 1e 20 20  20 20 20 20 20 20 53 54  |#1....        ST|
00001d40  52 20 20 20 20 20 74 65  6d 70 2c 77 68 69 63 68  |R     temp,which|
00001d50  0d 0c bc 1f 20 20 20 20  20 20 20 20 4c 44 52 42  |....        LDRB|
00001d60  20 20 20 20 74 65 6d 70  2c 63 6f 6c 61 64 64 0d  |    temp,coladd.|
00001d70  0c c6 20 20 20 20 20 20  20 20 20 41 44 44 20 20  |..         ADD  |
00001d80  20 20 20 74 65 6d 70 2c  74 65 6d 70 2c 23 32 0d  |   temp,temp,#2.|
00001d90  0c d0 1b 20 20 20 20 20  20 20 20 43 4d 50 20 20  |...        CMP  |
00001da0  20 20 20 74 65 6d 70 2c  23 36 0d 0c da 1b 20 20  |   temp,#6....  |
00001db0  20 20 20 20 20 20 4d 4f  56 47 45 20 20 20 74 65  |      MOVGE   te|
00001dc0  6d 70 2c 23 30 0d 0c e4  1f 20 20 20 20 20 20 20  |mp,#0....       |
00001dd0  20 53 54 52 42 20 20 20  20 74 65 6d 70 2c 63 6f  | STRB    temp,co|
00001de0  6c 61 64 64 0d 0c ee 1c  20 20 20 20 20 20 20 20  |ladd....        |
00001df0  41 44 52 20 20 20 20 20  78 2c 63 6f 6c 6f 75 72  |ADR     x,colour|
00001e00  0d 0c f8 1f 20 20 20 20  20 20 20 20 41 44 44 20  |....        ADD |
00001e10  20 20 20 20 74 65 6d 70  2c 78 2c 74 65 6d 70 0d  |    temp,x,temp.|
00001e20  0d 02 1c 20 20 20 20 20  20 20 20 4c 44 52 42 20  |...        LDRB |
00001e30  20 20 20 78 2c 5b 74 65  6d 70 5d 0d 0d 0c 1a 20  |   x,[temp].... |
00001e40  20 20 20 20 20 20 20 41  44 44 20 20 20 20 20 78  |       ADD     x|
00001e50  2c 78 2c 23 33 0d 0d 16  1a 20 20 20 20 20 20 20  |,x,#3....       |
00001e60  20 43 4d 50 20 20 20 20  20 78 2c 23 32 35 35 0d  | CMP     x,#255.|
00001e70  0d 20 1c 20 20 20 20 20  20 20 20 53 55 42 47 45  |. .        SUBGE|
00001e80  20 20 20 78 2c 78 2c 23  32 35 33 0d 0d 2a 1c 20  |   x,x,#253..*. |
00001e90  20 20 20 20 20 20 20 53  54 52 42 20 20 20 20 78  |       STRB    x|
00001ea0  2c 5b 74 65 6d 70 5d 0d  0d 34 20 20 20 20 20 20  |,[temp]..4      |
00001eb0  20 20 20 4c 44 52 42 20  20 20 20 79 2c 5b 74 65  |   LDRB    y,[te|
00001ec0  6d 70 2c 23 31 5d 21 0d  0d 3e 1a 20 20 20 20 20  |mp,#1]!..>.     |
00001ed0  20 20 20 53 55 42 20 20  20 20 20 79 2c 79 2c 23  |   SUB     y,y,#|
00001ee0  35 0d 0d 48 18 20 20 20  20 20 20 20 20 43 4d 50  |5..H.        CMP|
00001ef0  20 20 20 20 20 79 2c 23  31 0d 0d 52 1c 20 20 20  |     y,#1..R.   |
00001f00  20 20 20 20 20 41 44 44  47 45 20 20 20 79 2c 79  |     ADDGE   y,y|
00001f10  2c 23 32 35 36 0d 0d 5c  1c 20 20 20 20 20 20 20  |,#256..\.       |
00001f20  20 53 54 52 42 20 20 20  20 79 2c 5b 74 65 6d 70  | STRB    y,[temp|
00001f30  5d 0d 0d 66 1b 20 20 20  20 20 20 20 20 4d 4f 56  |]..f.        MOV|
00001f40  20 20 20 20 20 70 63 2c  6c 69 6e 6b 0d 0d 70 04  |     pc,link..p.|
00001f50  0d 0d 7a 1e 2e 63 68 6e  67 32 20 20 4c 44 52 42  |..z..chng2  LDRB|
00001f60  20 20 20 20 78 2c 63 6f  6c 6f 75 72 2b 32 0d 0d  |    x,colour+2..|
00001f70  84 1c 20 20 20 20 20 20  20 20 53 54 52 42 20 20  |..        STRB  |
00001f80  20 20 78 2c 63 6f 6c 6e  6f 31 0d 0d 8e 1e 20 20  |  x,colno1....  |
00001f90  20 20 20 20 20 20 4c 44  52 42 20 20 20 20 78 2c  |      LDRB    x,|
00001fa0  63 6f 6c 6f 75 72 2b 33  0d 0d 98 1c 20 20 20 20  |colour+3....    |
00001fb0  20 20 20 20 53 54 52 42  20 20 20 20 78 2c 63 6f  |    STRB    x,co|
00001fc0  6c 6e 6f 32 0d 0d a2 1b  20 20 20 20 20 20 20 20  |lno2....        |
00001fd0  4d 4f 56 20 20 20 20 20  70 63 2c 6c 69 6e 6b 0d  |MOV     pc,link.|
00001fe0  0d ac 04 0d 0d b6 1e 2e  63 68 6e 67 34 20 20 4c  |........chng4  L|
00001ff0  44 52 42 20 20 20 20 78  2c 63 6f 6c 6f 75 72 2b  |DRB    x,colour+|
00002000  34 0d 0d c0 1c 20 20 20  20 20 20 20 20 53 54 52  |4....        STR|
00002010  42 20 20 20 20 78 2c 63  6f 6c 6e 6f 31 0d 0d ca  |B    x,colno1...|
00002020  1e 20 20 20 20 20 20 20  20 4c 44 52 42 20 20 20  |.        LDRB   |
00002030  20 78 2c 63 6f 6c 6f 75  72 2b 35 0d 0d d4 1c 20  | x,colour+5.... |
00002040  20 20 20 20 20 20 20 53  54 52 42 20 20 20 20 78  |       STRB    x|
00002050  2c 63 6f 6c 6e 6f 32 0d  0d de 1b 20 20 20 20 20  |,colno2....     |
00002060  20 20 20 4d 4f 56 20 20  20 20 20 70 63 2c 6c 69  |   MOV     pc,li|
00002070  6e 6b 0d 0d e8 04 0d 0d  f2 1c 2e 63 68 6e 67 31  |nk.........chng1|
00002080  20 20 4c 44 52 42 20 20  20 20 78 2c 63 6f 6c 6f  |  LDRB    x,colo|
00002090  75 72 0d 0d fc 1c 20 20  20 20 20 20 20 20 53 54  |ur....        ST|
000020a0  52 42 20 20 20 20 78 2c  63 6f 6c 6e 6f 31 0d 0e  |RB    x,colno1..|
000020b0  06 1e 20 20 20 20 20 20  20 20 4c 44 52 42 20 20  |..        LDRB  |
000020c0  20 20 78 2c 63 6f 6c 6f  75 72 2b 31 0d 0e 10 1c  |  x,colour+1....|
000020d0  20 20 20 20 20 20 20 20  53 54 52 42 20 20 20 20  |        STRB    |
000020e0  78 2c 63 6f 6c 6e 6f 32  0d 0e 1a 1b 20 20 20 20  |x,colno2....    |
000020f0  20 20 20 20 4d 4f 56 20  20 20 20 20 70 63 2c 6c  |    MOV     pc,l|
00002100  69 6e 6b 0d 0e 24 09 2e  64 61 74 61 0d 0e 2e 05  |ink..$..data....|
00002110  5d 0d 0e 38 0a ed 70 61  73 73 25 0d 0e 42 24 c8  |]..8..pass%..B$.|
00002120  99 20 22 4f 53 5f 52 65  61 64 56 64 75 56 61 72  |. "OS_ReadVduVar|
00002130  69 61 62 6c 65 73 22 2c  76 64 75 2c 76 64 75 0d  |iables",vdu,vdu.|
00002140  0e 4c 0b f2 70 6f 69 6e  74 73 0d 0e 56 05 e1 0d  |.L..points..V...|
00002150  0e 60 04 0d 0e 6a 0d dd  20 f2 70 6f 69 6e 74 73  |.`...j.. .points|
00002160  0d 0e 74 12 78 25 3d b3  28 31 32 38 30 29 3c 3c  |..t.x%=.(1280)<<|
00002170  31 34 0d 0e 7e 1e 79 25  3d 28 32 35 36 3c 3c 31  |14..~.y%=(256<<1|
00002180  36 29 2d 28 b3 28 31 30  32 34 29 3c 3c 31 34 29  |6)-(.(1024)<<14)|
00002190  0d 0e 88 08 6e 25 3d 30  0d 0e 92 0f 63 3d 34 2a  |....n%=0....c=4*|
000021a0  74 72 61 63 6b 73 25 0d  0e 9c 2d e3 20 6e 3d 64  |tracks%...-. n=d|
000021b0  61 74 61 2b 63 20 b8 20  64 61 74 61 2b 61 6d 6f  |ata+c . data+amo|
000021c0  75 6e 74 25 2a 28 31 36  2b 63 29 2b 63 20 88 20  |unt%*(16+c)+c . |
000021d0  31 36 2b 63 0d 0e a6 0a  20 6e 25 2b 3d 31 0d 0e  |16+c.... n%+=1..|
000021e0  b0 43 20 e7 20 6e 25 20  83 20 28 61 6d 6f 75 6e  |.C . n% . (amoun|
000021f0  74 25 2f 35 29 3d 30 20  78 25 3d b3 28 31 32 38  |t%/5)=0 x%=.(128|
00002200  30 29 3c 3c 31 34 3a 79  25 3d 28 32 35 36 3c 3c  |0)<<14:y%=(256<<|
00002210  31 36 29 2d 28 b3 28 31  30 32 34 29 3c 3c 31 34  |16)-(.(1024)<<14|
00002220  29 0d 0e ba 18 20 61 3d  b2 28 b3 28 33 36 30 30  |).... a=.(.(3600|
00002230  30 30 29 2f 31 30 30 30  29 0d 0e c4 1c 20 64 3d  |00)/1000).... d=|
00002240  31 2d 31 2f 28 31 2b b3  28 31 30 30 30 30 29 2f  |1-1/(1+.(10000)/|
00002250  31 30 30 30 29 0d 0e ce  0a 20 21 6e 3d 78 25 0d  |1000).... !n=x%.|
00002260  0e d8 0b 20 6e 21 34 3d  79 25 0d 0e e2 16 20 6e  |... n!4=y%.... n|
00002270  21 38 3d 73 70 65 65 64  25 2a 9b 28 61 29 2a 64  |!8=speed%*.(a)*d|
00002280  0d 0e ec 17 20 6e 21 31  32 3d 73 70 65 65 64 25  |.... n!12=speed%|
00002290  2a b5 28 61 29 2a 64 0d  0e f6 1b 20 e3 20 6c 25  |*.(a)*d.... . l%|
000022a0  3d 6e 2b 31 36 20 b8 20  6e 2b 31 36 2b 63 20 88  |=n+16 . n+16+c .|
000022b0  20 34 0d 0f 00 0b 20 20  21 6c 25 3d 30 0d 0f 0a  | 4....  !l%=0...|
000022c0  06 20 ed 0d 0f 14 05 ed  0d 0f 1e 05 e1 0d 0f 28  |. .............(|
000022d0  05 3a 0d 0f 32 11 dd 20  a4 70 6c 6f 74 74 72 61  |.:..2.. .plottra|
000022e0  63 6b 73 0d 0f 3c 13 e3  20 6e 3d 31 20 b8 20 74  |cks..<.. n=1 . t|
000022f0  72 61 63 6b 73 25 0d 0f  46 0e 5b 4f 50 54 20 70  |racks%..F.[OPT p|
00002300  61 73 73 25 0d 0f 50 23  20 20 20 20 20 20 20 20  |ass%..P#        |
00002310  4c 44 52 20 20 20 20 20  70 6f 69 6e 74 2c 5b 61  |LDR     point,[a|
00002320  64 64 2c 23 34 5d 21 0d  0f 5a 1d 20 20 20 20 20  |dd,#4]!..Z.     |
00002330  20 20 20 43 4d 50 20 20  20 20 20 70 6f 69 6e 74  |   CMP     point|
00002340  2c 74 6f 70 0d 0f 64 1e  20 20 20 20 20 20 20 20  |,top..d.        |
00002350  43 4d 50 4c 54 20 20 20  62 61 73 65 2c 70 6f 69  |CMPLT   base,poi|
00002360  6e 74 0d 0f 6e 20 20 20  20 20 20 20 20 20 53 54  |nt..n         ST|
00002370  52 4c 54 42 20 20 74 65  6d 70 2c 5b 70 6f 69 6e  |RLTB  temp,[poin|
00002380  74 5d 0d 0f 78 05 5d 0d  0f 82 05 ed 0d 0f 8c 06  |t]..x.].........|
00002390  3d 30 0d 0f 96 05 3a 0d  0f a0 0f dd 20 a4 72 6e  |=0....:..... .rn|
000023a0  64 70 6c 61 63 65 0d 0f  aa 0f e3 20 6e 3d 31 20  |dplace..... n=1 |
000023b0  b8 20 37 30 30 0d 0f b4  17 61 3d b2 28 b3 28 33  |. 700....a=.(.(3|
000023c0  36 30 30 30 30 29 2f 31  30 30 30 29 0d 0f be 1b  |60000)/1000)....|
000023d0  64 3d 31 2d 31 2f 28 31  2b b3 28 31 30 30 30 30  |d=1-1/(1+.(10000|
000023e0  29 2f 31 30 30 30 29 0d  0f c8 0e 5b 4f 50 54 20  |)/1000)....[OPT |
000023f0  70 61 73 73 25 0d 0f d2  1c 20 20 20 20 20 20 20  |pass%....       |
00002400  20 45 51 55 44 20 73 70  65 65 64 25 2a 9b 61 2a  | EQUD speed%*.a*|
00002410  64 0d 0f dc 1c 20 20 20  20 20 20 20 20 45 51 55  |d....        EQU|
00002420  44 20 73 70 65 65 64 25  2a b5 61 2a 64 0d 0f e6  |D speed%*.a*d...|
00002430  05 5d 0d 0f f0 05 ed 0d  0f fa 06 3d 30 0d 10 04  |.].........=0...|
00002440  05 3a 0d 10 0e 0a dd f2  64 6f 69 74 0d 10 18 07  |.:......doit....|
00002450  eb 31 33 0d 10 22 05 87  0d 10 2c 0a d6 73 74 61  |.13.."....,..sta|
00002460  72 74 0d 10 36 26 eb 31  32 3a c8 97 20 ee 3a ff  |rt..6&.12:.. .:.|
00002470  22 3c 53 63 72 53 61 76  65 24 44 69 72 3e 2e 21  |"<ScrSave$Dir>.!|
00002480  50 61 6c 65 74 74 65 22  0d 10 40 2a c8 99 20 22  |Palette"..@*.. "|
00002490  57 69 6d 70 5f 46 6f 72  63 65 52 65 64 72 61 77  |Wimp_ForceRedraw|
000024a0  22 2c 2d 31 2c 30 2c 30  2c 31 32 38 30 2c 31 30  |",-1,0,0,1280,10|
000024b0  32 34 0d 10 4a 0a 74 69  6d 65 3d 91 0d 10 54 05  |24..J.time=...T.|
000024c0  e1 0d ff                                          |...|
000024c3