
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>proc initiate procedure definition masm directive</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.
See Also: ENDP NEAR FAR RET
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson