q how a procedure define in assembly procedure is


Q. How a Procedure define in Assembly ?

Procedure is defined within source code by placing a directive of form:

PROC

A procedure is terminated using:

ENDP

The is identifier used for calling the procedure and is either FAR orNEAR. A procedure can be defined in:

1.  The same code segment as the statement which calls it.

2.  A code segment which is different from one comprising the statement which calls it however in the same source module as calling statement.

3.  A different source module and segment from calling statement.

In the first case code NEAR must be used as the procedure and code are in same segment. For latter two cases should be FAR.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: q how a procedure define in assembly procedure is
Reference No:- TGS0328097

Expected delivery within 24 Hours