<<< Local Variable Initialization | Index | PROTO Directive >>> |
MASM provides the INVOKE directive to simplify coding of procedure calls.
Big advantage is that pushing parameters according to the correct calling convention is done by INVOKE automatically.
This tecnique is best used with procedure prototypes, declared by PROTO before the INVOKE.
PROTO statements inform the assembler of types and arguments of the procedure independently of the procedure definition.
This works because assembler does not require any procedure implementation details to generate proper CALL instruction.
The assembler encounters the prototype before the actual procedure definition.
Declaring procedure prototypes is a good programming practice.
<<< Local Variable Initialization | Index | PROTO Directive >>> |