Friday, 18 March 2011

similarities between CALL_RET and PUSH_POP instructions

List out the similarities between CALL_RET and PUSH_POP instructions.

When CALL is executed the microprocessor automatically stores the 16-bit address of the instruction next to CALL on the stack pointer.

The programmer uses the instruction PUSH to save the contents of the register pair on the stack.

RET transfers the contents of the top two locations of the stack to the PC.

POP transfers the contents of the top two locations of the stack to the specified register pair.

Has 8 conditional RETURN instructions.

No conditional POP instructions.

1 comment: