Conditional branch instruction-microprocessor, Assembly Language

Conditional branch Instruction

When these type of instructions are executed, they transfer control of execution to the address mention relatively in the instruction, provided the condition implicit in the op code is satisfied, or else, the execution continues in sequence. Here, the conditions mean the status of condition code flags. These types of instructions remain unaffected from any flag. The address has to be mention in the instruction relatively in the terms of displacement which ought to be lie within range -80H to 7FH (or -128 to 127) bytes from the address of the branch instruction. In other terms, only short jumps may be implemented by using the conditional branch instructions.  A label can represent the displacement, if it lies within the above mention range. The different 8086/8088 conditional branch instructions and their operations are listed in the following Table.

2183_conditional branch instruction.jpg

Last four instructions are utilized in the case of on signed binary number and decisions based operations, while all the remaining instructions may be utilized for unsigned binary operations.  The  terms  below  and  above  are usually  utilized for unsigned  numbers, while the terms greater and less are utilized for signed  numbers. A conditional jump instruction that does not examine status flags for condition testing, is following:

JCXZ 'Label' Transfer execution control to address 'Label', if register CX is equal to zero.

The conditional LOOP instructions are shown in following table along with their meanings. These instructions can be used for implement structures like REPEAT_UNTIL, DO_WHILE etc.


                                         Figure: Conditional loop instructions

The ideas regarding all these instructions will be clearer with the programming practice. This topic is intended at introducing these instructions to the readers. Of course, the examples are quoted wherever possible but the LOOP and the JUMP instructions need a sequence of instructions for explanations and will be emphasized.



Posted Date: 10/12/2012 5:14:41 AM | Location : United States

Related Discussions:- Conditional branch instruction-microprocessor, Assignment Help, Ask Question on Conditional branch instruction-microprocessor, Get Answer, Expert's Help, Conditional branch instruction-microprocessor Discussions

Write discussion on Conditional branch instruction-microprocessor
Your posts are moderated
Related Questions
assempbly language routine that takes an array named A containing n bytes of postive numebrs and fills two arranys, array B containing n words and array C containing n long words

OR: Logical OR: The OR instruction carries out the OR operation in the similar way as described in case of the AND operation. The restriction on source and destination operands ar

The Alpha : The development of the Alpha chip start in the year 1988 The new chip used 64 bit technology, let users to pack  more  complexity  into  their  programs  than  exis

Can any one assist me with this program. I am not efficient with assembly language and I need assistance badly. I am not asking anyone to do my work I just need help step by step

General Bus Operation The 8086 has a joined data and address bus commonly referred to as a time multiplexed address and data bus. The major reason behind  multiplexing address

program to find negative and positive integers from given signed numbers with output and explanation of every instructions.

AAD: ASCII Adjust for Division though the names of these 2 instructions (AAM and AAD) seem to be same, there is many difference between their functions. The AAD instruction conver


Using the windows32 framework, write a complete 80x86 program for Programming Exercises 4.3 number 3, on pages 130-131 of the textbook. Follow all coding conventions mentioned in

#question. counters using 8051.