Question: Problem 1- Write a RISC-V assembly program to read 3 unsigned integers and display the smallest integer (for read and display use ecall) Problem 2

 Problem 1- Write a RISC-V assembly program to read 3 unsigned

Problem 1- Write a RISC-V assembly program to read 3 unsigned integers and display the smallest integer (for read and display use ecall) Problem 2 Write a RISC-V assembly program to read two numbers (x and y). If both x and y are positive, display 2, if only one of them is positive display 1, otherwise display 0 (for read and display use ecall). Problem 3 - Write a RISC-V assembly program that include a main calling program and a procedure called rec ln The main program reads input n and call the recursive procedure rec lin (define below) The argument n will be passed to rec_lin in register x10, and the procedure should also return the result in register x10. The main program should then display the result (for read and display use ecall). If n 5 rec lin(n)- 5 Else rec lin(n)-4xrec lin(n-5)+n Problem 1- Write a RISC-V assembly program to read 3 unsigned integers and display the smallest integer (for read and display use ecall) Problem 2 Write a RISC-V assembly program to read two numbers (x and y). If both x and y are positive, display 2, if only one of them is positive display 1, otherwise display 0 (for read and display use ecall). Problem 3 - Write a RISC-V assembly program that include a main calling program and a procedure called rec ln The main program reads input n and call the recursive procedure rec lin (define below) The argument n will be passed to rec_lin in register x10, and the procedure should also return the result in register x10. The main program should then display the result (for read and display use ecall). If n 5 rec lin(n)- 5 Else rec lin(n)-4xrec lin(n-5)+n

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Problem 1 This program reads three unsigned integers and displays the smallest integer assembly sect... View full answer

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!