Hi all, I have given this program to convert it to MIPS code in SPIM and print anapshot of the registers and the results
. and then assemble the MIPS instructions to machine code writing the out put in HEX format
thank you for help
//this program compile with C++
#define N10
main()
{
int i;
int array[N]={2.4,7,8,14,5,13 ,23};
int accumulate =0;
for(i=N-1;i>=0;i--
{
accumulate += array[i];
}
cout<<"the result is"<<accumulate<<endl;
}