Question: The C function below copies string Y to string X using C's NULL byte string termination convention What's the MIPS assembly code for this
The C function below copies string Y to string X using C's NULL byte string termination convention What's the MIPS assembly code for this function: void strcpy (char x[], char y[]) { int i=0; while((x[i] = y[i])!= '\0') i++; // copy & test byte } Assume: $a0 and $a1 contain base address of x[] and y[], respectively, and i = $s0
Step by Step Solution
3.40 Rating (147 Votes )
There are 3 Steps involved in it
The slide youve provided describes the task of converting a simple C function strcpy into MIPS assembly code The C function is intended to copy a stri... View full answer
Get step-by-step solutions from verified subject matter experts
