Thanks for replying, i have been trying to get help for so long (even chegg tutors wont help me).
But i have tested your code with my data, for some reason it is doing what was happening to me– printing the last element of my array 6 times.
Also, just a quick question, for edi, do i initialize it just like
mov edi, Array3
just like esi?
;LOOP INITIALIZATION
;PUSH
mov ecx, Array3.len
mov esi, Array3
ReverseOrderPush:
mov al, [esi] ;al = Array3[i]
push eax ;push contents in stack
inc esi ;point to next int
Loop ReverseOrderPush
;POP
mov ecx, Array3.len
ReverseOrderPop:
pop eax ;take the contents out
mov [edi], al ;move the contents from al to edi
inc edi ;move to next byte
push DWORD [Array3] ;push array content
call Print32bitNumDecimal ;prints the array
call PrintComma
Loop ReverseOrderPop
call Printend
l
note: to print this array, I am using a library