-
Notifications
You must be signed in to change notification settings - Fork 0
/
assembly.txt
146 lines (146 loc) · 2.73 KB
/
assembly.txt
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
FBLD 0 WAIT #Adding
FBLD 1 WAIT
FADDP ST1;ST0 WAIT
FBSTP END
FBLD 0 WAIT #Subtracting
FBLD 1 WAIT
FSUBP ST1;ST0 WAIT
FBSTP END
FBLD 0 WAIT #Multiplying
FBLD 1 WAIT
FMULP ST1;ST0 WAIT
FBSTP END
FBLD 0 WAIT #Dividing
FBLD 1 WAIT
FDIVP ST1;ST0 WAIT
FBSTP END
FBLD 0 WAIT #Square root
FSQRT WAIT
FBSTP END
FBLD 0 JALS 46 #Logarithm
FBSTP END
FBLD 0 JALS 46 #power of
FBLD 1 WAIT
FMULP ST1;ST0 JALS 71
FBSTP END
FBLD 0 JALS 46 #x root of
FBLD 1 WAIT
FDIVP ST0;ST1 JALS 71
FBSTP END
FBLD 0 JALS 71 #exponential
FBSTP END
FBLD 0 JALS 46
FBSTP END
FBLD 0 JALS 46 #Logarithm10
FCLOAD 4 WAIT
FDIVP ST1;ST0 WAIT
FBSTP END
FBLD 0 JALS 98 #Sine
FBSTP END
FBLD 0 JALS 101 #Cosine
FBSTP END
FBLD 0 JALS 98 #tan
FBLD 0 JALS 101
FDIVR ST2;ST0 WAIT
FBSTP END
FCLOAD 0 ADDI R4;R0;3 #Logarithm
FADD ST0;ST1 ADDI R1;R0;2
FEXP ADDI R2;R0;9
FSTORE R5 WAIT
FMANT WAIT
FCLOAD 1 WAIT
FADD ST0;ST1 WAIT
FCLOAD 1 WAIT
FSUBP ST2;ST0 WAIT
FDIVP ST1;ST0 WAIT
FCLOAD 0 WAIT
FADD ST0;ST1 WAIT
FCLOAD 1 WAIT
FMUL ST0;ST2 WAIT
FMUL ST0;ST0 WAIT
FMUL ST2;ST0 WAIT
FLOAD R4 ADD R4;R4;R1
FDIVR ST3;ST0 OR R0;R4;R2 °
FADDP ST2;ST0 BNE 61
FSTORE 0 WAIT
FADD ST0;ST0 WAIT
FCLOAD 6 WAIT
FLOAD R5 WAIT
FMULP ST1;ST0 WAIT
FADDP ST1;ST0 RET
FXAM OR R2;R0;R0 ° #Exponential
FWAIT FBPL 74
FABS NOT R2;R0;R0
FCLOAD 6 ADDI R1;R0;7
FCLOAD 6 WAIT
FDIVR ST2;ST0 WAIT
FINT WAIT
FSTORE R6 WAIT
FLOAD R6 WAIT
FMULP ST1;ST0 WAIT
SUBP ST1;ST0 WAIT
FCLOAD 1 ADC R5;R0;R0
FCLOAD 1 ADC R4;R0;R0
FLOAD R5 WAIT
FLOAD R4 WAIT
FMULP ST1;ST0 ADC R4;R4;R0
FSTORE R5 OR R0;R4;R1 °
FMUL ST0;ST2 WAIT
FLOAD R5 WAIT
FDIVR ST1;ST0 WAIT
FADDP ST2;ST0 BNE 84
FSTORE 0 WAIT
FLOAD R6 WAIT
FINT WAIT
FSCALE OR R0;R0;R2 °
FMULP ST1;ST0 BNE 98
FWAIT RET
FCLOAD 1 WAIT
FDIVRP ST0;ST1 RET
FILOAD 90 #Sine
FSUBP ST1;ST0 JALS 103
FWAIT RET
FABS OR R3;R0;R0 #Cos
FILOAD 90
FILOAD 90
FDIVR ST2;ST0 WAIT
FSTORE R7 WAIT
FLOAD R7 WAIT
FINT WAIT
FMULP ST1;ST0 WAIT
FSUBP ST1;ST0 WAIT
FCLOAD 2 WAIT
FMULP ST1;ST0 WAIT
FILOAD 180
FDIVP ST1;ST0 ADDI R2;R0;10
FMUL ST0;ST0 ADDI R4;R0;2
FCLOAD 1 WAIT
FCLOAD 1 ADC R6;R0;R0
FLOAD R6 WAIT
FLOAD R4 SBC R5;R4;R0
FLOAD R5 WAIT
FMULP ST1;ST0 ADDI R4;R4;2
FMULP ST1;ST0 ANDI R1;R4;2
FSTORE R6 WAIT
FMUL ST0;ST2 OR R0;R1;R0 °
FLOAD R6 WAIT
FDIVR ST1;ST0 BEQ 129
FADDP ST2;ST0 JMP 130
FSUBP ST2;ST0 WAIT
FWAIT OR R0;R4;R2 °
FWAIT BNE 119
FSTORE 0 ANDI R3;R7;1
FWAIT OR R0;R3;R0 °
FWAIT BEQ 139
FMUL ST0;ST0 WAIT
FCLOAD 1 WAIT
FSUBPR ST0;ST1 WAIT
FSQRT WAIT
FWAIT ANDI R1;R7;2
FWAIT SHR R1;R1;R0
FWAIT XOR R3;R3;R1
FWAIT OR R0;R3;R0 °
FWAIT BEQ 146
FCLOAD 0 WAIT
FSUBRP ST0;ST1 RET
FWAIT RET