-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (152 loc) · 6.41 KB
/
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
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<style>
.keyboardpanel
{
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
text-align: center;
}
.vickey
{
padding: 0px;
width: 27px;
height: 40px;
margin: 2px;
margin-bottom: 3px;
font-size: 25px;
font-weight: bold;
font-family: monospace;
color: white;
background: #666;
border: 0px solid;
border-radius: 4px;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
.vickey:active
{
background: #aaa;
}
.halfspace
{
width: 00px;
height: 120px;
margin: 2px;
background: none;
border: 0px solid;
padding: 0px;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
</style>
</head>
<body style="padding:0; margin:0; background: black; color: green;">
<div style="margin: auto;" id="screen">
<canvas id="canvas" style="display: block; border:black 0px solid; padding: 0px; margin:auto;"></canvas>
</div>
<!--
<div style="margin: auto" id="screen_tms9928">
<canvas id="canvas_tms9928" style="display: block; border:rgb(98, 98, 98) 3px solid; padding: 0px; margin:auto; ">aaa</canvas>
</div>
-->
<!--
<div class="keyboardpanel">
<button class="vickey" onclick="sendkey(49)">1</button>
<button class="vickey" onclick="sendkey(50)">2</button>
<button class="vickey" onclick="sendkey(51)">3</button>
<button class="vickey" onclick="sendkey(52)">4</button>
<button class="vickey" onclick="sendkey(53)">5</button>
<button class="vickey" onclick="sendkey(54)">6</button>
<button class="vickey" onclick="sendkey(55)">7</button>
<button class="vickey" onclick="sendkey(56)">8</button>
<button class="vickey" onclick="sendkey(57)">9</button>
<button class="vickey" onclick="sendkey(48)">0</button><br>
<button class="vickey" onclick="sendkey(81)">Q</button>
<button class="vickey" onclick="sendkey(87)">W</button>
<button class="vickey" onclick="sendkey(69)">E</button>
<button class="vickey" onclick="sendkey(82)">R</button>
<button class="vickey" onclick="sendkey(84)">T</button>
<button class="vickey" onclick="sendkey(89)">Y</button>
<button class="vickey" onclick="sendkey(85)">U</button>
<button class="vickey" onclick="sendkey(73)">I</button>
<button class="vickey" onclick="sendkey(79)">O</button>
<button class="vickey" onclick="sendkey(80)">P</button><br>
<span class="halfspace"></span>
<button class="vickey" onclick="sendkey(65)">A</button>
<button class="vickey" onclick="sendkey(83)">S</button>
<button class="vickey" onclick="sendkey(68)">D</button>
<button class="vickey" onclick="sendkey(70)">F</button>
<button class="vickey" onclick="sendkey(71)">G</button>
<button class="vickey" onclick="sendkey(72)">H</button>
<button class="vickey" onclick="sendkey(74)">J</button>
<button class="vickey" onclick="sendkey(75)">K</button>
<button class="vickey" onclick="sendkey(76)">L</button><br>
<button class="vickey" onclick="sendkey(32)"> </button>
<button class="vickey" onclick="sendkey(90)">Z</button>
<button class="vickey" onclick="sendkey(88)">X</button>
<button class="vickey" onclick="sendkey(67)">C</button>
<button class="vickey" onclick="sendkey(86)">V</button>
<button class="vickey" onclick="sendkey(66)">B</button>
<button class="vickey" onclick="sendkey(78)">N</button>
<button class="vickey" onclick="sendkey(77)">M</button>
<button class="vickey" onclick="sendkey(32)"> </button>
<button class="vickey" onclick="sendkey(13)"> </button><br>
<button class="vickey" onclick="sendkey(81)">,</button>
<button class="vickey" onclick="sendkey(87)">.</button>
<button class="vickey" onclick="sendkey(69)">@</button>
<button class="vickey" onclick="sendkey(82)">+</button>
<button class="vickey" onclick="sendkey(84)">-</button>
<button class="vickey" onclick="sendkey(89)">*</button>
<button class="vickey" onclick="sendkey(85)">/</button>
<button class="vickey" onclick="sendkey(73)"><</button>
<button class="vickey" onclick="sendkey(79)">></button>
<button class="vickey" onclick="sendkey(80)">\</button><br>
</div>
-->
<!-- allows to "Save As..." programs from the emulator -->
<script type="text/javascript" src="FileSaver.js"></script>
<!-- allows to used a keyval store with IndexedDB -->
<script type="text/javascript" src="idb-keyval-iife.min.js"></script>
<!-- core emulator files -->
<script type="text/javascript" src="autoload.js"></script>
<script type="text/javascript" src="keyboard_IT.js"></script>
<script type="text/javascript" src="keyboard.js"></script>
<script type="text/javascript" src="video.js"></script>
<script type="text/javascript" src="utils.js"></script>
<script type="text/javascript" src="printer.js"></script>
<script type="text/javascript" src="filesystem.js"></script>
<script type="text/javascript" src="mdawson.js"></script>
<script type="text/javascript" src="wav-decoder.js"></script>
<script type="text/javascript" src="wav-encoder.js"></script>
<script type="text/javascript" src="browser.js"></script>
<script type="text/javascript" src="audio.js"></script>
<script type="text/javascript" src="emulator.js"></script>
</body>
</html>
<!--script type="text/javascript" src="emscripten_module.wasm.array.js"></script-->
<script type="text/javascript" src="emscripten_module.js"></script>
<script type="text/javascript" src="emscripten_wrapper.js"></script>
<script>
(async function () {
await load_wasm();
main();
})();
</script>
<!--
<script>
function sendkey(key)
{
pasteLine(String.fromCharCode(key));
/*
applyKey(key,false);
setTimeout(function() { applyKey(key,true) },100);
*/
}
</script>
-->