News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Sorting array

Started by Bamizas, May 08, 2012, 03:56:40 AM

Previous topic - Next topic

Bamizas

thank you all! I managed to do it! the problem I had is that the code given by RuiLoureiro was increasing esi by 1.

I needed to increase by 4 because of the DWORD. When scrolling an array, you must increase by the size of your value.

Thank you RuiLoureiro, you set me in the right direction  :U

Bami

RuiLoureiro

Quote from: Bamizas on May 10, 2012, 02:48:59 AM
thank you all! I managed to do it! the problem I had is that the code given by RuiLoureiro was increasing esi by 1.

I needed to increase by 4 because of the DWORD. When scrolling an array, you must increase by the size of your value.

Thank you RuiLoureiro, you set me in the right direction  :U

Bami
Bamizas,
              Yes you are right ! Replace esi and ebx by esi*4 and ebx*4 and the problem is solved  :U
               where we have [esi] put [esi*4] and [ebx]   ... [ebx*4]