home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1997
/
ARCHIVE_97.iso
/
discs
/
mag_discs
/
volume_03
/
issue02
/
vol3no1
/
ARMADILLO
< prev
next >
Wrap
Text File
|
1989-10-02
|
4KB
|
115 lines
*BASIC
LOAD"$.RESOURCES.ADIT.ADIT"
*ACCESS $.RESOURCES.ADIT.ADIT WR
*RENAME $.RESOURCES.ADIT.ADIT $.RESOURCES.ADIT.AditORIGIN
65 REM UPDATE 25/7/89 BY Stuart Halliday
72 PROCfindcurrentdrive
73 c_d1%=c_d%:c_d1$="floppy drive :"+STR$c_d1%
74 *DIR $
310 WHEN 0 : PROCTitle("SelectEntry") : PROCSelectEntry
320 WHEN 1 : PROCTitle("LoadAFile") : PROCLoadAFile
330 WHEN 2 : PROCTitle("ChangeSpeed") : PROCChangeSpeed
340 WHEN 16: PROCPlayPortion
350 WHEN 4 : PROCTitle("Normalise"):FOR Z=1 TO 1E4:NEXT:PROCNormalise
360 WHEN 5 : PROCTitle("NewVolume") : PROCNewVolume
370 WHEN 6 : PROCTitle("SaveAFile") : PROCSaveAFile
380 WHEN 7 : PROCTitle("RenameEntry") : PROCRenameEntry
390 WHEN 8 : PROCTitle("ArthurPrompt") : PROCArthurPrompt
400 WHEN 9 : PROCTitle("GainSample") : PROCGainSample
410 WHEN 10 : PROCTitle("Reverse") : PROCReverse
420 WHEN 11 : PROCTitle("Delete") : PROCDelete
430 WHEN 12 : PROCTitle("Insert") : PROCInsert
440 WHEN 13 : PROCTitle("PROCCopy") : PROCCopy
450 WHEN 14 : PROCTitle("MergeSamples") : PROCMergeSamples
460 WHEN 17 : PROCStopPlaying
470 WHEN 3 : PROCTitle("Sampler") : PROCSampler
480 WHEN 15 : PROCEcho
490 WHEN 18 : PROCScrollLeft
500 WHEN 19 : PROCScrollRight
510 WHEN 20 : PROCTitle("Mark1") : PROCMark1
520 WHEN 21 : PROCTitle("Insert") : PROCInsertNull
530 WHEN 22 : PROCTitle("RemoveSample") : PROCRemoveEntry
540 WHEN 23 : PROCNewScale
550 WHEN 24 : PROCTitle("Mark2") : PROCMark2
575 WHEN 27 : PROCchangedrive
665 PROCtrap_errors
1005 PROCAddBox2("Drive_"+STR$c_d%,572,960-128)
1135 OSCLI"DRIVE "+STR$c_d1%:*MOUNT
3440 WAIT : LINE ScrL+P%,ScrB,ScrL+P%,ScrB+512
3445 LINE ScrL+P%-4,ScrB+260,ScrL+P%+4,ScrB+260:GCOL0,Fore1
7295 OSCLI"MOUNT"
7305 PROCDrawGraph
7605 PROCDrawGraph
14060 DEFPROCtrap_errors
14070 err=&0000FF AND ERR
14080 CASE err OF
14090 WHEN &BD OR &C3 : PROCunlockfile : REM FILE LOCKED
14100 WHEN &9A :PROCchangedisc("The disc in "+c_d$+" is not ADFS!")
14110 WHEN &A9 OR &A8 :PROCchangedisc("The disc is damaged in some way.")
14120 WHEN &B3 :PROCchangedisc("The current directory is full.")
14130 WHEN &C6 : PROCnewdisc : REM DISC FULL
14140 WHEN &D3 : PROCMSG(c_d$+" is empty place a disc in it!"):A$=GET$
14145 WHEN &D6 : PROCMSG("The Master disc is missing, place it in "+c_d1$+"press 'SPACE KEY' to continue."):A$=GET$:*MOUNT
14150 WHEN &99 OR &98 PROCcompactdisc
14160 WHEN &C9 : PROCMSG("Take the WRITE PROTECT TAB off the disc, press 'SPACE KEY' to continue."):A$=GET$:REM WRITE PROTECT TAB IS ON
14170 ENDCASE
14180 ENDPROC
14190 :
14210 DEFPROCnewdisc
14220 CLOSE#H%:OSCLI"DELETE "+N$
14230 PROCchangedisc("This disc is full.")
14240 ENDPROC
14250 :
14260 DEFPROCchangedisc(A$)
14270 PROCMSG(A$+"Do you wish to change it?")
14280 A$=GET$
14290 IF A$="Y" OR A$="y" THEN
14300 PROCMSG("Insert new disc in "+c_d$+" and press 'SPACE KEY' to continue.")
14310 A$=GET$
14320 PROCMSG("IF YOU WISH TO FORMAT THIS DISC PRESS '#' KEY OTHERWISE ANY KEY")
14330 A$=GET$
14340 PROCClear(0)
14350 ENDIF
14360 IF A$="#" OSCLI"FORMAT "+STR$c_d%+" D Y"
14370 *MOUNT
14380 ENDPROC
14390 :
14400 DEFPROCcompactdisc
14410 PROCMSG("COMPACTING DISC")
14420 $scratch=STR$c_d%+CHR$0
14430 REPEAT
14440 SYS"ADFS_FreeSpace",scratch TO R0,R1
14450 *COMPACT
14460 UNTIL R0=R1
14470 ENDPROC
14480 :
14490 DEFPROCunlockfile
14500 PROCMSG("THIS FILE IS LOCKED, UNLOCKING FILE...")
14510 X$=INKEY$(100)
14520 OSCLI("ACCESS "+N$+" WR")
14530 PROCMSG("FILE IS UNLOCKED. TRY RE-SAVING IT!"):X$=INKEY$(200)
14540 ENDPROC
14550 :
14560 DEFPROCfindcurrentdrive
14570 SYS"ADFS_Drives" TO c_d%,mx_f%,mx_h%
14580 IF c_d%<4 c_d$="floppy drive :"+STR$c_d% ELSE c_d$="hard drive :"+
STR$c_d%
14590 mx_d%=mx_f%-1
14600 ENDPROC
14610 :
14620 DEFPROCselectdrive(c_d%)
14630 OSCLI"DRIVE "+STR$c_d%
14640 *MOUNT
14650 ENDPROC
14660 :
14670 DEFPROCchangedrive
14680 c_d% +=1
14690 IF c_d%>mx_d% LET c_d%=0
14700 IF c_d%<4 LET c_d$="floppy drive :"+STR$c_d% ELSE c_d$="hard drive :"+STR$c_d%
14710 B$(27)="Drive_"+STR$c_d%
14720 PROCDrawBoxes2(27)
14730 OSCLI"DRIVE "+STR$c_d%
14740 PROCClearPendingMouse
14750 ENDPROC
SAVE"$.RESOURCES.ADIT.ADIT"