Show the steps of execution of instructions, Computer Engineering

Assignment Help:

Q. Show the steps of execution of instructions?

Fetch First Instruction into CPU:

Step 1: Find/calculate the address of first instruction in memory. In this machine illustration next instruction address is contained in PC register. It comprises 1 that is the address of first instruction to be executed. (Figure above part a).

Step 2: Bring binary instruction to IR register. This stage requires:

  • Passing content of PC to Memory Address Registers so that instruction pointed to by PC is obtained i.e. location 1's content is fetched.
  • CPU concerns 'Memory read' operation so brings contents of location pointed by MAR (1 in this particular case) to MBR register.
  • Content of MBR is transferred to IR and PC is incremented to point to subsequent instruction in sequence (2 in this particular case).

Execute the Instruction

Step 3: IR has instruction LOAD A that is decoded like 'Load the content of address A in the accumulator register'.

Step 4: Address of operand which is 13 i.e. A is transferred to MAR register.

Step 5: Content of memory location (signified by MAR which is location 13) is transferred to MBR.

Step 6: Content of MBR is transferred to Accumulator Register.

So the accumulator register is loaded with content of location A that is 5. Now the instruction 1 execution is finished and the subsequent instruction which is 2 (specified by PC) is obtained and PC is incremented to 3. This instruction is ADD B that instructs CPU to add the contents of memory location B to accumulator. On execution of this instruction accumulator will comprise sum of its earlier value which is A and value stored in memory location B.

On execution of instruction at memory location 3 Program Counter becomes 4 and the accumulator results are stored in location C which is 15 and IR still comprises the third instruction. This condition is displayed in figure above part(C).

Please remember that execution of the instructions in above illustration is very simple and needs only data transfer and data processing operations in every instruction. Also these instructions need one memory reference at the time of its execution.


Related Discussions:- Show the steps of execution of instructions

Explain the term - rational rose and visio 2000 enterprise, Explain the ter...

Explain the term - Rational Rose and Visio 2000 Enterprise Rational Rose: IBM Rational RequisitePro is a powerful and easy-to-use tool for use case management and requirement

Sosail studies, whitch goods did the new england colonies exportto england ...

whitch goods did the new england colonies exportto england and what did they get in return

What is virtual memory, What is virtual memory? Virtual memory is a met...

What is virtual memory? Virtual memory is a method used in some large computer systems that allow the user to construct program as by a large memory space were available, equal

Explain how the server control validation controls work, Briefly explain ho...

Briefly explain how the server control validation controls work? A validation control works by evaluating the value of an input server control on the page to see whether it me

The concept of program-parallel computing, The Concept of Process Infor...

The Concept of Process Informally, a method is a program in execution, behind the program has been loaded in the main memory. However, a method is more than just a program code

Earned value analysis, Senior management has requested a status update on t...

Senior management has requested a status update on the workstation installation project.  As a part of this update, managers have requested that you present an Earned Value analysi

Secret-key encryption, Secret-key encryption is also called as Private ...

Secret-key encryption is also called as Private encryption.

Page directive include, What is the difference between, page directive incl...

What is the difference between, page directive include, action tag include? Ans) One difference is whereas using the include page directive, in translation time it is making t

naming convention in local scope variables, Description Variables show ...

Description Variables show values that can be changed within a procedure or function. Local scope variables are placeholders that reside within a function- or a script-body.

Minmax search - artificial intelligence, MinMax Search Parents frequent...

MinMax Search Parents frequently get two children to share a cake by asking one to cut the cake and the other to select which half they want to eat. In this two player cake-sco

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd