Question: Write, and test using QEMU, a RISC - V assembly procedure that takes as its parameter the starting address of a ( zero - terminated

Write, and test using QEMU, a RISC-V assembly procedure that takes as its parameter
the starting address of a (zero-terminated) string. Your procedure should reverse the string
in-place (i.e., do not return a different string; you should modify the contents of the original
string). For example, cmpt215 should be converted to 512tpmc.
Write a main program to test your procedure. Your main program should input a string
from the user (you can assume that the string will be at most 40 characters, not including
the zero byte delimiter). Your program should then call the procedure to reverse the string,
output the reversed string, and finally terminate. Your code must use the standard
conventions covered in class for passing parameters and returning results

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!