Converting 3 functions to arm assembly(ARM and only ARM).
I’m trying to learn for my Computer Science class and I’m stuck. Can you help?
/0x4*
I will give a c code and I want you to convert some of the functions to ARM and keep the other functions in c language. At the end I want the whole program to work and function properly
one of the functions I want you to convert:
}_x000D_ int check(char sym[9],char ch,int count){_x000D_ int i;_x000D_ for(i = 0;i<=6; i+=3)//it's for row_x000D_ if(sym[i] == ch && sym[i+1]==ch&&sym[i+2]==ch){_x000D_ printf("the Winner is : %c",ch);return 1;_x000D_ }_x000D_ for(i = 0;i<3; i++)//it's for column_x000D_ if(sym[i]==ch && sym[i+3]==ch&&sym[i+6]==ch){_x000D_ return 1;_x000D_ }_x000D_ if(sym[0]==ch && sym[4]==ch&&sym[8]==ch){_x000D_ ;return 1;_x000D_ }_x000D_ else if(sym[2]==ch && sym[4]==ch && sym[6]==ch){_x000D_ ;return 1;_x000D_ }_x000D_ else if(count==8){_x000D_ printf("the Game is DRAW");_x000D_ return 1;_x000D_ }else return 0;_x000D_ }_x000D_ _x000D_ There are more functions to convert