Program Control Instruction Sequecing (DCS
Program Control Instruction Sequecing (DCS
Presented by :
Priyanshi Solanki
(B.Tech CSE)
INTRODUCTION
• This topic explains the program control instructions,
including the jumps, calls, return and many more
instructions.
• The change in the value of program counter as a result of the execution of a program control
instruction causes a break in the sequence of instruction execution.
Branch : one address instruction
Jump : conditional / unconditional
condition
1. True – PC – new effective address
2. False – PC – next address in sequence
Skip : skip the next instruction
Call : used with subroutines / procedures
Return :
We want to execute first line of our program, then second line and
third line but after executing third line, we may want to skip fourth
line and jump to the fifth line. In such conditions, we use control
instructions.
Status bit conditions (flag registers)
To check different conditions for branching instructions like CMP (compare) or test can be used
certain status bit condition are set as a result of these operations.
V Z S C
Status bits mean that the value will be either 0 or 1 as it is a bit. We have four status bits:
•"V" stands for Overflow
• "Z" stands for Zero
•"S" stands for the Sign bit
• "C" stands for Carry.
• Overflow(V) is based on certain bits, i.e., if extra bits are generated into our operation. Then
we have Zero (Z).
• If the output of the ALU(Arithmetic Logic Unit) is 0, then the Z flag is set to 1, otherwise, it is
set to 0.
• If the number is positive, the Sign(S) flag is 0, and if the number is negative, the Sign flag is 1.
• We have Carry(C), if the output of the thirst ALU operation generates Carry, then C is set to 1,
else C is set to 0.
THANK
YOU