<<< Procedure Prototypes | Index | Prototype Structure >>> |
The easiest way to create prototypes with PROTO is to
write your procedure
copy the first line
change PROC to PROTO and remove the USES reglist, the prologuearg field, and the visibility field.
For example,
; Procedure prototypes: load_data PROTO NEAR32 C, arg1:WORD, arg2:WORD, arg3:WORD save_data PROTO NEAR32 C, arg1:DWORD, arg2:BYTE . ; Procedure calls: INVOKE load_data, ax, x, y INVOKE save_data, ebx, 10 . ; Procedure declarations: load_data PROC NEAR32 C, arg1:WORD, arg2:WORD, arg3:WORD . save_data PROC NEAR32 C PUBLIC USES di si, arg1:DWORD, arg2:BYTE .
<<< Procedure Prototypes | Index | Prototype Structure >>> |