Please find the code below::::
add $t0,$zero,$s0 #load 0 to t0
addi $t0,$t0,400 #add 400 to t0
A : lw $s7,0($t0) #load value from array A
addi $s7,$s7,1 #increase value by one
sw $s7,0($t1) #store value to array B
subi $t0,$t0,4 #subtract index by 4
bne $t1,$s0,A #loop until t1 is greater than zero
Conclusion::
Given code traverse array A in reverse order and increase it's value by one and assigns this value to another array B.
1. Assume that variables f,g,h,ij are assigned to registers Ss0 to Ss4 (in the given order). Assume that the base addresses of arrays A and B are in $s6 and Ss7. Registers St0 to St2 are used to...
Assignment 3 Translate the following MIPS code to C. Assume that the variables f, g, h, i and j are assigned to registers Ss0, Ss1, Ss2, Ss3 and Ss4, respectively. Assume that the base address of the arrays A and B are in registers Ss6 and $s7, respectively. addi St0, Ss6, 4 add $t1, $s6, $0 #register $0 always holds 320s sw St1, 0(Sto) add Ss0, St1, Sto
2 performance (30pt) You are the project lead at Micro Performance. The company wants you to select which option would be best for their new Micro Speed processor: Type Arithmetic 1 Branch Memory Clock Original Fast Clock Fast Mem Percent by inst. type 40% 20% 40% 1 2 4 1 1.8GHZ 3.6GH2 1.8GHz 1. Double clock speed (Arithmet io ond branch are twice as fast, mem is the same) 2. Clock the same, add a high nerformance bus and larger...