I wrote a c code: convert integer to string and have a comma every 3 digits, and can anyone give me a hint how to convert it to assembly language??? I just want simply convert it into assembly language! Can't use other library call!
 #include <stdio.h>
char *my_itoa(int n, char *buf)
 {    
int i, j, k=0, l=0;
char tmp[32] = {0};
 i = n;
do {
    j = i%10;
    i = i/10;
    sprintf(tmp+k, "%d", j); 
    k++;
    l++;
    if (i!=0 && l%3 == 0) {
        sprintf(tmp+k, ",");
        k++;
        l = 0;
    }
}while(i);
for (k--,i=0; i<=k; i++) {
    buf[i] = tmp[k-i];
}
return buf;}
 
     
     
    