Question: CEN 221 0101 - Computer Organization Laboratory Study String Character Count: Write an MIPS assembly language code to count all the a, e, and T

 CEN 221 0101 - Computer Organization Laboratory Study String Character Count:

CEN 221 0101 - Computer Organization Laboratory Study String Character Count: Write an MIPS assembly language code to count all the a, e", and "T" characters of an user defined string. These 3 characters will be counted and displayed at the console individually. The string to be counted will be given by the user input. The results are diplayed at the console neatly. The characters defined as 1 Byte ascii characters. Define the variables at the data segment like that; Variable1: Variable2: .word .byte 100 0x61 Don't forget to define data and .text segments. Character strings are ended by null character. Ib and sb instructions are used when work with the character strings. Strings are byte addressed. Don't forget the exit system call. Syscall for user input to get STRING lw $a1, Size la $a0, String addi $v0, $zero, 8 syscall #s1 points to the available string size #s0 points to the string address

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