-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasm.txt
More file actions
123 lines (123 loc) · 992 Bytes
/
Copy pathasm.txt
File metadata and controls
123 lines (123 loc) · 992 Bytes
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
call :hentai
hlt
hentai:
push 0
pop [0]
in
pop [0]
push 0
pop [1]
in
pop [1]
push 0
pop [2]
in
pop [2]
push [0]
push 0
je :if_1
jump :if_not_1
if_1:
push [1]
push [2]
call :Linear
jump :end_if_1
if_not_1:
else_1:
push [0]
push [1]
push [2]
call :Kvadrupl
end_if_1:
ret
jump :jump_over_Linear
Linear:
pop [4]
pop [3]
push 1
minus
push [4]
mul
push [3]
div
out
ret
jump_over_Linear:
jump :jump_over_Kvadrupl
Kvadrupl:
pop [7]
pop [6]
pop [5]
push [6]
push [6]
mul
push 4
push [5]
mul
push [7]
mul
sub
pop [8]
push [8]
push 0
jb :if_2
jump :if_not_2
if_2:
push 0
ret
jump :end_if_2
if_not_2:
push [8]
push 0
je :elif_1
jump :elif_not_1
elif_1:
push 1
minus
push [6]
mul
push 2
div
push [5]
div
out
push 1
ret
jump :end_elif_1
elif_not_1:
else_2:
push [8]
sqrt
pop [8]
push 1
minus
push [6]
mul
push [8]
add
push 2
div
push [5]
div
pop [9]
push 1
minus
push [6]
mul
push [8]
sub
push 2
div
push [5]
div
pop [10]
push [9]
out
push [10]
out
push 2
ret
end_elif_1:
end_if_2:
ret
jump_over_Kvadrupl: