Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- computeFirstBinom(int, int):
- mov eax, edi
- imul eax, esi
- imul edi, edi
- imul esi, esi
- lea eax, [rdi+rax*2]
- add eax, esi
- ret
- main:
- push rbp
- push rbx
- mov rbp, rsi
- mov edx, 10
- sub rsp, 8
- mov rdi, QWORD PTR [rsi+8]
- xor esi, esi
- call strtol
- mov rdi, QWORD PTR [rbp+16]
- mov rbx, rax
- mov edx, 10
- xor esi, esi
- call strtol
- mov edx, ebx
- add rsp, 8
- imul edx, eax
- imul ebx, ebx
- imul eax, eax
- lea edx, [rbx+rdx*2]
- pop rbx
- pop rbp
- add eax, edx
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement