home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-03-06 | 2.1 KB | 81 lines |
- '----------------------------------------------------------------------------
- '
- ' AMOS Procedure UnLocker, by Gary Symons, AMOS 1.2 and over ONLY!
- '
- '----------------------------------------------------------------------------
- 'This program must be put at the beginning of programs with locked
- 'procedures and run.When finished delete this bit from your program
- 'and it will work as before with procedures unlocked.
- 'This program must not be run as an accessory!
- '----------------------------------------------------------------------------
- '
- '
- ' This has proved to be one of the most useful routines I've ever come across
- ' in a long time. How many listings have ya seen that cannot be read via your
- ' Amos Interpreter? Quite a few. Ya know, the Procs can't be unfolded and you
- ' really wanted to know how it was written etc.
- '
- ' Well, now you can. It's easy.
- '
- ' Just merge a locked proggy listing after the gumf below and run.
- '
- ' Then delete all this gumf and Hey Prsto! (poof) you can now open up all
- ' those procs! I've even been able to make demo versions of code into the
- ' full release using this (No I won't tell you which proggies!!!)
- '
- ' Enjoy .... AG for Az March 1996
- '
- ' PS Works fine with my copy of Amos Pro V2 running on HD and A1200 :^)
- '
- '
- '
- Default Palette 0,0,$FFF,0
- Screen Open 7,640,72,4,Hires : Curs Off
- Screen Display 7,,100,,
- Centre At(,2)+Border$(" AMOS Procedures Unlocker ",1)
- Locate 0,5
- '
- If Areg(3)=0
- Centre "Sorry! I only work with AMOS 1.2 and over!"
- BYEBYE
- End If
- '
- If Dreg(0)<>0
- Centre "You must not call me as an accessory!"
- BYEBYE
- End If
- '
- UNLOCKIT
- BYEBYE
- End
- '
- Procedure UNLOCKIT
- AD=Areg(3)
- TKPROC=$376
- Do
- L=Peek(AD)*2
- Exit If L=0
- If Deek(AD+2)=TKPROC
- P=Deek(AD+10)
- If Btst(15,P)
- Doke AD+10,0
- Inc TT
- End If
- End If
- AD=AD+L
- Loop
- If TT
- A$="I have unlocked"+Str$(TT)+" procedure"
- If TT>1 : A$=A$+"s" : End If
- A$=A$+"."
- Else
- A$="No procedures to unlock!"
- End If
- Centre A$
- End Proc
- '
- Procedure BYEBYE
- Print : Print
- Centre "Press any key"
- Wait Key : Screen Close 7 : Edit
- End Proc