Question
Assume you are executing the following instruction sequence: 6+5+4 = 15 Add $s0, $t0, $t1 Sub $s1, $t0, $t2 Addi $s3, $s1, 12 BEQ $s1,
Assume you are executing the following instruction sequence:
6+5+4 = 15
Add $s0, $t0, $t1
Sub $s1, $t0, $t2
Addi $s3, $s1, 12
BEQ $s1, $s3, L1
Mul $s2, $s1, $s0
Addi $s4, $s2, 20
J END
L1: Addi $s1, $s1, 20
Addi $s3, $zero , 2
Mul $s4, $s1, $s3
END
If the initial value of temporary registers are $t0 =6, $t1 = 10 and $t2=4, what will be the final value of $s4 register? If the address of first instruction (add $s0, $t0, $t1) is 100(in decimal) what will be the address of last instruction (END)? For the given temporary register values ($t0 = 6, $t1=10, $t2= 4), what is the address of 8th instruction that will be executed.
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