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.

1192_cli.jpg

                                         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

how to add 111 and 333 in assembly language

Description Write a MIPS program that reads a string from user input, reverse each word (defined as a sequence of English alphabetic letters or numeric digits without any punctu

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

ROR : Rotate Right without Carry: This instruction rotates the contents of destination operand to the bit-wise right either by one or by the count specified in register CL, exclud

Assembly Code for Reading Flow & Generating Serial Output The timer is timer 1 is set for the baud rate 9600, as the crystal used is of 11.0592 Hz.  Then the timer 1 is starte

General terms for Cache : Cache Hits : When the cache consisted the information requested, the transaction is said to be a cache hit. Cache Miss : When the cache does n

The Intel Processors :         The Intel Corporation is the biggest manufacturer  of microchips  in the world,  in addition  to being  the leading provider of chips for PCs. I

Program is written but has errors returning values from the procedure.

DMA controller :     Steps include in transferring a block of data from I/O devices (for example a disk) to memory: 1. CPU sends a signal to initiate disk transfe