-
Notifications
You must be signed in to change notification settings - Fork 3
/
add.S
executable file
·47 lines (36 loc) · 961 Bytes
/
add.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{module, add}. %% version = 0
{exports, [{add,2},{module_info,0},{module_info,1}]}.
{attributes, []}.
{labels, 9}.
{function, add, 2, 2}.
{label,1}.
{func_info,{atom,add},{atom,add},2}.
{label,2}.
{allocate,1,2}.
{move,{x,1},{y,0}}.
{call,1,{f,4}}.
{move,{x,0},{x,1}}.
{move,{y,0},{x,0}}.
{move,{x,1},{y,0}}.
{call,1,{f,4}}.
{gc_bif,'+',{f,0},1,[{y,0},{x,0}],{x,0}}.
{deallocate,1}.
return.
{function, id, 1, 4}.
{label,3}.
{func_info,{atom,add},{atom,id},1}.
{label,4}.
return.
{function, module_info, 0, 6}.
{label,5}.
{func_info,{atom,add},{atom,module_info},0}.
{label,6}.
{move,{atom,add},{x,0}}.
{call_ext_only,1,{extfunc,erlang,get_module_info,1}}.
{function, module_info, 1, 8}.
{label,7}.
{func_info,{atom,add},{atom,module_info},1}.
{label,8}.
{move,{x,0},{x,1}}.
{move,{atom,add},{x,0}}.
{call_ext_only,2,{extfunc,erlang,get_module_info,2}}.