Question: A) Convert the above given C code to MIPS assembly code B) Convert the MIPS assembly code from part 'A' to Machine Language (Binary). Q1
A) Convert the above given C code to MIPS assembly code B) Convert the MIPS assembly code from part 'A' to Machine Language (Binary).

Q1 C code Int i, n = 0, c = 0, y = 0; While ( LastName [C] == FirstName [n]) { if (i != n) {While NameList[i]== LastName [c]) { y + = 1; 1 + = 1; } } Else { FullName [i] = LastName [ C ] + FirstName[n]; } } i is in $SO, c is in $s2 n is in $S1, y is in $s3 Base address for array 'LastName'* is in $S6 Base address for array 'FirsName'* is in $S7 Base address for array 'FullName'* is in $S5 Note:- Use your First name, Last name and Full name in place of the arrays FirstName, LastName and FullName, respective A) Convert the above given C code to MIPS assembly code B) Convert the MIPS assembly code from part 'A' to Machine Language (Binary)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
