-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcel_to_fah.html
223 lines (217 loc) · 6.58 KB
/
cel_to_fah.html
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html>
<!-- THIS FILE WAS GENERATED BY A SCRIPT: DO NOT EDIT IT! -->
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
var status = 'on';
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
if (status == 'on') {
$('#sidebarText').text("Expand Side Nav");
status = 'off';
} else {
$('#sidebarText').text("Collapse Side Nav");
status = 'on';
}
});
});
</script>
<title>
Intel
</title>
</head>
<body>
<div class="wrapper">
<!-- Sidebar Holder -->
<nav id="sidebar">
<div id="sidebarCollapse">
<div class="sidebar-header">
<h1>Emu86</h1>
</div>
</div>
<ul class="list-unstyled components">
<li>
<a href="index.html">
<i class="glyphicon glyphicon-home"></i>
Home
</a>
</li>
<li>
<a href="#serverSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-hdd"></i>
Servers
</a>
<ul class="collapse list-unstyled nested" id="serverSubmenu">
<li>
<a href="http://www.emu86.org/">
Emu86 Production Server
</a>
</li>
<li>
<a href="http://emu86.pythonanywhere.com/">
Emu86 Development Server
</a>
</li>
</ul>
</li>
<li>
<a href="#documentSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-book"></i>
Documentation
</a>
<ul class="collapse list-unstyled nested" id="documentSubmenu">
<li>
<a href="help.html">
Language Description
</a>
</li>
<li>
<a href="EmuPresent.html">
Emu86 Presentation
</a>
</li>
<li>
<a href="IntegratingJenkinsWGithubSlack.pdf">
Our Jenkins Setup
</a>
</li>
</ul>
</li>
<li>
<a href="#programsSubmenu" data-toggle="collapse" aria-expanded="false">
<i class="glyphicon glyphicon-duplicate"></i>
Sample Programs
</a>
<ul class="collapse list-unstyled nested" id="programsSubmenu">
<li>
<a href ="area.html">
Calculate area of a rectangle
</a>
</li>
<li>
<a href ="arithmetic_expression.html">
Calculate an arithmetic expression
</a>
</li>
<li>
<a href ="arithmetic_shift.html">
Arithmetic shift
</a>
</li>
<li>
<a href ="array.html">
Declare an array
</a>
</li>
<li>
<a href ="array_average_test.html">
Calculate average of an array of numbers
</a>
</li>
<li>
<a href ="cel_to_fah.html">
Convert from Celsius to Fahrenheit
</a>
</li>
<li>
<a href ="change_array_elem_test.html">
Change array elements below min to set minimum
</a>
</li>
<li>
<a href ="data.html">
How to use the .data section
</a>
</li>
<li>
<a href ="int_square_root.html">
Calculate square root of a number
</a>
</li>
<li>
<a href ="key_test.html">
Uses our keyboard interrupt
</a>
</li>
<li>
<a href ="log.html">
Calculate log in base 2
</a>
</li>
<li>
<a href ="loop.html">
A simple loop
</a>
</li>
<li>
<a href ="mem_register_test.html">
Store values into memory
</a>
</li>
<li>
<a href ="power.html">
Raise a number to a power
</a>
</li>
<li>
<a href ="sum_test.html">
Add two numbers
</a>
</li>
</ul>
</li>
<li>
<a href="https://github.com/gcallah/Emu86">
<i class="glyphicon glyphicon-list-alt"></i>
Source Code
</a>
</li>
</ul>
</nav>
<div id="content">
<h1>
Intel
</h1>
<p>
Declare a Celsius temperature
</p>
<p>
Uninitialized fTemp
</p>
<pre>
<code>
.data
cTemp DW 35
fTemp DW ?
</code>
</pre>
<p>
Convert from Celsius to Fahrenheit
</p>
<p>
Store result in fTemp
</p>
<pre>
<code>
.text
mov eax, [cTemp]
imul eax, 9
add eax, 2
mov ebx, 5
idiv ebx
add eax, 32
mov [fTemp], eax
</code>
</pre>
</div>
</div>
</body>
</html>