home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
426-450
/
apd426
/
insert_disk_ii.amos
/
insert_disk_ii.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1977-12-31
|
3KB
|
161 lines
Fade 3 : Wait 16*3 : Cls 0 : Screen Close 0
Close Editor
Close Workbench
Global T$,U$,NOW
INIT
DISK_SPIN
DISK_WAIT
Fade 1 : Wait 16
While Screen<>-1
Screen Close Screen
Wend
Screen Open 0,320,34,2,Lowres
Curs Off : Flash Off : Cls 0 : Hide On : Colour 1,0
Screen Display 0,,148,,
Paste Bob 55,0,1
Fade 1,0,$F : Wait 16
Run "rave_part.amos"
'
Procedure EXEC[C$]
A$="NIL:"+Chr$(0)
Dreg(1)=Varptr(A$) : Dreg(2)=1004
HAND=Doscall(-30)
If HAND
C$=C$+Chr$(0)
Dreg(1)=Varptr(C$) : Dreg(2)=HAND : Dreg(3)=HAND
F=Doscall(-222)
Dreg(1)=HAND
A=Doscall(-36)
End If
End Proc[F]
Procedure DING
Screen 1
Sam Raw 15,Start(12),1100,16124
Ink 2,0
U=Val(U$)
T=Val(T$)
Dec U
If U<0
U=9
T=Val(T$)
Dec T
End If
U$=Str$(U)
T$=Str$(T)
U$=Right$(U$,1)
T$=Right$(T$,1)
Text 223,61,T$
Text 223,70,U$
NOW=T*10+U
Every On
End Proc
Procedure INIT
Reserve As Data 15,4912
Bload "golden-ages#1:c/mem-clear",15
Bsave "ram:mem-clear",Start(15) To Start(15)+4912
Erase 15
Screen Open 0,320,256,16,Lowres
Curs Off : Flash Off : Cls 0
Palette 0,,,,,,,,,$FFF,$F,$555
Hide
Unpack 6 To 1
Screen To Front 0
Screen 0
Double Buffer
Autoback 0
Extension_4_0054 250
Extension_4_0548
Extension_4_04D6 "GOLDEN-AGES#1:amos_system"
Extension_4_0016 "disk"
End Proc
Procedure DISK_SPIN
Extension_4_0036 1,"disk",0,0,19382,132467,98908,83528
Sam Raw 15,Start(11)+100,37408,8700
For N=1 To 100
Extension_4_018C 1,-1000,-1000,-1000
Extension_4_0100 0,188
Wait Vbl
Extension_4_053C
Extension_4_0318
Screen Swap
Next N
End Proc
Procedure DISK_WAIT
Screen To Front 1
Wait Vbl
Wait Vbl
Sam Raw 9,Start(13)+150,6814,11000
Wait 5
Sam Raw 6,Start(13)+150,6814,11000
Wait 40
Sam Raw 9,Start(10)+150,42630,10000
Wait 5
Sam Raw 6,Start(10)+150,42630,10000
Screen 1
Ink 2,0
Wait 130
Text 223,61,"2"
Text 223,70,"0"
Wait 70
Timer=0
T$="2"
U$="0"
NOW=20
Erase 10
Erase 11
Erase 13
EXEC["RUN >NIL: <NIL: ram:mem-clear"]
Every 50 Proc DING
Repeat
If Timer=>1050
Every Off
Text 223,61,"0"
Text 223,70,"0"
Repeat
If NOW=0
Wait 50
OK
SCREECH
Pop Proc
End If
Until Exist("golden-ages#2:")
End If
If Exist("golden-ages#2:")
Dir$="golden-ages#2:"
Every Off
OK
Pop Proc
End If
Until Mouse Click
Every Off
End Proc
Procedure OK
Screen Close 1
For N=1 To 100
Extension_4_018C 1,1000,1000,1000
Extension_4_0100 0,-188
Wait Vbl
Extension_4_053C
Extension_4_0318
Screen Swap
Next N
Extension_4_057C
End Proc
Procedure SCREECH
Screen Open 0,320,256,2,Lowres
Cls 0
Text 90,120,"YOU WERE WARNED !!!"
Flash 1,"(00f,1)(00a,1)(007,1)(004,1)(007,1)(00a,1)"
Wait 50
Fade 5,0,0
Wait 15*5
Cls 0
Flash Off
Noise To 15
Flash 0,"(f54,1)(618,1)(739,1)(f86,1)(ff9,1)(fff,1)(ff0,1)(f0f,1)"
Timer=0
Do
Play 15,Rnd(10)+86,1
Exit If Timer>10000
Loop
End Proc