Question: 1. Enter the following instructions into the Editor window. When you are finished, use the Simulator window in order to assemble your program. Using
1. Enter the following instructions into the Editor window. When you are finished, use the Simulator window in order to assemble your program. Using the simulator, step through each instruction in the program a. record the machine code for each instruction. b. note the type (i.e. R-type, Il-type, etc) of the instruction c. show how the machine code bits correspond to the instruction type format presented in class addi x1,x0,31 addi x2,x0,-5 add x3,x1,x2 slli x4,x3,2 addi x5,x0,100 SW x4,0(x5) Iw x6,0(x5) d. In the above program, change, the 'addi x5,x0,100' instruction to 'addi x5,x0,4' and re-run the program. Explain what error occurs and why this error occurs.
Step by Step Solution
There are 3 Steps involved in it
It seems like your provided assembly code contains a couple of errors or typos Ill assume you meant the following corrected version addi x1 x0 31 addi ... View full answer
Get step-by-step solutions from verified subject matter experts
