Advertisement
Guest User

Untitled

a guest
Feb 5th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2. printf_format:
  3.     .string "%lf\n"
  4.  
  5.     .text
  6.     .global main
  7.  
  8. main:
  9.     pushl   %ebp
  10.     movl    %esp, %ebp
  11.  
  12.     subl    $8, %esp   
  13.  
  14.     pushl   $0x40100000
  15.     pushl   $0x00000000
  16.  
  17.     pushl   $0x40080000
  18.     pushl   $0x00000000
  19.    
  20.     pushl   24(%esp)
  21.  
  22.     call    myhypot
  23.  
  24.  
  25.     movl    %ebp, %esp
  26.     popl    %ebp
  27.  
  28.  
  29. myhypot:   
  30.    
  31.     pushl   %ebp
  32.     movl    %esp, %ebp 
  33.  
  34.     movsd   20(%ebp), %xmm0
  35.     mulsd   %xmm0, %xmm0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement