questionwrite down mips program that prompts user


Question

Write down MIPS program that prompts user for a string, reads the string, and returns the number of occurrences of the letter 'b' within the string. Note down 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 total number of b characters in the string in register $v0. You have to use another procedure you are to create called bfind in your implementation of bcount.

The procedure bfind must take a single argument that is a pointer to a null-terminated string in register $a0. The bfind process should locate the first b character in 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 instance, if the argument to bfind

points to the string "imbibe," then the return value will be a pointer to third character of the string.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionwrite down mips program that prompts user
Reference No:- TGS0444675

Expected delivery within 24 Hours