flat assembler
Message board for the users of flat assembler.
Index
> DOS > SRT.COM is my insert line sorter that moves no lines. |
| Author |
|
|
bitdog2u 14 Apr 2026, 06:42
Hello my fasm friends. I woke up with a nutty idea and had to make it.
So here is a sorter that puts out the same crap as the original DOS SORT.exe but it's faster. It insert sorts a word list of line addresses, using the values of the lines to sort the words, so the lines never have to be moved. When the word list is sorted, it is used to write the lines to the out file in a stable sorted order. Except the blank lines are removed, as if by magic. If the next line is bigger than the one the sorter is sitting on, it just moves forward, so if it has to sort a sorted file, it does nothing, and it's done. Inserting the word divides the sorted section x4 and checks at the 3/4 position, if line is greater it starts a skip forward 10 lines & check process, eventually it checks one line at a time & inserts. If line =< 3/4, check at 1/2, then 1/4, then the start of the inserted buffer +skip 10 on each. Some premium sorters insert every line & start checking every line from the start of inserted buffer, then they move every line, in the way forward the size of the line to insert. The speed difference is a noticeable difference, even on a small 30k file. Yep, it's another Bitdog original, and it is my intellectual property. This is NOT freeware, it's TEST ware. If you want to work with me, contact me. Up front and honest is always best. I could use some feed back to improve it. FCV.com confirms the outputs are the same. DIS.com shows the unique srt.com code. FASM assembles the dis.com code. FCC.com confirms that the code is what made SRT.com PS, if you have a problem with me or anything I'm doing, PM Private Message me, and I will try to solve the issue properly. Trashing my post, says more about the trash, than the post. SRT.COM is making the world a better place, a little bit at a time.
|
|||||||||||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.