You are here : assembly8086CALL

CALL - 8086

Transfers control to procedure, return address is (IP) is pushed to stack. 4-byte address may be entered in this form: 1234h:5678h, first value is a segment second value is an offset (this is a far call, so CS is also pushed to stack).


Syntax

CALL Procedure name
CALL label
CALL 4-byte Address


Example

ORG 100h		;for COM file
CALL p1
ADD AX,1
RET			;Return to OS
p1 PROC			;Procedure Declaration
  MOV AX,1234h
  RET			;Return to Caller
p1 ENDP


Output / Return Value


Limitations


Alternatives / See Also


Reference