Iret-loop-unconditional branch instruction-microprocessor, Assembly Language

IRET : Return from ISR:-

When an interrupt service routine is called, before transferring control to it, the IP, CS  register and flag registers are stored in the stack to mention the location from where the execution is to be continued, after the ISR is executed. Hence, in the ending of each ISR, when IRET is executed, the values of IP, CS register and flags are retrieved from the stack to continue the execution of the main program. The stack is modified consequently.


LOOP :
Loop Unconditionally:-

This instruction executes the part of the program from the address or label mention in the instruction up to the loop instruction, CX number of  times. Following sequence describe the execution. On every iteration, register CX is decremented automatically. In other terms, this instruction implements JUMF IF NOT ZERO and DECREMENT COUNTER structure.

1285_LOOP.jpg

The execution proceeds in the sequence, after the loop is executed, CX number of times. Lf CX is already OOH, the execution continues in sequence. Flags are remaining unaffected by this instruction.

 

Posted Date: 10/12/2012 4:16:23 AM | Location : United States







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

Write discussion on Iret-loop-unconditional branch instruction-microprocessor
Your posts are moderated
Related Questions
Ask 2. Exchange higher byte of AX and higher byte of BX registers by using memory location 0160 in between the transfer. Then stores AX and BX registers onto memory location 0174 o

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

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?

write a program assembly language for adding two 3*3 matrix

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

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

Program : Write an assembly program to find out the number of positive numbers and negative numbers from a given series of signed numbers. Solution : Take the i th num

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to