The CALL instruction
Procedure call.
The CALL instruction format
| Instruction | Description |
|---|---|
| CALL rel16 | Near procedure call with a relative displacement. |
| CALL reg/mem16 | Near procedure call to an absolute address in a register/memory. |
| CALL ptr16:16 | Far procedure call by pointer. |
| CALL mem16:16 | Far procedure call to an address in memory. |
The CALL instruction transfers control to the called procedure. Before doing so, it saves the address of the instruction following CALL (the return address) on the stack. On a near call (within the same code segment) only IP is pushed onto the stack. On a far call (to another segment) both CS and IP are pushed. Return from the procedure is performed by the RET or RETF instruction.
Processor status flags
CF
NoPF
NoAF
NoZF
NoSF
NoTF
NoIF
NoDF
NoOF
No