SKYSPIN
Branching instructions refer to the act of switching execution to a
different instruction sequence as a result of executing a branch
instruction.
The three types of branching instructions are:
(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 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. Jump instructions are 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.
Branching instructions in 8085 microprocessor
The three types of branching instructions are:
- Jump (unconditional and conditional)
- Call (unconditional and conditional)
- Return (unconditional and conditional)
(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 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. Jump instructions are 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.
0 Comments