INTRODUCTION TO MICROPEOCESSOR
MICRO PROCESSOR AND MICRO CONTROLLER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
fetch, read, write
|
|
fetch, write, write
|
|
fetch, read, read
|
|
fetch, read
|
Detailed explanation-1: -Return to main program unconditionally. It is a one-byte instruction. The execution of this instruction takes three machine cycle i.e. fetch, read, read. In first machine cycle, microprocessor fetches the opcode, during second and third machine cycles, it reads the contents of top of stack.
Detailed explanation-2: -Explanation: Ret instruction is basically used for returning back from a subroutine.
Detailed explanation-3: -The CALL instruction interrupts the flow of an exec by passing control to an internal or external subroutine. An internal subroutine is part of the calling exec. An external subroutine is another exec. The RETURN instruction returns control from a subroutine back to the calling exec and optionally returns a value.