Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; preprocessor directives
- .586
- .MODEL FLAT
- ; external files to link with
- ; stack configuration
- .STACK 4096
- ; named memory allocation and initialization
- .DATA
- numberOne DWORD 24 ;18 h
- numberTwo DWORD 12 ;c h
- ; procedure code
- .CODE
- main PROC
- mov ECX, numberOne
- push ecx
- mov ecx, numberTwo
- push ECX
- call myfunction
- mov eax, 0
- ret
- main ENDP
- myfunction PROC
- push ebp
- mov ebp,esp
- push ebx
- mov eax, [ebp+8]
- mov ebx, [ebp+12]
- add eax, ebx
- pop ebx
- pop ebp
- ret
- myfunction ENDP
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement