Question: How would I write this in RISC-V? QUESTION 1 Write the two lines of code that will do the following, using only these instructions: add,
How would I write this in RISC-V?
QUESTION 1 Write the two lines of code that will do the following, using only these instructions: add, addi, beq, bne. Do not use labels. - compare the values in a1 and a2 - if the values are equal, then add a1 + a2 and put the result in a3; otherwise, go on to the next instruction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
