<<< Defining Procedures | Index | Passing Arguments on the Stack >>> |
The syntax for PROC is:
The parts of the PROC directive include:
label - the name of the procedure.
attributes - call distance, calling convention, and visibility of the procedure.
reglist - a list of registers (separated by spaces) following the USES keyword
The registers will be saved on the stack upon procedure entry.
Registers in the list must be separated by blanks or tabs, not by commas.
The assembler generates prologue code to push registers onto the stack upon entry.
Upon exit assembler generates epilogue code to pop the saved registers off the stack.
parameter - the list of input parameters to be passed to the procedure on the stack.
<<< Defining Procedures | Index | Passing Arguments on the Stack >>> |