Assume that A and are arrays with elements of the arrays as 4-byte integers and registers ($56) and $57 contain the base address of (A) and 6, respectively. Assume A(1) - 1001 for i 0, 1, 10 (i.e., A(0)-100, A(1)-101, ...); and B(1)-1 for 1-0, 1,..., 10 (i.e. B(0)-0, B(1)-1, ...). Let registers Sso, Ss1, $s2, $s3 have the initial values of 0, 0, 2, 2, respectively. Loop: sll $t0, $50, 2 Exit: After completing the loop, the values of A and B are A(0) add $t0, $t0, $56 lw $t3, 0($10) add $14,$t3,3 sw $t4.0($t0) sll $t1,$s1, 2 add $t1,$t1,$s7 lw $t5, 0($11) add $13.$13.$15 sw $t3,0($t1) addi $s0, $s0.1 addi Ss1. Ss1, 1 addi $s3, $s3.-1 bne $s3, $0, LOOP B(0) ,A(1)- B(1)- A(2)- B(2)- A(3)- B(3)-

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Assume that A and B are arrays with elements of the arrays as 4-byte integers and
registers ($56) and $57 contain the base address of A) and 6, respectively. Assume A(1) - 100 +1 for i
0,1... 10 (1.e., A(0)-100, A(1)-101,...); and B(1)-1 for 1-8, 1,..., 10 (i.e. B(e)-8, B(1)-1,
...). Let registers Sso, Ss1, $52, 553 have the initial values of 0, 0, 2, 2, respectively.
Loop: sll $t0, $s0, 2
Exit:
After completing the loop, the values of A and B are
A(0) -
add $t0,$t0, $56
lw $t3, 0($10)
add $14.$13,3
sw $t4,0($t0)
sll $t1,$s1, 2
add $t1,$t1,$s7
lw $t5, 0($11)
add $13,$t3,$t5
sw $t3,0($t1)
addi $50, $s0. 1
addi Ss1, Ss1, 1
addi $s3, $s3.-1
bne $s3, $0. LOOP
B(0)
,A(1)-
B(1)-
A(2)-
B(2)-
.A(3)-
, B(3)-
Transcribed Image Text:Assume that A and B are arrays with elements of the arrays as 4-byte integers and registers ($56) and $57 contain the base address of A) and 6, respectively. Assume A(1) - 100 +1 for i 0,1... 10 (1.e., A(0)-100, A(1)-101,...); and B(1)-1 for 1-8, 1,..., 10 (i.e. B(e)-8, B(1)-1, ...). Let registers Sso, Ss1, $52, 553 have the initial values of 0, 0, 2, 2, respectively. Loop: sll $t0, $s0, 2 Exit: After completing the loop, the values of A and B are A(0) - add $t0,$t0, $56 lw $t3, 0($10) add $14.$13,3 sw $t4,0($t0) sll $t1,$s1, 2 add $t1,$t1,$s7 lw $t5, 0($11) add $13,$t3,$t5 sw $t3,0($t1) addi $50, $s0. 1 addi Ss1, Ss1, 1 addi $s3, $s3.-1 bne $s3, $0. LOOP B(0) ,A(1)- B(1)- A(2)- B(2)- .A(3)- , B(3)-
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY