-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommand_line_help.html
executable file
·229 lines (197 loc) · 10 KB
/
command_line_help.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
224
225
226
227
228
229
<!DOCTYPE html>
<html lang="en">
<!-- Head -->
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-186823627-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-186823627-2');
</script>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>CREATOR - didaCtic and geneRic assEmbly progrAmming simulaTOR</title>
<!-- Required stylesheets -->
<link type="text/css" rel="stylesheet" href="external/bootstrap_vue/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="external/bootstrap_vue/bootstrap-largegrid.min.css"/>
<link type="text/css" rel="stylesheet" href="external/bootstrap_vue/bootstrap-vue.min.css"/>
<link type="text/css" rel='stylesheet' href="external/fontawesome/css/all.css">
<link rel="stylesheet" href="css/style.css">
<!-- Required scripts -->
<script src="external/bootstrap_vue/polyfill.min.js"></script>
<script src="external/bootstrap_vue/vue.min.js"></script>
<script src="external/bootstrap_vue/bootstrap-vue.min.js"></script>
<script src="external/jquery.min.js"></script>
<!-- Swiper -->
<link rel="stylesheet" href="external/swiper/swiper-bundle.css"/>
<link rel="stylesheet" href="external/swiper/swiper-bundle.min.css"/>
<script src="external/swiper/swiper-bundle.js"></script>
<script src="external/swiper/swiper-bundle.min.js"></script>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="./images/icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="./images/icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="./images/icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="./images/icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="./images/icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="./images/icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="./images/icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="./images/icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./images/icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="./images/icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="./images/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="./images/icons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="./images/icons/favicon-16x16.png">
<link rel="manifest" href="./images/icons/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="./images/icons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<!-- Body -->
<body>
<div id="app">
<template>
<!-- Navbar -->
<header>
<navbar-creator></navbar-creator>
</header>
<div class="contenedor row" style="margin-top: 10vh; text-align: center; margin-bottom: 7vh">
<div class="col-lg-12 col-sm-12 row p-0 m-0">
<div class="col-lg-2 col-sm-1 p-0"></div>
<div class="col-lg-8 col-sm-10">
<div class="col-lg-12 col-sm-12" style="text-align: center;" id="command_line">
<h4><b>Command Line</b></h4>
<hr>
<ul>
<b-media tag="li" style="text-align: left;">(1) Prerequisites</b-media>
<br>
<ul>
<b-media tag="li" class="mb-2">
<b-card-group deck>
<b-card>
<b-row no-gutters>
<b-col md="12">
<b-card-text style="text-align: left ;margin:2%;">
<ol>
<li>Use Linux and have node.js and npm installed</li>
<li>Donwload the repository --> <code>git clone https://github.com/creatorsim/creator.git</code></li>
<li>Enter into the creator directory--> <code>cd creator</code></li>
<li>Install the necessary packages --> <code>npm install terser jshint colors yargs readline-sync</code></li>
</ol>
</b-card-text>
</b-col>
</b-row>
</b-card>
</b-card-group>
</b-media>
</ul>
</ul>
<ul>
<b-media tag="li" style="text-align: left;">(2) Compile and run a program</b-media>
<br>
<ul>
<b-media tag="li" class="mb-2">
<b-card-group deck>
<b-card>
<b-row no-gutters>
<b-col md="12">
<b-card-text style="text-align: center;margin:2%;">
<code>./creator.sh -a <architercture file> -s <assembly file></code>
<br>
<br>
Example:
<br>
<code>./creator.sh -a architecture/MIPS_32.json -s examples/MIPS/example2.txt</code>
<br>
Output:
<br>
<b-img src="images/command_line/cm_execution.png" fluid alt="Command line execution output"></b-img>
</b-card-text>
</b-col>
</b-row>
</b-card>
</b-card-group>
</b-media>
</ul>
</ul>
<ul>
<b-media tag="li" style="text-align: left;">Save the final state execution into a file</b-media>
<br>
<ul>
<b-media tag="li" class="mb-2">
<b-card-group deck>
<b-card>
<b-row no-gutters>
<b-col md="12">
<b-card-text style="text-align: center;margin:2%;">
<code>./creator.sh -a <architercture file> -s <assembly file> -o min > <output file></code>
<br>
<br>
Example:
<br>
<code>./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min > output.txt</code>
</b-card-text>
</b-col>
</b-row>
</b-card>
</b-card-group>
</b-media>
</ul>
</ul>
<ul>
<b-media tag="li" style="text-align: left;">Compare final state execution and the state saved on file</b-media>
<br>
<ul>
<b-media tag="li" class="mb-2">
<b-card-group deck>
<b-card>
<b-row no-gutters>
<b-col md="12">
<b-card-text style="text-align: center;margin:2%;">
<code>./creator.sh -a <architercture file> -s <assembly file> -o min -r <compare file></code>
<br>
<br>
Example:
<br>
<code>./creator.sh -a ./architecture/MIPS_32.json -s ./examples/MIPS/example2.txt -o min -r output.txt</code>
<code>.</code>
</b-card-text>
</b-col>
</b-row>
</b-card>
</b-card-group>
</b-media>
</ul>
</ul>
<ul>
<b-media tag="li" style="text-align: left;">Show command line help</b-media>
<br>
<ul>
<b-media tag="li" class="mb-2">
<b-card-group deck>
<b-card>
<b-row no-gutters>
<b-col md="12">
<b-card-text style="text-align: center;margin:2%;"><code>./creator.sh -h</code></b-card-text>
</b-col>
</b-row>
</b-card>
</b-card-group>
</b-media>
</ul>
</ul>
</div>
</div>
<div class="col-lg-2 col-sm-1 p-0"></div>
</div>
</div>
</template>
</div>
<!-- Required scripts -->
<script>
document.write("<script src=\"js/min.creator_web.js?id=" + new Date().getTime() + "\"><\/script>");
</script>
</body>
</html>