adplus-dvertising
frame-decoration

Question

ret instruction is used for

a.

determining the end of the program

b.

for returning back from the subroutine to the main program

c.

for transferring data from one place to another

d.

none of the mentioned

Posted under Computer Architecture

Answer: (b).for returning back from the subroutine to the main program

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. ret instruction is used for

Similar Questions

Discover Related MCQs

Q. According to conventions being followed, R12 to R15 are used for

Q. We can store the temporary results across a call instruction with the help of which of the following registers

Q. Can we allocate variables on the stack?

Q. Which registers are reserved for passing the parameters to a subroutine and then returning the final result?

Q. What actually is the order of stack frame for a parameter to pass to a subroutine?

Q. When any subroutine is called, then the first value of stack will be

Q. After subroutine which of the instruction is used for returning the pointer back to the main program?

Q. Is the approach of making subroutines effective or not?

Q. MSP430 uses vectored interrupts?

Q. Which of the following is true?

Q. After interrupt has occurred, the stack is filled with

Q. What is the function of __ __interrupt keyword

Q. What is the difference between the INTVEC and the RSEG keywords?

Q. For enabling any interrupt, firstly

Q. Non mask able vectors are stored at different vector locations?

Q. Which of the following can generate a non mask able interrupt?

Q. External RST/NMI pin is a non maskable interrupt?

Q. How many cycles are used by MSP430, when reti instruction is executed?

Q. Their are how many MSP430’s low power modes available in the chip?

Q. Which of the following are the low power modes?