Question: in this assignment, you will implement a word search function using MIPS assembly language in the MARS simulator. The program will prompt the user to

in this assignment, you will implement a word search function using MIPS assembly
language in the MARS simulator. The program will prompt the user to input a string
and a word to search for. It will then scan the string for occurrences of the word and
return the total number of matches and their positions. For this task, a word starts
with an alphabetic character (A-Z or a-z) and ends when a non-alphabetic character is
encountered.
Example run:
Enter a string: Welcome to the programming world! Who knew assembly programming could
be this wildly fun?
Enter a word to search for: programming
Word found!
Occurrences: 2
Found at index: 15,52

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 Programming Questions!