Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please set QtSpim as below: You are welcome to write your own programs if you do

ID: 3696334 • Letter: P

Question

Please set QtSpim as below:

You are welcome to write your own programs if you do not want to use the two *.asm files I provided.

1. Please complete Assignment5-q1.asm that can let the user input a string and capitalizes the first letter of each word, so that after running your program the data will look like this:

Assume that the data consists only of lower case characters and spaces. There may, however, be several spaces in a row. Be sure to capitalize the first letter of the string.

Hint: please use ‘syscall’ learned in Chapter 22 to read string and print string and ‘indexed addressing’ learned in Chapter 24 to get each character. A lower case character can be capitalized by subtracting 0x20.

2. Please complete Assignment5-q2.asm that can process an array by applying an averaging filter to it. An averaging filter works like this: create a new array where each element at index J is the average of the three elements from the old array at indexes J-1, J, and J+1

.data

size: .word 12

array: .word 50,53,52,49,48,51,99,45,53,47,47,50

result: .word 0,0,0,0,0,0,0,0,0,0,0,0

In the above, the second element of the result is the average of 50, 53, and 52 (save quotient and ignore remainder). The first and last elements of the new array are copies of the corresponding first and last elements of the old array.

After storing the averaged element to the array ‘result’, write the array ‘result’ to the monitor.

QtSpim Settings 3 MIPS OtSpim MIPS Simulation Settings Bare Machine Accept Pseudo Instructions Enable Delayed Branches Enable Delayed Loads Enable Mapped IO Simple Machine Bare Machine Exception Handler OK

Explanation / Answer

To Answer question 1- Please mention about, what isAssignment5-q1.asm given in assignment.

To Answer question 2- Please mention about, what isAssignment5-q2.asm given in assignment.

So, that the given question is clearly mentioned to provide an answer.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote