Question
Searching a String: Write a MIPS assembly language program to do the following: Read a string and store it in memory. Limit the string length
Searching a String: Write a MIPS assembly language program to do the following:
Read a string and store it in memory. Limit the string length to 100 characters. Then, ask the user to enter a character. Search and count the number of occurrences of the character in the string. The search is not case sensitive. Lowercase and uppercase letters should be equal. Then ask the user to enter a string of two characters. Search and count the number of occurrences of the two-character string.
Enter a string of at most 100 characters: MIPS programming is nice
Enter a character: i
Number of occurrences of i = 4
Enter a string of two characters: mi
Number of occurrences of mi = 2
Repeat (Y/N)? n
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started