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

Create a MIPS assembly program that compares two strings. If the strings are equal, assign 0 to register $57 If the first string alphabetically precedes the second, assign-1 to register $57 o For example, apple comes before zebra o For example, donkey comes before donuts If the first string alphabetically succeeds the second, assign 1 to register $s7 o For example, zebra comes after apple o For example, donuts comes after donkey 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. Create a MIPS assembly program that compares two strings. If the strings are equal, assign 0 to register $57 If the first string alphabetically precedes the second, assign-1 to register $57 o For example, apple comes before zebra o For example, donkey comes before donuts If the first string alphabetically succeeds the second, assign 1 to register $s7 o For example, zebra comes after apple o For example, donuts comes after donkey 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
