PROC Initiate Procedure Definition MASM Directive
name PROC [distance]
statements
name ENDP
Marks the beginning of a procedure.
Notes: Name must be unique.
Distance may be either NEAR (within the same segment) or
FAR (not within the same segment). NEAR is assumed if no
distance is specified.
Nested procedures are allowed.
The procedure should contain at least 1 RET, since a RET
is not automatically generated for the user at the end
of the procedure, as in other programming languages.
The name has the same attributes that a label has,
enabling the ability to call, jump, or loop using the
name as a destination.
Seealso:
This page last updated on Fri Nov 30 10:49:50 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster