Write a mips program that prompts the user


Write a MIPS program that prompts the user for a string, reads the string, and returns the number of occurrences of the letter 'b' within the string. Write a procedure, bcount, in MIPS assembly language. The bcount procedure takes a single argument, which is a pointer to a string in register $a0, and it returns a count of the total number of b characters in the string in register $v0. You must use another procedure you are to create called bfind in your implementation of bcount.

The procedure bfind should take a single argument that is a pointer to a null-terminated string in register $a0. The bfind procedure should locate the first b character in the string and return its address in register $v0. If there are no b's in the string, then bfind should return a pointer to the null character at the end of the string. For example, if the argument to bfind
points to the string "imbibe," then the return value will be a pointer to the third character of the string.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a mips program that prompts the user
Reference No:- TGS094291

Expected delivery within 24 Hours