Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .386
- .model flat, C
- .data
- DifferentInputs PROTO val1:DWORD, val2:DWORD, val3:DWORD
- .code
- main PROC
- INVOKE DifferentInputs,1,2,3
- ; Equivalent to doing
- ; push 3
- ; push 2
- ; push 1
- ; call DifferentInputs
- ; add esp, 3*4
- ; INVOKE ExitProcess, 0
- ret
- main ENDP
- ;Takes 3 inputs and checks to see if any of them are the same
- DifferentInputs PROC, val1:DWORD, val2:DWORD, val3:DWORD
- mov eax, val1
- cmp eax, val2
- ret
- DifferentInputs ENDP
- End main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement