home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kosovo Orphans' Appeal Charity CD
/
KosovoOrphansAppeal.iso
/
archimedesworld_cd2
/
shareware
/
chopper
/
_joiner
/
joiner
(
.txt
)
< prev
next >
Wrap
RISC OS BBC BASIC V Source
|
1997-03-16
|
6KB
|
258 lines
--> Joiner
This program and all documentation
David Holden 1995
A_$="0.10"
0,"Error "+
)+" during initialisation : "+
E_(F_%,3,"Drag icon to destination"):
E_(F_%,4,"for the joined up file."):
G_(F_%,-1,0,0):
H_(F_%,1)
262343,I_%,J_%
262341,,J_%
!J_%=F_%
J_%!12=F_%
J_%!16=6
262364,J_%!24
17,18:
J_%!16
I_%=0
$0I%=
P_(1,"flag = "+
(Q_%)+" : "+R_$+"."+S_$)
100:Q_%+=1
101:Q_%+=1
102:Q_%+=1
:I_%=&C31
V_$,W_%:
X_(&4000)=
0,"Not enough RAM to run !Joiner":
12,12,R_$,Y_%,70,0,&100,"*01"
,,,F%:
100,"No previously split file found on this disc"
7}Z_%=Y_%!20:I%=Y_%+24:
?I%>32:I%+=1:
:I%-=2:?I%=13:a_$=$(Y_%+24):S_$=
b_(a_$,c_%):
41,49,R_$
,,W_%:
R_$="ADFS::0.$"
W_%=&B4000
W_%=&168000
V_$)="/" V_$=
12,12,R_$,Y_%,70,0,&100,"FILETYPE*"
,,,F%:
ATI%=Y_%+32:
?I%>13:I%+=1:
:?I%=13:e_$=$(Y_%+33):C%=f_%:
$C%=e_$ Z_%=C%!4
C%+=8
!C%=0
$C%=e_$
E_(F_%,1,a_$):
I%=J_%+44:
?I%>31:I%+=1:
:?I%=13:g_$=$(J_%+44):
262354,-1,-1:
E_(F_%,1,g_$):
?I%<>
".":I%-=1:
:?I%=13:
8,11,g_$,Z_%:I_%=0:h_%=
:Q_%=100:!i_%=F_%:i_%!4=6:
262350,,i_%:
262340,,i_%:
262353,F_%,i_%!8,i_%!12,i_%!16,i_%!20
j_%=0:c_%=1:k_%=0:
l_%,f$,m_%,n_%,o_%:
]2f$=R_$+"."+S_$:
131080,17,f$
I%,,,,l_%:
I_%=&3C1:
E_(F_%,3,"No more files found"):
E_(F_%,4,
(k_%)+" bytes transferred."):
P_(3,"This disc does not contain "+S_$)=1
:n_%=
q_(l_%):m_%=l_%:
E_(F_%,3,"Adding file "+f$):
E_(F_%,4,
(l_%)+" bytes"):
262343,0,J_%:
262343,0,J_%:
263872:
n_%>=l_%
8,16,f$,Y_%:
13,&C3,g_$
12,1,r_%,Y_%,l_%,j_%
,,,,j_%:
13,0,r_%:r_%=0
13,&C3,f$
13,&C3,g_$
r_%:o_%=0:
m_%>0:
n_%>m_% C%=m_%
C%=n_%
12,3,s_%,Y_%,C%,o_%
,,,,o_%:
12,1,r_%,Y_%,C%,j_%
,,,,j_%:m_%-=C%:
13,0,r_%:r_%=0:
13,0,s_%:s_%=0
263873:
E_(F_%,2,f$):k_%+=l_%:c_%+=1:h_%=
:S_$=
b_(a_$,c_%):
q_(t_%):
:u_%=
X_(t_%):
t_%=t_%
u_%>0:=t_%
E_(F_%,3,"Insert disc with "+S_$):
E_(F_%,4,"or close window to finish"):v_%=
:S%=0:I_%=0:Q_%=110:
Q_%=100:
34,11,1,&58:
34,11,0,&58:
262732,1,0,S%
,,S%,F%:
8 v_%=
w_%=w_% Q_%=100
):I%=
X_(0):
E_(y_%,z_%,
__(27)+g_$):
263872:
8,17,
`_(y_%,A`%)
I%,,,,l%:
X_(l%)=
__(25)
8,16,
`_(y_%,A`%),Y_%:
13,&C3,g_$
12,1,r_%,Y_%,l%,j_%
,,,,j_%:
13,0,r_%:r_%=0:
263873:k_%+=l%:h_%=
E_(y_%,z_%,
(l%)+" "+
__(26)):
b_(a$,c%):=a$+
"00"+
(c%),2)
E_(w%,i%,s$):!i_%=w%:i_%!4=i%:
262350,,i_%:i_%!8=0:i_%!12=0:$(i_%!28)=s$:
262349,,i_%:
H_(w%,i%):!i_%=w%:i_%!4=i%:
262350,,i_%:
262354,w%,i%,,,-1,
$(i_%!28):
`_(w%,i%):!i_%=w%:i_%!4=i%:
262350,,i_%:I%=(i_%!28):
?I%>31:I%+=1:
:?I%=13:=$(i_%!28)
x%,y%:!J_%=F_%:
262347,,J_%:x%=J_%!4-J_%!20:y%=J_%!16-J_%!24:J_%!4=6:
262350,,J_%:!J_%=J_%!8+x%:J_%!4=J_%!12+y%:J_%!8=J_%!16+x%:J_%!12=J_%!20+y%:
271360,%11000101,1,J_%!28,J_%:
271361:
262351,,J_%:J_%!20=J_%!12:J_%!24=J_%!16:J_%!28=!J_%:J_%!32=J_%!4:J_%!&80=F_%:J_%!&84=1:
262350,,J_%+&80:B`$="":I%=J_%!&9C:
?I%>32:B`$+=
(?I%):I%+=1:
:J_%!36=100:J_%!40=Z_%:$(J_%+44)=B`$:!J_%=(
(B`$)+49)
5J_%!12=0:J_%!16=1:
262375,17,J_%,J_%!20,J_%!24:
G_(w%,C`%,D`%,E`%):
F`%,G`%,H`%,I`%,J`%:
53,-1,4
,,F`%:
53,-1,11
,,G`%:G`%=(G`%<<F`%)+D`%:
53,-1,5
,,F`%:
53,-1,12
,,H`%:H`%=(H`%<<F`%)+E`%:!i_%=w%:
262347,,i_%:I`%=i_%!12-i_%!4:J`%=i_%!16-i_%!8:G`%=(G`%-I`%)
`H`%=(H`%-J`%)
2:i_%!4=G`%:i_%!12=G`%+I`%:i_%!8=H`%:i_%!16=H`%+J`%:i_%!28=C`%:
262341,,i_%:
K`(w%):!J_%=w%:
262347,,J_%:J_%!28=-1:
262341,,J_%:
X_(L`%):
262380,M`%+L`%,-1
e%<(M`%+L`%):=
:=e%+&8000
C_(x$,f%):I_%=&C31:
263874:i_%!&80=0:$(i_%+&84)="Error "+
)+": "+x$+
262367,i_%+&80,17,N`%:
s_%>0
#s_%:s_%=0
r_%>0
#r_%:r_%=0
r_%>0
s_%>0
262365,O`%,&4B534154:
P_(P`%,a$):i_%!&80=0:$(i_%+&84)=a$+
262367,i_%+&80,16
P`%,N`%
,I%:=I%
__(Q`%):
p%:p%=R`%:
Q`%>0:
:p%+=1:
?p%<32:p%+=1:Q`%-=1:
:=$p%
8,17,"<Obey$Dir>.DOS_Tran"
F%,,,,L%:
1)<>1
f_% 8:!f_%=0:
8,16,"<Obey$Dir>.DOS_Tran",Y_%:L%+=Y_%:C%=2:
I%=Y_%
?I%=10 ?I%=13
?I%=13 C%+=1
f_% 8*C%:C%=f_%:I%=Y_%:
I%<L%:J%=I%:
:I%+=1:
?I%<33:?I%=13:$C%=$J%:
:I%+=1:
?I%>32:
131105,16,I%
,,C%!4:
?I%<>13:I%+=1:
:I%+=1:C%+=8:
:!C%=0:C%!4=0:C%!8=0:
T` (U`%):
V`% U`%:
262361,,"<Obey$Dir>.templ":
262363,,Y_%,V`%,V`%+U`%,-1,"main",0
,,R%:
262337,,Y_%
262362:
262336,200,&4B534154,"Joiner"
W`%,O`%:
W`%<300
0,"This program requires RISC-OS 3 or better":
J_%&180,i_%&100,N`% 24,X`%&40:s_%=0:r_%=0:$N`%="Joiner":
35,"Obey$Dir",J_%,256,0,3
,,I%:
J_%?I%<>
".":I%-=1:
:J_%?I%=13:R_$=$J_%:
41,49,"<Obey$Dir>"
,,D%:
D%>&800000 d_%=
(-6)d_%=
:R_$="ADFS::0.$"
7JM`%=
-&8000:Y_%=
X_(&4000)=
-1,"Not enough memory to run !Joiner"
T`(&400):
S`:I_%=%110000110001:w_%=4:c_%=1:I%=
X_(0):