Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function called ReplaceLetterWithAsterisk that takes two arguments as inputs. Use the MIPS calling convention; use $a registers to pass the arguments to your
Write a function called ReplaceLetterWithAsterisk that takes two arguments as inputs. Use the MIPS calling convention; use $a registers to pass the arguments to your function. The first argument contains the string address and the second argument contains the character to replace. The ReplaceLetterWithAsterisk function will then find all instances of the letter in your string and replace them with an asterisk.
string used is no more than 63 bytes
Here is sample output from the program: Please enter your string string Manipulation Tables and Simple Function Calls Please enter the character to replace: this is the input this is the input Here is the output STRNG mAN*PULAT*ON tABLES AND s*MPLE FUNCT* ON CALLS Please make sure your output line contains the string "Here is the outputi sample output. as shown in the Hint 1: Each character of a string is a byte. We need a character buffer (memory space) to hold the input string in memory. To declare memory space for a 63-byte string and its null terminator, you car use the following code: .data sone.strangws space. 64Step 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