-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (23 loc) · 986 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hack Assembler</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Hack Assembler</h2>
<p>Here you can assemble Hack assembly code into Hack machine language.</p>
<p>Either copy and paste into the window or upload a <code>.asm</code> file. If the resulting code exceeds 50 lines, a <code>.hack</code> file will be downloaded containing the assembly code.</p>
<p>You can view the <a href="https://github.com/Evoniuk/Hack-Assembler">source code here</a>.</p>
<textarea placeholder="enter code here" id="codeInput"></textarea>
<button type="button" id="inputCode">submit</button>
<p>Or enter a file:</p>
<input type="file" accept=".asm" id="fileInput" name="myfile">
<br>
<pre id="outputOriginal"></pre>
<pre id="output"></pre>
<script type="module" src="./main.js"></script>
</body>
</html>