386 model flat stdcall includelib kernel32 lib ExitProcess PROTO DWORD

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.386
.model flat, stdcall
includelib kernel32.lib
ExitProcess PROTO ,:DWORD
.data
X dd 5
Y dd 7
Z dd 9
res dd ?
tmp dd ?
.code
Winmain PROC
mov eax,X
xor edx,edx
mov ebx,Y
div ebx
mov tmp,eax
mov eax,Z
mov ebx,5
mul ebx
add eax,tmp
mov res,eax
push 0
call ExitProcess
Winmain endp
end Winmain