Consider a simple RISC-V program with four instructions. The following table illustrates the state of the general purpos
Posted: Wed Apr 27, 2022 3:40 pm
Consider a simple RISC-V program with four instructions. The following table illustrates the state of the general purpose registers before and after the execution of this program (note that some entries are intentionally left blank): Register Before After to 4 4 t1 5 5 t2 1 1 t3 0 18 t4 10 10 t5 0 t6 2 0 t7 0 Note that no memory instructions (e.g. Iw, sw) or control instructions (e.g.jal, ret) are used in this program. a. Fill out the table above, showing the missing entries. b. Give the assembly language for the same. C. Find the machine code for the program using the RISCV Green sheet.