Question: MIPS Assembly Langauage Using functions, string manipulation and dynamic memory allocation Write a MIPS assembly program with the following functions A function that calculates the

MIPS Assembly Langauage

MIPS Assembly Langauage Using functions, string manipulation and dynamic memory allocation Write

Using functions, string manipulation and dynamic memory allocation Write a MIPS assembly program with the following functions A function that calculates the length of a string. The string will be stored in mairn memory. The starting address of the string will be stored in a register A function to compare two strings for equality. The function should store al ina register if the strings are equal. Two strings are equal if the lengths are equal and the characters in every position in the strings are equal. The starting address of the strin A function to append one string to another string. This function must allocate main memory for the resulting string. Use the length function to calculate the exact amount of memory that must be allocated. The function will store the starting address of the resulting string in a register. Add room for a space to be appended to string 1 before appending string 2 gs will be stored in registers The main program must prompt the user to enter two strings and to read the strings. The code to do this is on the back of this page. This code will store the address of the first string into Sa0 and the address of the second string into Sal. The main program should compute and output the length of each string. The main program should test to see if the two strings are equal. The main program should append string 2 to the end of string 1 and print the resulting string Test your program on the following input: String 1: abcd String 2: abcd String 1: If at first you don't succeed, String 2: skydiving is definitely not for you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!