<<< CALL and RET Instructions | Index | Defining Procedures >>> |
The Assembler supports formal construct for defining procedures.
Assembly-language procedures are similar to C functions.
The PROC and ENDP directives mark the beginning and the ending of a procedure.
Additionally, PROC can automatically:
Preserve register values that should not change but that the procedure might otherwise alter.
Set up a local stack pointer, so that you can access parameters and local variables placed on the stack.
Adjust the stack when the procedure ends.
<<< CALL and RET Instructions | Index | Defining Procedures >>> |