0% found this document useful (0 votes)
53 views

Branching Instructions in 8085 Microprocessor

Branching instructions in the 8085 microprocessor control program flow by transferring execution to different parts based on conditions. There are three types: Jump Instructions, Call Instructions, and Return Instructions, each with unconditional and conditional variants. These instructions are essential for implementing loops and decision-making within programs.

Uploaded by

tsherings357
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Branching Instructions in 8085 Microprocessor

Branching instructions in the 8085 microprocessor control program flow by transferring execution to different parts based on conditions. There are three types: Jump Instructions, Call Instructions, and Return Instructions, each with unconditional and conditional variants. These instructions are essential for implementing loops and decision-making within programs.

Uploaded by

tsherings357
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Branching instructions in 8085

microprocessor

Group No.5
Sonam Tobgay
Sonam Tshering
Tandin Ghalley
Thinley Namgay
Thinley Wangmo
Defination of Branching Instruction

• Branching instructions are used to control the flow


of programs by transferring control to different parts
of the program based on specific conditions or
events. This allows the program to execute specific
tasks at specific times and in a specific order.
• Branching instructions refer to the act of switching
execution to a different instruction sequence as a
result of executing a branch instruction.
There are 3 types of branching instructions:

1. Jump Instructions – The jump instruction transfers the


program sequence to the memory address given in the
operand based on the specified flag. Jump instructions are
of 2 types: Unconditional Jump Instructions and Conditional
Jump Instructions.
(a) Unconditional Jump Instructions: Transfers the program
sequence to the described memory address.
(b) Conditional Jump Instructions: Transfers the program
sequence to the described memory address only if the
condition in satisfied.
2. Call Instructions – The call instruction transfers the program
sequence to the memory address given in the operand.
Before transferring, the address of the next instruction after
CALL is pushed onto the stack. Call instructions are of 2
types: Unconditional Call Instructions and Conditional Call
Instructions.
(a) Unconditional Call Instructions: It transfers the program
sequence to the memory address given in the operand.
b) Conditional Call Instructions: Only if the condition is
satisfied, the instructions executes.

3. Return Instructions – The return instruction transfers the


program sequence from the subroutine to the calling
program. Return instructions are of 2 types: Unconditional
Jump Instructions and Conditional Jump Instructions.
(a) Unconditional Return Instruction: The program
sequence is transferred unconditionally from the subroutine
to the calling program.
(b) Conditional Return Instruction: The program sequence is
transferred unconditionally from the subroutine to the calling
program only is the condition is satisfied.
Applications :
• Looping: Branching instructions such as JMP, JZ, JNZ,
JC, and JNC are used to implement loops in programs.
This allows the program to repeat a set of instructions
until a specific condition is met.
• Decision-making: Conditional branching instructions are
used to implement decision-making in programs. This
allows the program to make decisions based on the
current state of the microprocessor and branch to different
parts of the program accordingly.
THANK YOU!

You might also like