Conditional branch instruction-microprocessor, Assembly Language

Assignment Help:

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.

 

 


Related Discussions:- Conditional branch instruction-microprocessor

Logical instruction-microprocessor, Logical Instruction : This type of...

Logical Instruction : This type of instructions is utilized for carrying out the bit by bit shift, basic logical operations or rotate. All of the condition code flags are affe

English, how we can take permission

how we can take permission

Assignment, 1. Write an assembly program that adds the elements in the odd ...

1. Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register? array1 DWORD 10, 20, 30, 40, 50, 6

String manipulation instruction-microprocessor, String Manipulation Instruc...

String Manipulation Instruction A series of words or data bytes are available in memory at consecutive locations, to be mention to individually or collectively, are known as by

Microprocessor, from pin description it seems that 8086 has 16 address/data...

from pin description it seems that 8086 has 16 address/data lines i.e.AD0_AD15.The physical address is however is larger than 2^16.How this condition can be handled

Space don''t come in ASCII characters while printing?, .MODEL SMALL .STACK...

.MODEL SMALL .STACK 100H .DATA PROMPT DB \''The 256 ASCII Characters are : $\'' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX

Control transfer or branching instruction-microprocessor, Control Transfer ...

Control Transfer or Branching Instruction Control transfer instructions transfer the flow of execution of the program to a new address specified in the instruction indirectly o

Merge Sort, Write a program to merge two sorted arrays to create a third so...

Write a program to merge two sorted arrays to create a third sorted array containing all values from the two original arrays. Merge is a key component to the mergesort algorithm.

Operating System, Why is the capability to relocate processes desirable?

Why is the capability to relocate processes desirable?

Org-proc-assemblers directive-microprocessor, ORG : Origin:- The ORG di...

ORG : Origin:- The ORG directive directs the assembler to begin the memory allotment for the specific segment, code or block from the declared  address in the ORG  statement. W

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd