Question: Please help with spim assembly language for qtspim. Please comment your code and answer the outputs. Compose a program to examine the string Hello, world!

 Please help with spim assembly language for qtspim. Please comment your

Please help with spim assembly language for qtspim. Please comment your code and answer the outputs.

Compose a program to examine the string "Hello, world! ", calculating the total numeric value of all the characters in the string (including punctuation marks). The program should load each letter, add that numbers numeric value to the running total, and finally produce a total sum. The program will take a loop, but in this case, you do not need a counter, since the phrase is null terminated. Simply look for a null (0) and then terminate the program by printing out the total. Remember punctuation (even spaces!) have a numeric value as well. What is the total character numeric sum? Construct a program that will data print out the data words in memory AS ASCII CHARACTERS in the reverse order that they are declared in the data statement. To do this, use the stack to reverse the data sequence. You will need two small loops: one to store the four data words on the stack, and a second to print the data (which is main conveniently in reverse order on the stack!) to the console. Yes, you WILL need a counter in both loops! When addressing the stack, use the "points to the last filled location" convention for the stack pointer ($29). End the program with a syscall 10, as usual. What is printed out

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!