Can you check whether what i did is correct or not. 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.           Table 3 PC R1 R2 R4 x3000 0 x3100 10 x3001 0 x3100 0 x3002 0 x3100 10 x3003 0 x3100 10 x3004 0 x3100 10 x3005 0 x3101 10 x3006 x3107 x3101 10 x3007 x3107 x3101 9 x3008 x3107 x3101 9 x3009 x3107 x3101 9   [3000] 0101001001100000 - AND R1 R1 #10 [3001] 0101100100100000 - AND R4 R4 #0 [3002] 0001100100101010 - ADD R4 R4 #10 [3003] 1110010011111100 - LEA R2 x3100 [3004] 0110011010000000 - LOOP LDR R3 R2 #0 [3005] 0001010010100001 - ADD R2 R2 #1 [3006] 0001001001000011 - ADD R1 R1 R3 [3007] 0001100100111111 - ADD R4 R4 #-1 [3008] 0000001111111011 - BRP LOOP [3009] 1111000000100101 - TRAP x25

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question

Can you check whether what i did is correct or not.

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.         

 Table 3

PC

R1

R2

R4

x3000

0

x3100

10

x3001

0

x3100

0

x3002

0

x3100

10

x3003

0

x3100

10

x3004

0

x3100

10

x3005

0

x3101

10

x3006

x3107

x3101

10

x3007

x3107

x3101

9

x3008

x3107

x3101

9

x3009

x3107

x3101

9

 

[3000] 0101001001100000 - AND R1 R1 #10
[3001] 0101100100100000 - AND R4 R4 #0
[3002] 0001100100101010 - ADD R4 R4 #10
[3003] 1110010011111100 - LEA R2 x3100
[3004] 0110011010000000 - LOOP LDR R3 R2 #0
[3005] 0001010010100001 - ADD R2 R2 #1
[3006] 0001001001000011 - ADD R1 R1 R3
[3007] 0001100100111111 - ADD R4 R4 #-1
[3008] 0000001111111011 - BRP LOOP
[3009] 1111000000100101 - TRAP x25

 

Table 1
Address
Contents
x3100
x3107
x3101
x2819
x3102
x0110
x3103
x0310
x3104
х0110
х3105
xl110
x3106
xl1B1
x3107
x0019
13108
x0007
x3109
x0004
Transcribed Image Text:Table 1 Address Contents x3100 x3107 x3101 x2819 x3102 x0110 x3103 x0310 x3104 х0110 х3105 xl110 x3106 xl1B1 x3107 x0019 13108 x0007 x3109 x0004
Table 2
Address
10 9 87 65 4
15
14
13
12
11
3
1
x3000
0 1
1
0 1 0 0 1
1 0 0 0 0 0
х3001
1
1
1
1
1
х3002
1
1
1
1
1
x3003
1
1
1
1
1
1
1
1
1
1
х3004
1
1
1
1
1
x3005
1
1
1
1
1
х3006
1
1
1
х3007
1
1
1
1
1
1
1
1
1
x3008
1
1
1
1
1
1
1
1
x3009
1
1
1
1
0 0
1
1
1
1.
1.
2.
Transcribed Image Text:Table 2 Address 10 9 87 65 4 15 14 13 12 11 3 1 x3000 0 1 1 0 1 0 0 1 1 0 0 0 0 0 х3001 1 1 1 1 1 х3002 1 1 1 1 1 x3003 1 1 1 1 1 1 1 1 1 1 х3004 1 1 1 1 1 x3005 1 1 1 1 1 х3006 1 1 1 х3007 1 1 1 1 1 1 1 1 1 x3008 1 1 1 1 1 1 1 1 x3009 1 1 1 1 0 0 1 1 1 1. 1. 2.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education