◄Detail► ◄Key► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── Title: Call Procedure Flags: O D I T S Z A P C ═════════════════ Syntax: CALL dest -none- See also: INVOKE, JMP, RET, PROC, PROTO Description: Calls a procedure. This instruction pushes the address of the next instruction onto the stack and jumps to the address specified by the operand. For NEAR calls, SP is decreased by 2, the offset (IP) is pushed, and the new offset is loaded into IP. For FAR calls, SP is decreased by 2, the segment (CS) is pushed, and the new segment is loaded into CS. Then SP is decreased by 2 again, the offset (IP) is pushed, and the new offset is loaded into IP. A subsequent RET instruction can pop the address so that execution continues with the instruction following the call. -♦-