Compare CALL and PUSH Instructions?




Compare CALL and PUSH Instructions?

CALL instruction is used to call a subroutine. Subroutines are often used to perform tasks that need to be performed frequently. PUSH The programmer uses the instruction to save the contents of the register pair on the stack.

The differences Between CALL and PUSH instructions are:

For Example
CALL PUSH
After the execution of CALL instructions, the μP automatically stores the 16 bit. PUSH instructions is used to save the contents of specified registers pair on the stack.
After the execution of CALL instructions, the contents of stack pointer register are decremented by 2. In this case after PUSH operation, contents of stack pointer are also decremented by 2.