Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int addArray(int *, int) {
- _asm {
- mov edx, 0;
- mov eax, [ebp + 8]
- mov ebx, [ebp + 12]
- mov ecx, 0
- _while:
- cmp ecx, ebx
- je _endwhile
- add edx, [eax + ecx * 4]
- inc ecx
- jmp _while
- _endwhile:
- mov eax, edx
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement