home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd519
/
loader
/
loader.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1992-01-28
|
6KB
|
255 lines
Global PROG$
Procedure TEST_MODE
Close Workbench
Close Editor
If Ntsc
Screen Open 0,640,200,2,Hires
Palette 0,$FFF
Curs Off
Hide On
Cls 0
Centre "<<< HELP ME, PLEASE !!! >>>"
Cmove 0,3
Centre "I'm trying to be nice to you so we can be good friends and all, but"
Cdown
Centre "I'm having a little trouble. You see, I've just been bitten by the NTSC"
Cdown
Centre "boot-up bug, and I'm feeling less than my usual self. But if you would be"
Cdown
Centre "so kind as to reset me, I'm sure we can still be great PALs !!!"
Cmove 0,2
Centre "...Smash a key to continue..."
Wait Key
System
End If
End Proc
Procedure MENU
Erase 7
Load "pix/menu.pak",8
Unpack 8 To 0
Erase 8
Screen Display 0,,-256,,
For I=-256 To 40 Step 10
Screen Display 0,,I,,
Wait Vbl
Next I
For I=1 To 3
For J=40 To 50 Step 2
Screen Display 0,,J,,
Wait Vbl
Next J
For J=50 To 40 Step -2
Screen Display 0,,J,,
Wait Vbl
Next J
Next I
Change Mouse 2
Show On
Reserve Zone 2
Set Zone 1,6,33 To 91,133
Set Zone 2,229,33 To 314,133
Repeat
If Asc(Inkey$)=27
Fade 15
Wait 75
System
End If
If Mouse Key=1
If Mouse Zone=1
PROG$="intro"
End If
If Mouse Zone=2
PROG$="lottomagic"
End If
End If
If Mouse Key=2
If Mouse Zone=1
_ASCIIREADER["pre-driver.doc"]
End If
If Mouse Zone=2
_ASCIIREADER["lottomagic.doc"]
End If
End If
Until PROG$<>""
Fade 5
Wait 75
End Proc
Procedure TESTMEM
If(Chip Free+Fast Free)<512000
Load "pix/1meg.pak"
Unpack 7 To 0
Hide On
Repeat
Until Mouse Key
System
End If
End Proc
Procedure _ASCIIREADER[FILE$]
Screen Open 1,640,256,2,Hires
Screen Display 1,,320,,
Palette $4F,$FFF
Curs Off
Cls 0
Centre ".....Reading Documentation....."
Print
Open In 1,FILE$
Set Input 10,-1
TLINES=Lof(1)
For I=0 To 128 Step 2
Screen Display 1,,128-I+40,,I*2
Wait Vbl
Next I
Repeat
LINESGOT=0
FEND=False
While FEND<>True and LINESGOT<>24
If Pof(1)<>TLINES
Line Input #1,TXT$
Print TXT$
Inc LINESGOT
Else
FEND=True
End If
Wend
If LINESGOT=24
Print
Print
Print
Print "<<< Hit a key to continue >>>";
Cmove 20,
Print "<<< or Q to Quit document >>>";
Repeat
X$=Inkey$
Until Asc(X$)<>0
If Asc(Upper$(X$))=81
LINESGOT=0
End If
Cline
Print
Cmove 0,-4
Cline
Else
Print
Print "<<< End of document >>>"
Wait Key
End If
Until LINESGOT<>24
For I=128 To 0 Step -2
Screen Display 1,,128-I+40,,I*2
Wait Vbl
Next I
Screen Close 1
Close 1
End Proc
Procedure LETS_GO
'
'----------------------------------------------------------------------------
' Loader V1.22 by THE HITMAN/Karma Productions
' Beware of cheap imitations !!
'----------------------------------------------------------------------------
'
' Original *** comments by The Hitman
'
' Additional ~~~ comments by Golden Fleece
'
'
'
'
' ***Let's free up all that juicy memory***
'
' ~~~ Lets tidy up around here. Get all that junk off my desk!!! ~~~
'
While Screen<>-1
Screen Close Screen
Wend
Close Workbench
Close Editor
'
' ***Be an honest programmer...give the credit where it's due***
'
' ~~~ But who programmed this anyway??? ~~~
'
Unpack 6 To 0
Erase 6
Hide On
Curs Off
'
' ***It ain't by Queen, but it'll do***
'
' ~~~ Here the sounds of music and it ain't Popcorn either ~~~
'
Load "fx/loadermusic.abk"
Music 1
'
'
' ***"Use the Force, Luke." commanded Obi Wan's ghost***
'
' ~~~ Lets see what we've got here, soon anyway ~~~
'
Unpack 5 To 1
Screen To Back 1
Erase 5
'
' ~~~ Times it perfectly ~~~
'
S=Vumeter(0)
Repeat
S=Vumeter(0)
Until S=>55
Screen Hide 0
Screen Close 0
'
' ***Use Shift Up. It involves less typing than Shift Down (2 Chars)***
'
Shift Up 5,1,31,1
'
' ***"In time !" hissed Beelzebub to the priest***
'
' ~~~ Time waits for no man (or woman either) ~~~
'
Wait 250
'
' ***Aaargh. Golden Fleece makes an appearance***
'
' ~~~ Sorry to disappoint you but I can't make it ~~~
'
Paper 0 : Pen 1
Locate ,30
'
' ***Shmack dat thang***
'
' ~~~ Hit me. (Sorry no Samboy chips available here) ~~
'
Centre " Smash a key or a button "
'
' ***Yawn***
'
' ~~~ Hit something to continue (watch out for the screen!!!) ~~~
'
Repeat
' Do you think this takes in everything ???? -G.F.
' Hell no !!! -H.M.
Until Mouse Key or Asc(Inkey$)<>0 or Fire(1)<>0 or Fire(0)<>0
Cline
'
' ***Turn off that music***
'
' ~~~ Fade away, fade away, fade away... ~~~
'
For I=63 To 0 Step -1
Mvolume I
Wait 3
Next I
Music Off
Mvolume 63
'
' ***Wow, are we gonna do something exciting now***
'
' ~~~ Well we certainly hope so but what could improve on the above ~~~
'
Run "df0:"+PROG$
End Proc
TEST_MODE
TESTMEM
MENU
LETS_GO