Monday, May 24, 2010

I need help converting this c++ code into .asm?

sort (int *list,int len){


for(i=len;i%26gt;1;i--)


for(j=0;j%26lt;i-1;j++)


if(list[j]%26gt;list[j+1]){


tmp=list[j];


list[j]=list[j+1];


list[j+1]=tmp;


}


}

I need help converting this c++ code into .asm?
Dude. You need to get a good book on assembly code and start loading values into registers and branching. You can find tons of code examples online via Google and might be able to find some assembly code to do a basic sort such as the one you coded. I wrote a merge sort program in x86 assembly a while ago so I know it is possible! :) Cheers!
Reply:make it an exe.


Then assemler program to see assemler codes


No comments:

Post a Comment