Open In App

Instruction execution and straight line sequencing in CO

Introduction :
As instructions are a part of the program which are stored inside the memory, so every time the processor requires to execute an instruction, for that the  processor first fetches the instruction from the memory, then decodes the instruction and then executes the instruction. The whole process is known as an instruction cycle. 

Instruction cycle state transition diagram

Instruction execution :
Instruction execution needs the following steps, which are



Straight line sequencing:

 Example –



  

Example 2 –
Straight line sequencing program for adding n numbers.

Straight line sequencing program for adding n numbers

Article Tags :