Question
Consider that the registers $t0, $t1, $t2, and $s0 contain the values 0x00000200, 0x00000204, 0x12345678, and 0x00000200 respectively. All other registers are having 0x00000000 Using
Consider that the registers $t0, $t1, $t2, and $s0 contain the values 0x00000200, 0x00000204, 0x12345678, and 0x00000200 respectively. All other registers are having 0x00000000
-
Using the PathSim simulator, execute the following sequence of instructions:
add $t3,$t1,$t0
sub $t4,$t2,$t1
beq $t3,$t4,3
or $t5,$t1,$t2
addi $t6, $t1, 0x0FFF
beq $t5, $t0,2
sw $t2, 8($s0)
lw $t1,8($s0)
j 0x2
-
Show the machine code for each instruction above as appeared in the simulator.
-
In a table, show the values of control signals generated by the control unit for each highlighted instruction in the sequence.
-
What are the stages that are involved in each highlighted instruction?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started