Question: cmid = 4 4 3 1 2 9 & page = 4 Question 5 Notyet answered Marked out of 8 pFlag question in R 2

cmid =443129& page =4
Question 5 Notyet answered Marked out of 8 pFlag question
in R2. Assume that each add operation
each lw operation 5 cycles, each store sw takes 4 cycles, and each branch (bne) instruction takes 3
cycles to execute. The "T" represents Temp registers. All numbers are in decimal.
add To, zero, zero # 0=i=0+0=0
add T1, R1, zero #T1= address of x[0]+0
add T2, R2, zero # T2= address of y[0]+0
add T3, zero, 201
Loop:
Iw T4,0(T2)
add TS, T4, C
# Load T4 with M[T2+0] value
sw T5,0(T1)
add T0, TO,1
add T1,T1,4
add T2,T2,4
140: bne TO, T3,-7
144: , add TO, TO,200
# Loops if branch is taken
What is the PC value for the SW instruction?
120
200
124
135
Calculate the branch target address?
 cmid =443129& page =4 Question 5 Notyet answered Marked out of

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