Hello , how to create invoke like masm , i read nasmx but to complex to me
Can somebody give a small example to improve this code
Thanks
%macro Invoke1 2
push %2
call %1
%endmacro
%macro Invoke4 5
push %5
push %4
push %3
push %2
call %1
%endmacro
extern _ExitProcess@4
extern _MessageBoxA@16
global _main
section .data
msg db "Hello",0
caption db "title",0
section .text
_main:
Invoke4 _MessageBoxA@16,0,msg,caption,0
Invoke1 _ExitProcess@4,0