Include irvine32.inc
;AddTwo.asm-adds two 32-bit integer.
;chapter3 example
.386
.data
l dword 4
w dword 5
ans dword ?
.stack 4096
ExitProcess proto,dwExitCode:dword
.code
main proc
mov eax,l
mov ebx,2
mul ebx
mov ans,eax
mov eax,0
mov eax,w
mul ebx
add eax,ans
call writeint
invoke ExitProcess,0
main endp
end main
No comments:
Post a Comment