ble 1 shows the content inside computer memory addresses. The code listed in Table 2 is designed to sum the numbers stored in 10 locations beginning with x3100, leaving the result in R1. The initial value of R1 is 0, R2 is x3100 and R4 is 10. Your task is to trace the content of R1, R2, and R4. Table 3 is given as a guide on how to write the contents of the registers. Draw the table in your answer booklet.        [12 marks]           Table 1 Address Contents x3100 x3107 x3101 x2819 x3102 x0110 x3103 x0310 x3104 x0110 x3105 x1110 x3106 x11B1 x3107 x0019 x3108 x0007 x3109 x0004

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 12E
icon
Related questions
Question

Table 1 shows the content inside computer memory addresses. The code listed in Table 2 is designed to sum the numbers stored in 10 locations beginning with x3100, leaving the result in R1. The initial value of R1 is 0, R2 is x3100 and R4 is 10.

Your task is to trace the content of R1, R2, and R4. Table 3 is given as a guide on how to write the contents of the registers. Draw the table in your answer booklet.        [12 marks]          

Table 1

Address

Contents

x3100

x3107

x3101

x2819

x3102

x0110

x3103

x0310

x3104

x0110

x3105

x1110

x3106

x11B1

x3107

x0019

x3108

x0007

x3109

x0004

 

Table 2

Address

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

x3000

0

1

0

1

0

0

1

0

0

1

1

0

0

0

0

0

x3001

0

1

0

1

1

0

0

1

0

0

1

0

0

0

0

0

x3002

0

0

0

1

1

0

0

1

0

0

1

0

1

0

1

0

x3003

1

1

1

0

0

1

0

0

1

1

1

1

1

1

0

0

x3004

0

1

1

0

0

1

1

0

1

0

0

0

0

0

0

0

x3005

0

0

0

1

0

1

0

0

1

0

1

0

0

0

0

1

x3006

0

0

0

1

0

0

1

0

0

1

0

0

0

0

1

1

x3007

0

0

0

1

1

0

0

1

0

0

1

1

1

1

1

1

x3008

0

0

0

0

0

0

0

1

1

1

1

1

1

0

1

1

x3009

1

1

1

1

0

0

0

0

0

0

1

0

0

1

0

1

 Table 3

PC

R1

R2

R4

x3000

0

x3100

10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr