Ret-unconditional branch instruction-microprocessor, Assembly Language

RET : Return from the Procedure:-

At each CALL instruction, the register IP and register CS of the next instruction is pushed to stack, before the control is transferred to the process. In the ending of the procedure, the RET instruction ought to be executed. When it is executed, previously stored content of register IP and CS along with the flags is retrieved into the CS register, IP register and flag registers from the stack and the execution of the main program continues further. The procedure can be a far or a near procedure. In the case of a FAR procedure, the existing contents of SP points to IP and CS register at the time of return. While in the case of a NEAR procedure, it points to only IP. Depending on the type of procedure and the SP contents, the RET instruction has four types.

1. Return within the segment.

2. Return within the segment adding 16-bit immediate displacement to the SP contents.

3. Return the intersegment.

4. Return the intersegment adding 16-bit immediate displacement to the SP contents.

 

Posted Date: 10/12/2012 3:58:04 AM | Location : United States







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

Write discussion on Ret-unconditional branch instruction-microprocessor
Your posts are moderated
Related Questions

General Data Registers Given figure indicate the register organization of 8086. The registers DX, CX, BX and AX are the general purpose 16-bit registers. AX is behaved as 16-bi

The processor 8088 The launching of the processor 8086 is consider as a remarkable step in the development of high speed computing machines. Before the introduction  of 8086 mo

a pseudo-code to add username and password combination up to a limit of 10

how we can take permission

write a program that calculates the fibonacci series: except for the first two numbers in the sequence

LIST p=18f4550 #include org 0x0000 movlw 0x00 _________ movlw 0xFF movwf PORTB end .

ASSUME: Assume Logical Segment Name:- The ASSUME directive which is used to inform the assembler, the specified names of the logical segments to be consider for different segme

RICS/CISC Architecture An essential aspect of computer architecture is the design of the instruction set for the processor.  The instruction set selected for a specific compute

AAA: ASCII Adjust after Addition operation the AAA instruction is executed after an ADD instruction that adds 2 ASCII coded operands to give a byte of outcome in the AL. The AAA i