Question: . . Create a MIPS assembly program that compares two strings. If the strings are equal, assign 0 to register $sz If the first string

. . Create a MIPS assembly program that compares two strings. If the strings are equal, assign 0 to register $sz If the first string alphabetically precedes the second, assign-1 to register $s7 o For example, apple comes before zebra For example, donkey comes before donuts If the first string alphabetically succeeds the second, assign 1 to register $s7 For example, zebra comes after apple o For example, donuts comes after donkey o . In your program's data section, you should have two strings labeled stringi and string2. These are the strings that your program will compare. . Your strings must: Only use lowercase letters in the strings. Do not use uppercase characters, numbers, or symbols/punctuation. Have equal lengths. . Only use MIPS instructions that have been demonstrated in the lecture slides or in the sample code provided. Hint: You will need to compare the strings character by character. Refer to the ASCII table for the hex/decimal values of each lowercase character
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
