программа hello worldЭто, наверное, самая простая программа. int MessageBox( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType ); Параметры: VOID ExitProcess( UINT uExitCode, ); uExitCode - код выхода AnyFunction(first_param, second_param, third_param); push [third_param] push [second_param] push [first_param] call AnyFunction или call AnyFunction, [first_param], [second_param], [third_param]
Вот сама программа: .386 .model flat extrn MessageBoxA:proc extrn ExitProcess:proc .data mb_text db 'Hello, World!',0 mb_caption db 'My first program',0 .code start: push 0 push offset mb_caption push offset mb_text push 0 call MessageBoxA push 0 call ExitProcess ends end start |