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 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.


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
Write an application that does the following:(1) fill an array with 50 random integers; (2) loop through the array, displaying each value, and count the number of negative values;

#Write a function to calculate the following arithmetic operation and return the result. A = 2 + (3x)3 + y/2n (x, y and n are arguments of the function where x is an integer in the

Format of Control Register The format for the control register is given in Figure. Bit 0 of this register might be one before data may be output  and  bit  two  might be  one

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

LENGTH : Byte Length of a Label: This directive is not available in MASM. This is used to mention to the length of a data array or a string. MOV CX. LENGTH ARRAY This sta

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..

) What is the difference between re-locatable program and re-locatable data?

Write an assembly program that will compute and output tuition cost: a. accept keyboard input of the number of credit hours taken b. accept keyboard input of the type of classes 1

to find the matrix addition