Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (20 sloc) 0.636 kb
.include "utils.s"
global_text main
prepare_stack
.set offset , 0
stack_allocate ARGV , 8
stack_allocate A , 8
stack_allocate B , 8
stack_allocate C , 8
mov %rsi , ARGV(%rbp)
ref8 ARGV , 1 , %rdi ; call atof ; movsd %xmm0 , A(%rbp)
ref8 ARGV , 2 , %rdi ; call atof ; movsd %xmm0 , B(%rbp)
movsd A(%rbp) , %xmm0
movsd B(%rbp) , %xmm1
addsd %xmm1 , %xmm0
movsd %xmm0 , C(%rbp)
print_double C(%rbp)
print_nl
mov $0 , %rax
leave
ret
Jump to Line
Something went wrong with that request. Please try again.