Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Assembly 

Basic code a sort algorithm in assembly

Can someone do this for me? Can pay.

It must be hand coded in gnu assembler type instructions.

Thanks.
PM me before you deal
I know this is late but have you found sb to do it for you?
Also what kind of sort should it be? would bouble sort be enough or should it be more efficient?
and what kind of data should be sortet? Just a simple byte array?

If you can provide these information i might be able to help you :)
Bubble sort:

Code
_bsort proc uses esi edi ebx, _lpArray:dword, _uCount:dword

mov esi, _lpArray
mov ecx, _uCount
_bsort_loop:
lea ebx, [esi+ecx*4]
mov eax, dword ptr[esi]
_bsort_compare:
sub ebx, 4
cmp eax, dword ptr[ebx]
jle @F
xchg eax, dword ptr[ebx]
@@:
cmp ebx, esi
jnz _bsort_compare
mov dword ptr [esi], eax
add esi, 4
dec   ecx
       jne    _bsort_loop
ret
_bsort endp


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Assembly] by shrixythongFeb 13, 2022 09:52 PM 4 291 Feb 13, 2022 09:52 PM
Last Post: scrubkids
[Assembly] by 41phafr34kNov 18, 2017 03:40 AM 21 1,494 Nov 18, 2017 03:40 AM
Last Post: drrrrrr
[Assembly] by drrrrrrNov 6, 2017 04:46 PM 0 192 Nov 6, 2017 04:46 PM
Last Post: drrrrrr