> FindWrdByt : 5 ctrl% 31,name% 80,mem% &3FFF:X%=ctrl%:Y%=X%256 ( Scan: 2: <Scan: i%,n% F/f$=s(gbpb8(i%)):i%=X%!9:n%=f$:n%:File P n%=0: Z File d!f$=46 f$=45 f$,"<"): n.file(f$,5)=2:"Dir "+f$:Scan:"Dir ^": xA%=X%!3&FFF "A%=&FAF A%=&FFB A%=&FFF: L%=X%!10:L%>&4000: "LOAD "+f$+" "+~mem% : 8A%=9:title$="":: mem%?A%>31:title$=title$+mem%?A% @A%=A%+1: mem%?A%<32 mem%?A%>126 A%>63:title$=s(title$) -ver$="":: mem%?A%>31:ver$=ver$+mem%?A% =A%=A%+1: mem%?A%<32 mem%?A%>126 A%>127:ver$=s(ver$) :A%=mem%?7:copy$="":: mem%?A%>31:copy$=copy$+mem%?A% ?A%=A%+1: mem%?A%<32 mem%?A%>126 A%>255:copy$=s(copy$) " copy$,3)<>"(C)":ver$=f$,4)  ver$=copy$:ver$="" G ver$="":A%=title$,"."):ver$=title$,A%-1,4):title$=title$,A%-2) $ ver$="":ver$=~mem%?8+"00",3) / uc(ver$,7))="VERSION":ver$=s(ver$,8)) ) uc(ver$,1))="V":ver$=s(ver$,2)) "7 ver$,1)>"9":A%=ver$,"."):A%:ver$=ver$,A%-1,4) , ver$,1)>"9":ver$=ver$,2) 6/ ver$,2,1)="-":ver$=ver$,1)+"."+ver$,3) @+ ver$,2,1)>"9":ver$=ver$,1)+ver$,3) Jver$=s(ver$) T0 ver$,2,1)<>".":ver$=ver$,1)+"."+ver$,2) ^ ver$<5:ver$=ver$+"00",4) h@ ver$,3,1)<"0" ver$,3,1)>"0":ver$=ver$,2)+"0"+ver$,3) r@ ver$,4,1)<"0" ver$,4,1)>"0":ver$=ver$,3)+"0"+ver$,3) |!copy$=copy$,3)+s(copy$,4))  title$<3:title$=f$ : A%=mem%:pr%=: @ chk1:pr:;~A%-mem%+&8000;": LDA &EF ";title$;" ";ver$ M chk2:pr:;~A%-mem%+&8002;": CMP #&";h0(A%?3,2);" ";title$;" ";ver$ M chk3:pr:;~A%-mem%+&8002;": SBC #&";h0(A%?3,2);" ";title$;" ";ver$ @ chk4:pr:;~A%-mem%+&8002;": BPL xxxx ";title$;" ";ver$ @ chk5:pr:;~A%-mem%+&8002;": BMI xxxx ";title$;" ";ver$ "A%=A%+1:A%>=mem%+L%: pr%=:  : pr: pr%: f$:pr%=  *ݤchk1:?A%=&A5:A%?1=&EF:=: LDA &EF = <ݤchk2:?A%=&A5:A%?1=&EF:A%?2=&C9:=: LDA &EF:CMP #nn &= 0<ݤchk3:?A%=&A5:A%?1=&EF:A%?2=&E9:=: LDA &EF:SBC #nn := D<ݤchk4:?A%=&A5:A%?1=&EF:A%?2=&10:=: LDA &EF:BPL xxx N= X<ݤchk5:?A%=&A5:A%?1=&EF:A%?2=&30:=: LDA &EF:BMI xxx b= l: vݤuc(A$): B$:A$="":="" 5B$=B$+(A$((A$<"@")&DF)):A$=A$,2):A$="":=B$ /ݤs(A$):A$,1)=" ":A$=A$,2):A$,1)<>" " +A$,1)=" ":A$=A$,A$-1):A$,1)<>" " =A$ #ݤh0(A%,N%)="0000000"+~A%,N%) "ݤd(A%,N%)=" "+A%,N%) Bݤfile(A$,A%):$name%=A$:?X%=name%:X%?1=name%256:=(&FFDD)&FF Ugbpb(A%,chn%,addr%,num%,ptr%):?X%=chn%:X%!1=addr%:X%!5=num%:X%!9=ptr%: &FFD1: Bݤgbpb(A%):X%!1=name%:&FFD1:A%=name%+((1+?name%)((A%-2)=6)) A%?(1+?A%)=13:=$(A%+1) Eݤgbpb8(ptr%):X%!1=name%:X%!5=1:X%!9=ptr%:A%=8:&FFD1:X%!5=1:="" #A%=name%:A%?(1+?A%)=13:=$(A%+1) 4ݤargs(A%,Y%,ptr%): X%,E%:?(P-3)=0:E%=Y%:Y%=0 /<&8000: !&70:X%=&70:!X%=ptr%:&FFDA:=!X%  )ș"OS_Args",A%,Y%,ptr% ,,ptr%:=ptr% =ݤargsA(A%):<&8000: X%,Y%,E%,!&70:X%=&70:=(&FFDA)&FF  ș"OS_Args",A% A%:=A% *!ݤfs: A%,Y%,E%:=(&FFDA)&FF