home *** CD-ROM | disk | FTP | other *** search
Wrap
AMOS Source Code | 1990-04-08 | 10.7 KB | 416 lines
ST MAIN FINAL Procedure ST Hide Music 1 'break off Screen Close 0 : Rem delete befor compiling! End Proc Procedure MAIN Unpack 7 To 1 Screen Hide 1 Unpack 7 To 0 Palette $0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0 Screen 0 Fade 5 To 1 Wait 75 Screen Open 1,620,150,4,Hires Screen Display 1,,120,, Flash Off Curs Off Paper 0 Cls Palette $0,$FFF,$F80,$FFF Flash 3,"(fff,5)(000,5)" Set Rainbow 0,1,32,"","","" Rainbow 0,0,119,150 For Q=1 To 32 Read CL Rain(0,Q-1)=CL Next Q Dim C(8) C(1)=%0 C(2)=%11000 C(3)=%111100 C(4)=%1111110 C(5)=%111100 C(6)=%11000 C(7)=%0 C(8)=%0 Curs Pen 3 Set Curs C(1),C(2),C(3),C(4),C(5),C(6),C(7),C(8) Curs On Data $0,$0,$100,$200,$300,$400,$500,$600,$700,$800,$900,$A00,$B00,$C00,$D00,$E00,$F00,$F00,$E00,$D00,$C00,$B00,$A00,$900,$800,$700,$600,$500,$400,$300,$200,$100 Set Rainbow 1,0,16,"","","" Set Rainbow 2,0,16,"","","" Rainbow 1,0,100,16 Rainbow 2,0,270,16 For Q=0 To 15 Read C Rain(1,Q)=C Rain(2,Q)=C View Wait Vbl Next Q Data $2,$4,$116,$448,$77A,$AAC,$DDE,$FFF,$EDD,$CAA,$A77,$844,$611,$400,$200 Data $0 A$="Loop: For R0=0 To 31 ; Let X=R0 ; Pause ; Next R0 ; Jump Loop " Channel 1 To Rainbow 0 Amal 1,A$ Amal On 1 Pen 1 ' | | Print "***************************************************************************" Print "* "; Pen 2 Print " Sin/Cos Bank Maker V1 By Yazoo of Bitmap!! "; Pen 1 Print " *" Print "***************************************************************************" Pen 2 Print Print " Type COMMAND for a list in commands!! " Print Pen 1 Print " Type News for urgent news!!" Print Pen 2 On Error Goto ERR MAIN: Input ">";CM$ CM$=Lower$(CM$) If CM$="" Then Goto MAIN If CM$="command" Then Goto COMMAND If CM$="quit" Then Goto Q If CM$="about" Then Goto ABOUT If CM$="credits" Then Goto CRED If CM$="start" Then Goto STAT If CM$="info" Then Goto INFO If CM$="news" Then Goto NWS If CM$="notes" Then Goto NO If CM$="bitmap" Then Goto BIT Pen 1 Print Print " Error - Command not understood, type 'Command' for a list off commands!" Print Pen 2 Goto MAIN COMMAND: Pen 1 Print Print " Here is a list off all commands!! " Print Pen 2 Print " Command - This list." Print " Quit - Quit the progie." Print " About - About!" Print " Credits - Credits." Print " Start - Start Sin/Cos maker!" Print " Info - Infomation on how to use this util!" Print " News - BP is dead BITMAP is here, read this!!" Print " Notes - Some Release notes." Print " Bitmap - Member List." Print Pen 2 Goto MAIN Q: Pen 1 Print Print " Are you shure you want to quit?" Pen 2 QQ: Print Print " Enter 'Yes' of 'No'." Print Input " Quit?>";CM$ CM$=Lower$(CM$) If CM$="yes" Then Goto DN If CM$="no" Then Print : Goto MAIN Goto QQ DN: Print Cls Print " (C) Bitmap 1991" Print Print " This progie is >> PRODUCT WARE << and is P.D." Print Print " Watch out for more Bitmap Products!! " Print Print " Product Ware:" Print Print " If you use this, send us ya product, which uses the bank creator," Print " and please greet us, and say you use our bank!" Print Print " Bye!!" Wait 200 Pop Proc ABOUT: Pen 1 Print "***************************************************************************" Print "* "; Pen 2 Print " Sin/Cos Bank Maker V1 By Yazoo of Bitmap!! "; Pen 1 Print " *" Print "***************************************************************************" Pen 2 Print Print " This program was made to help AMOS users, who need the extra speed" Print " In their games/utils/demos. If your program needs to use the command 'SIN'" Print " or 'COS' then this progie realy would improve the speed, you also would" Print " the need for the 'Maths.Libary' to be on the disk." Print " as long as you don't use any other maths stuff!! " Print Print " Greets to: Syntex, Fanatix, Robots, Hannsis 5, Amos P.D. and all AMOS fans!" Print Print " Conact me for swapping AMOS stuff and/or P.D. stuff, my address is... " Print " 104 London Road, Stanway, Colchester, Essex, CO3 5HD, England!! " Print " or phone (0206) 549835." Print Goto MAIN CRED: Pen 2 Print Print " Here are the Credits..." Print Print " Code & GFX & Idea :"; Pen 1 Print "YAZOO of BITMAP!" Print Pen 2 Print " Music :"; Pen 1 Print "From the AMAZE Music disk." Print Pen 2 Goto MAIN STAT: Cls Pen 1 Print "Sin/Cos Bank maker is now active, follow all on screen prompts!" Print "O.K. Here we go..." Print Wait 75 Cls Print "* Genarting Bank - Please Wait *" Reserve As Work 10,7200 Print Pen 2 Print " Genarating "; Pen 1 Print "SINE" Degree For Q#=1 To 360 Step 0.1 NUM=Sin(Q#)*100+100 Poke(Start(10)+(Q#*10)),NUM Next Q# Print Pen 2 Print " Genarating "; Pen 1 Print "COSINE" For Q#=1 To 360 Step 0.1 NUM=Cos(Q#)*100+100 Poke(Start(10)+(Q#*10)+3600),NUM Next Q# Poke(Start(10)-8),Asc("B") Poke(Start(10)-7),Asc("I") Poke(Start(10)-6),Asc("T") Poke(Start(10)-5),Asc("M") Poke(Start(10)-4),Asc("A") Poke(Start(10)-3),Asc("P") Poke(Start(10)-2),Asc("9") Poke(Start(10)-1),Asc("1") Print Pen 2 Print " Bank Made!!" Print Print " Make sure disk is "; Pen 1 : Print "Write Enabled"; Pen 2 : Print " or an error will occur!" Print " Type 'Cancel' to cancel operation!" AG: Input " Please enter a name For the bank to be saved as :";NME$ If Lower$(NME$)="cancel" Then Goto FS If NME$="" Then Goto AG If Exist(NME$) Then Goto EXI SA: Save NME$,10 Erase 10 Goto MAIN EXI: Print Pen 1 Print " FILE EXISIS!" Pen 2 Print Print " Do you want me to over write?" Print HRE: Input " Over Write? (Yes/No) ";OVR$ Print OVR$=Lower$(OVR$) If OVR$="" Then Goto HRE If OVR$="yes" Then Goto SA If OVR$="no" Then Goto AG Goto HRE FS: Erase 10 Print Pen 1 Print " Operation Canceled!" Print Pen 2 Goto MAIN ERR: Pen 1 Print Print " A Error has occured, Task held." Print Print "Aborting Programme, Please Re Run!!" Print Print "Press CTRL and C to stop!" Pen 2 Do Loop Resume Goto MAIN INFO: Pen 1 Print " * How to use this utility in YOUR amos progs *" Pen 2 Print "Well it is very easy, in stead off using sine, you use the 'PEEK' command" Print "in the following format.." Print Print " X=PEEK(Start(Y)+OFF) " Print Print "Where X is the varible you want to load the result into." Print "Y is the bank number of the SIN/COS back (Called 'BITMAP91')." Print "OFF is the number you would put in the bracket when using SIN/COS" Print "while you would be on 'Degee' mode instead of 'Radian'." Print "Here is a example..." Print " X=Sin(90.5)" Print " Would Become" Print " X=Peek(Start(Y)+905)" Print "That would be for SIN * ONLY *" Print "To use COS you would use X=Peek(Start(Y)+905+3601)" Print "As the COS numbers are stored 3601 bytes further on in the bank!" Pen 1 Print "Press a Key to contine..."; Do K$=Inkey$ If Scancode<>0 Then Exit Loop Print Print "A Program to plot a circle, where the Bank number is 10." Print Pen 2 Print "For I=1 to 3600" Print " X=Peek(Start(10)+I) : Rem Get SIN Varible from Bank 10." Print " Y=Peek(Start(10)+I+3601) : Rem Get COS Varible from Bank 10" Print " Plot X,Y" Print "Next I" Print Print "Easy No??" Print "Dont forget to make a screen etc!" Print "Well thats it, if you have problems, write to me at the address in" Print "the 'About' bit!! (Just type About!)" Print " NOTE: If you want the same result as SIN/COS would give then" Print "Minus 100 from the number you get and divide it by 100." Print "If you dont, you will get a possitive number from ) to 200." Print "That could be the only hard bit 'bout this progie!" Pen 1 Print "Enjoy this prod, and write me if ya any problems!!" Pen 2 Goto MAIN NWS: Pen 1 Print Print "*** BITMAP NEWS ***" Print "-------------------" Print Pen 2 Print " Bitmaped Productions is *"; Pen 1 Print "DEAD"; Pen 2 Print "*" Print Pen 1 Print " BITMAP"; Pen 2 Print " is "; Pen 1 Print "BORN"; Pen 2 Print "!" Print Print " In other words, Bitmaped Productions are now called BITMAP!" Print " All the same members, so now greet us at BITMAP!!" Print Goto MAIN NO: Pen 1 Print Print "****** ******* ******* ****** ***** ***** " Print "*** * *** *** *** * * *** * *** *" Print "******* *** *** *** * * ****** ******" Print "*** * *** *** *** * *** * ***" Print "****** ******* *** *** * *** * ***" Print Print " Presents" Print Print " *** SIN/COS BANK GENARATOR ***" Print Print "Release Notes..." Pen 2 Print Print " V1: This is the first Ganarator, off many!" Print " The error routine is not working properly! which" Print " means if a disk is write protected and you select cancel" Print " you will have to re-run the programme! Sorry!!" Print " If you find any bugs, write to me! CU L8R M8!!" Pen 2 Goto MAIN BIT: Pen 1 Print " ** Bitmap Member List... **" Pen 2 Print Print "Yazoo - Code, Graphics (YZO)" Print "Mercury - Graphics (Learning AMOS) (MCY)" Print "K-Tel - (??) (KTL)" Print Goto MAIN End Proc Procedure FINAL Flash Off For Q=0 To 15 Rain(1,Q)=0 Rain(2,Q)=0 View Wait Vbl Next Q Rainbow Del Fade 1 Screen 1 Wait 15 For Q=63 To 0 Step -1 Volume Q Wait 1 Next Q Music Off Volume 63 Screen 0 Fade 5 Wait 75 Screen Close 1 Screen Close 0 End Proc Procedure MESSY NOE$=" ** Sin,Cos Bank maker! ** From BITMAP 1991, Code, Gfx, Idea : Yazoo Music: AMAZE!" BOLLOX$="OI! WHAT ARE YOU DOING??? Are you fucking with my code???" BOLLOX$=BOLLOX$+" Just fuck off o.k.???" BOLLOX$=BOLLOX$+" ALL THIS CODE IS (C) BITMAP 1991, If you so much as change a byte, you are liable for prosicution!!! So FUCK on that!" End Proc