Slide 13.5: ADDR operator Slide 13.7: PROTO directive Home |
PROC
Directive (Cont.)
label PROC [attributes] [USES reglist], parameter_list
parameter_list
is
parameter_1, parameter_2, ..., parameter_n
A single parameter has the following syntax:
paramName: type
paramName
is an arbitrary name you assign to the parameter.
Its scope is limited to the current procedure.
Type
can also be a qualified type, which may be a pointer to an existing type.
Examples of qualified types are
PTR BYTE PTR SBYTE PTR WORD PTR SWORD PTR DWORD PTR SDWORD PTR QWORD PTR TBYTE
An ABS Procedure Using
|
|
---|---|
Passing by Value | Passing by Reference |
Output | Output |