home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1991-03-14 | 3.6 KB | 139 lines |
- '
- ' This program is more of a utility than a programming exercise
- '
- ' See line 37 onwards to set up your menu.
- '
- '
- '
- '
- '
- Change Mouse 2
- Colour Back $355
- Screen Open 0,640,256,8,Hires : Curs Off : Cls 0
- Unpack 10 To 0
- PLACE=0
- Restore 100
- Repeat
- Read PRG$,WTL$
- If PRG$="End Of Program List"
- Goto SELECT
- End If
- Inc PLACE
- If PLACE=1 Then Ink 1,0,0 : Text 65,146,PRG$
- If PLACE=2 Then Ink 1,0,0 : Text 65,165,PRG$
- If PLACE=3 Then Ink 1,0,0 : Text 65,184,PRG$
- If PLACE=4 Then Ink 1,0,0 : Text 65,203,PRG$
- If PLACE=5 Then Ink 1,0,0 : Text 228,146,PRG$
- If PLACE=6 Then Ink 1,0,0 : Text 228,165,PRG$
- If PLACE=7 Then Ink 1,0,0 : Text 228,184,PRG$
- If PLACE=8 Then Ink 1,0,0 : Text 228,203,PRG$
- If PLACE=9 Then Ink 1,0,0 : Text 395,146,PRG$
- If PLACE=10 Then Ink 1,0,0 : Text 395,165,PRG$
- If PLACE=11 Then Ink 1,0,0 : Text 395,184,PRG$
- If PLACE=12 Then Ink 1,0,0 : Text 395,203,PRG$
- Until PLACE=12
- PROGRAMS:
- '
- ' This is where the programs are stored.
- '
- ' The 1st set of quotes contain the name of the demo as it
- ' appears ON THE MENU.
- ' The 2nd set contains the program to execute.
- ' in the example below, 'Scrolling Demo' will appear on the menu
- ' and if chosen,the program will load 'scroller.amos'
- '
- ' Note that if you run a program from this menu, any banks you saved
- ' with the program will be ignored. you will have to load them from
- ' within your program.(This is not my fault, it'ssomething to do with AMOS)
- '
- ' Once you have set everything, save it on your RAMOS disk
- ' as 'Autoexec.amos' and boot from it-it should work.
- ' If it doesn't check - Is it Installed ?, Is Ramos On the disk?
- ' is the run name(2nd set of quotes) ok ? (I had one once that had
- ' a space before the end of the quotes-it took me ages to spot it.)
- 100 Data "Scrolling Demo","Scroller.amos"
- 200 Data " "," "
- 300 Data " "," "
- 400 Data " "," "
- 500 Data " "," "
- 600 Data " "," "
- 700 Data " "," "
- 800 Data " "," "
- 900 Data " "," "
- 1000 Data " "," "
- 1100 Data " "," "
- 1200 Data " "," "
- Data "End Of Program List","End"
- Reserve Zone 12
- Set Zone 1,54,135 To 214,153
- Set Zone 2,54,154 To 214,171
- Set Zone 3,54,173 To 214,190
- Set Zone 4,54,192 To 214,208
- Set Zone 5,216,135 To 378,153
- Set Zone 6,216,154 To 378,171
- Set Zone 7,216,173 To 378,190
- Set Zone 8,216,192 To 378,208
- Set Zone 9,318,135 To 542,153
- Set Zone 10,382,154 To 542,171
- Set Zone 11,382,173 To 542,190
- Set Zone 12,382,192 To 542,208
- Limit Mouse 155,175 To 400,248
- SELECT:
- If Mouse Zone=1 and Mouse Key=1
- Restore 100 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=2 and Mouse Key=1
- Restore 200 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=3 and Mouse Key=1
- Restore 300 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=4 and Mouse Key=1
- Restore 400 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=5 and Mouse Key=1
- Restore 500 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=6 and Mouse Key=1
- Restore 600 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=7 and Mouse Key=1
- Restore 700 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=8 and Mouse Key=1
- Restore 800 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=9 and Mouse Key=1
- Restore 900 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=10 and Mouse Key=1
- Restore 1000 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=11 and Mouse Key=1
- Restore 1100 : Read PRG$,RN$
- Goto FINISHED
- End If
- If Mouse Zone=12 and Mouse Key=1
- Restore 1200 : Read PRG$,RN$
- Goto FINISHED
- End If
- Goto SELECT
- End
- FINISHED:
- If RN$=" "
- Goto SELECT
- End If
- Bell
- Fade 1 : Wait 15 : Limit Mouse : Screen Close 0
- Colour Back 0
- Run RN$