Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Spring%202013_CS501_1.doc

Question:

Dear Student, you are given typical view of selected Memory and Processor registers in Figure 1. In memory, you can see three instruction codes in upper area, while two data values are given in lower part. These instruction codes represent an addition operation.

Addition Operation:  You are required to perform an addition operation in which you have to add the contents of memory word at address 781 to the contents of memory word at 782. After performing this addition, result should be stored at 782. Your task is to perform step-by-step execution of these three instructions and show registers configuration at each step.

For your understanding, Step-1 of this sequence of execution is shown in Figure 1.  In this Figure, you can see PC=200 which indicate that instruction stored at address 200 is in execution and the same instruction (1781) is loaded in IR register.

 

Memory

 

CPU register

200

1 7 8 1

200

PC

201

5 7 8 2

 

AC

202

2 7 8 2

1 7 8 1

IR

203

 

 

 

:

 

7 8 1

0 0 0 4

 

7 8 2

0 0 0 2

(STEP 1)

 

 

 

 

 

 

Figure-1

Where,

AC is Accumulator Register.

PC is Program Counter.

IR is Instruction Register.

 

Submission:

You need to complete execution of the three given instructions and provide step wise registers and memory configuration. Please submit your solution in MS Word format by completing/filling the provided steps on page-4.

 

Hint Regarding Three Instructions: 

  • First instruction 1781 means Load value stored at address 781 into accumulator register.
  • Second instruction 5782 means perform addition of value stored at address 781 with value in accumulator register and store the result in accumulator register.
  • Third instruction 2782 means store value of accumulator register at address 782.

Views: 6668

Replies to This Discussion

bs kro Raza bhya sb ka mazaq asy urra ry jsy ap ny PHD ki hui programing mn

jokes aside... I still cant understand what MDB mod is saying about assignment 1 hint #2

hahahahahahha adnan bhai thek kaha ap ne

Raza_ bhai phr ap bta do koi soln

any one upload the correct soltn, it is to much confusing.

sadia javaid kia ap nay ya sari discussion check kar li hai ??

g tariq bhi check ki bt man confude ho rai hn,

man assignmnt ka kh rai hn confusing hai, q k book man bi kch khas understand nai ho raha

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

Latest Activity

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service