Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (18 sloc) 0.616 kb
fc763ca dharmatech initial checkin
authored
1
2 .include "utils-a.s"
3
4 global_text main
5
6 prepare_stack
7
8 .set offset , 0
9
10 stack_allocate ARGV , 8
11 stack_allocate A , 8
12 stack_allocate B , 8
13 stack_allocate C , 8
14
15 mov %rsi , ARGV(%rbp)
16
17 ref8 ARGV , 1 , %rdi ; call atof ; movsd %xmm0 , A(%rbp)
18 ref8 ARGV , 2 , %rdi ; call atof ; movsd %xmm0 , B(%rbp)
19
20 movsd A(%rbp) , %xmm0
21 movsd B(%rbp) , %xmm1
22
23 call atan2
24
25 movsd %xmm0 , C(%rbp)
26
27 print_double C(%rbp)
28
29 print_nl
30
31 return_integer $0
32
33
34
Something went wrong with that request. Please try again.