______________________________________________________________________________ .............................................................................. ...................................................................2222222.... ................................................................22222222220... ...................................................222........222222.....222.. ..............................................2202222222222..22000............ ..................................22000.....20222222222200000200002........... .................................2002202...2222200222.220000000200000000022... ....................220002......22222200..2200002.......2200000...20000000000. ....................22222202....2220000022200000..........200002........200000 .....200000.........2222200000222200220000000002..........200002........20000. .....00222202........2220022000000002200002000002........2000002000020000000.. ....2222200000.......220002200000002.2000000000000222222000000..2000000002.... ....220000200002......20000..200002..220000200000000000000002.......22........ ...2220002.2200002....220002...22.....200002..0000000000002................... ...220000..222000002...20000..........200000......2222........................ ...000000000000000000..200000..........00002.................................. ..220000000022020000002.200002.........22.......______________________________ ..0000002........2000000220022.................| .200000............2002........................| JVP-NoKids Extension .200002........................................| for AMOS Pro v1.0+ 220002.........................................|______________________________ ______________________________________________________________________________ Welcome to the JVP-NoKids Extension for AMOS Pro..... (Sorry for my bad English) This Extension is "MailWare", please send me a mail if you use it and maybe tell me what you'd like to see included.... ----------------------------------------------------------------------------- You can contact me by snail-mail: Jens Vang Petersen Nyvej 8 DK-4450 Jyderup Danmark Or E-mail: top_cat@post8.tele.dk ----------------------------------------------------------------------------- Ohh just a quick one, I hate writing manuals, so this will have to do, if anyone outthere loves to write, then feel free to improve this doc.. - I am a programer, not a bookauthor - /-----------------------------------------------------------------------------\ | Why another extension ??? | \-----------------------------------------------------------------------------/ Good question, I made a music-database recently and gave it to a friend of mine, well, when I should demonstrate it on his A2000, I happend to click on the sortfunction with more than 2000 posts in.. Yack, Boy was that slow, anyway I needed a quick sort-routine that also should be customiseable to the stupidious limit... That's how it started out, I've later added some extra commands I needed when programing large serious programs. Oh yes, I promise that this won't be an extension wich include Disk-commands and PT-replayer, there are enough of them allready. NOTE: None of the commands in this extension is dedicated to the beginner in AMOS, they are almost all very easy to foul up with. Please read the folowing very carefully before using the commands, and remember to save you work often. /-----------------------------------------------------------------------------\ | How to install ??? | \-----------------------------------------------------------------------------/ Well, if you're a experienced AMOS-user, then I need not to tell you how to install extensions onto your system. If you're not, then I don't think this extension will be usefull to you.. Just plain and simple: The extension is supposed to be at slot nr. 25.. (Feel free to recompile the source-code with another number..) /-----------------------------------------------------------------------------\ | What happens when ?? | \-----------------------------------------------------------------------------/ Default/Run: Several things are done, for a full explination of each step look further down in this docs. - "Jvp Str Len" are set to 20 for all strings - "Jvp Str Sep" are set to " " for all strings - "Jvp Bin Sort Type" are set to 0 (Dos-strings) - "Jvp Set Msg Bank" are restored to point a NO bank /-----------------------------------------------------------------------------\ | [01] Sorting commands (02 commands): | \-----------------------------------------------------------------------------/ Syntax: Jvp Bin Sort Type VAL Options: VAL currently either 0 or 1, determains what type of string you would like to sort on. 0 indicates DOS-type strings, 1 indicates standard AMOS-Strings. NOTE: VAL defaults to 0 (Dos strings), you should call this command before starting a Sort operation to be sure.. If you use the wrong VAL before a sort, it might crash your computer or at least give stange results, no checking is done.. VAL can take values between 0 and 255, if you enter anything else that 0 then the sort will asume AMOS strings, this might change in future versions, so keep the 0 or 1 value.. ----------------------------------------------------------------------------- Syntax: Jvp Bin Sort SRC,ANT,MAP to DEST,WORK Options: SRC Depends on the Sort Type, see later.. ANT How many strings have you got MAP Translation map for characters, see later.. DEST Memoryarea to hold indexes for the sorted list (!)min 4*ANT WORK Memoryarea to use for workspace (!)min 16*(ANT+3) NOTE: This command has been optimized for speed, and contains no error- checking at all. You MUST make sure that the memory needed is present at the adresses you deliver to the routine. The command needs quit a large amount of memory, due to the fact that it uses a Binary sort (also know as Tree-Sort). Good for speed, bad for memory.. Remember: If you are comming from an array, then the ANT number is LastElement+1 (0 is an element too) !!!! - SRC This is a pointer to an adress-list of the strings you want to sort, each string should be adresses at it's ABSOLUTE adress as a Long- Word, the type of strings these adresses point at depends on what you have set using "Jvp Bin Sort Type". DOS-Strings: Each adress MUST point at the FIRST character of the string. The string MUST be terminated by a control- character [