Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         .text
  2.         .global process
  3. process:
  4.         push    %ebp
  5.         mov     %esp, %ebp
  6.         push    %edx
  7.         push    %esi
  8.         mov     8(%ebp), %ebx
  9.         movl    (%ebx), %eax
  10.         movl    8(%ebx), %edx
  11.         imull   %edx
  12.         movl    %eax, %esi
  13.         movl    %edx, %ecx
  14.         movl    4(%ebx), %eax
  15.         movl    12(%ebx), %edx
  16.         imull   %edx
  17.         addl    %esi, %eax
  18.         adcl    %ecx, %edx
  19.         jo      overflow
  20. end:
  21.         pop     %esi
  22.         pop     %edx
  23.         movl    %ebp, %esp
  24.         popl    %ebp
  25.         ret
  26. overflow:
  27.         movl    $0, %edx
  28.         movl    $0  , %eax
  29.         jmp     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement