Computer Science, asked by priyanimmaluri5849, 1 year ago

Differences between call and ret function in microprocesssor 8085

Answers

Answered by vedprakashpal3p57skg
2

SERIAL NO. JUMP CALL

1. Program control is transferred to a memory location which is in the main program Program Control is transferred to a memory location which is not a part of main program

2. Immediate Addressing Mode Immediate Addressing Mode + Register Indirect Addressing Mode

3. Initialisation of SP(Stack Pointer) is not mandatory Initialisation of SP(Stack Pointer) is mandatory

4. Value of Program Counter(PC) is not transferred to stack Value of Program Counter(PC) is transferred to stack

5. After JUMP, there is no return instruction After CALL, there is a return instruction

6. Value of SP does not changes Value of SP is decremented by 2

7. 10 T states are required to execute this instruction 18 T states are required to execute this instruction

8. 3 Machine cycles are required to execute this instruction 5 Machine cycles are required to execute this instruction

Answered by StaceeLichtenstein
2

Differences between call and ret function in microprocesssor 8085 is given below.

Explanation:

  • RET is a procedure for marking the indication of the subroutine where as In the call function we used the call address.
  • In the call function after executing the instruction the control is moving in the subroutine where as In the ret function the control is moved to the main program .
  • Ret function has no arguments where as the call function in microprocessor has arguments .

Learn More :

  • brainly.in/question/14896815
Similar questions