Question: ( 7 pts ) Translate each instruction into machine code ( in hexadecimals ) . Show your work. 1 . 1 add x 1 5

(7pts) Translate each instruction into machine code (in hexadecimals). Show your work.
1.1 add x15, x6, x7
1.2 addi t2, t2,-120
1.3 lbu x11,-56(x3)
1.4 sw x12,20(x13)
1.5 j label1(label1 is 16 instructions away upward to this instruction)
1.6 ret (suppose that x1=0x1000400a)
1.7 auipc x10,0xdcba9(suppose that PC=0x10005010)

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 Programming Questions!