home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
utils
/
eaissue3b.lha
/
Source_Code
/
JC_Bank_Squasher.AMOS
/
JC_Bank_Squasher.amosSourceCode
Wrap
AMOS Source Code
|
1995-12-30
|
1KB
|
36 lines
'
THE_SQUASHER_BY_JASON_CHAN
'
' � JAN 1992 BAMBOO SOFTWARE
'
Procedure THE_SQUASHER_BY_JASON_CHAN
JC_SQ
Centre "CLICK LEFT MOUSE BUTTON" : Print
Repeat
Bell 30 : Wait 10 : Bell 40 : Wait 10
Until Mouse Click=1
End Proc
Procedure JC_SQ
For I=1 To 15
Erase I
Next
Curs Off : Cls 0 : Paper 0
F$=Fsel$("","","Pick A Bank To Squash")
If F$="" Then Pop Proc
Load F$
List Bank : Print
Input "BANK : ";BNK : If BNK<1 Then Pop Proc
Input "MODE (Slow=0/Fast=-1) : ";MO : If MO<-1 or MO>0 Then MO=-1
Input "SPEED (257-4095) : ";SPD : If SPD<257 or SPD>4095 Then SPD=1024
Centre "SQUASHING ....." : Print : Curs Off
S= Extension_5_00CE(Start(BNK),Length(BNK),MO,SPD,17)
If S<0 Then Print "ABORTED ...." : Pop Proc
Centre "FINISHED !! Squashed Bank Size :"+Str$(S) : Print
Print : Centre "CLICK LEFT MOUSE BUTTON" : Print
Repeat
Bell 30 : Wait 10 : Bell 40 : Wait 10
Until Mouse Click=1
F$=Fsel$("","","Save Squashed Bank")
Bsave F$,Start(BNK) To Start(BNK)+Length(BNK)
End Proc