-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTI-89 _ TI-92+ _ TI-V200 _ TI-89T emulator (beta version 12-debrouxl).html~
executable file
·290 lines (257 loc) · 16.3 KB
/
TI-89 _ TI-92+ _ TI-V200 _ TI-89T emulator (beta version 12-debrouxl).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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE html>
<html "="" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Average milliseconds for the last 1000 frames is 6.292</title>
<link rel="stylesheet" href="TI-89%20_%20TI-92+%20_%20TI-V200%20_%20TI-89T%20emulator%20%28beta%20version%2012-debrouxl%29_fichiers/A.css" type="text/css">
<!-- <script type="text/javascript" src="TI-89%20_%20TI-92+%20_%20TI-V200%20_%20TI-89T%20emulator%20%28beta%20version%2012-debrouxl%29_fichiers/v12_readable.js"></script> -->
<script type="text/javascript" src="TI68k-emulator-versionJS/v12_unreadable.king.js"></script>
<script type="text/javascript">var emu=TI68kEmulatorCoreModule(window);var ui=TI68kEmulatorUIModule(window);var link=TI68kEmulatorLinkModule(window);</script>
<script type="text/javascript" src="TI68k-emulator-versionJS/ti89rom.js"></script>
<script type="text/javascript">//<![CDATA[
function reset(){d0=0;d1=0;d2=0;d3=0;d4=0;d5=0;d6=0;d7=0;a0=0;a1=0;a2=0;a3=0;a4=0;a5=0;a6=0;a8=0x4C00;a7=0x4C00;ram=new Uint16Array(131072);};
//]]></script>
<script type="text/javascript">if(emu.apiversion()!=1){throw"API version has changed, the script may have to be updated";}
if(typeof(rom)==="object"){emu.setRom(rom);}
emu.setReset(reset);ui.setEmu(emu);ui.setLink(link);emu.setUI(ui);emu.setLink(link);link.setEmu(emu);link.setUI(ui);</script>
</head>
<body class="bootstrap" onload="emu.initemu()">
<h2>Javascript TI-89 / TI-92+ / TI-V200 / TI-89T emulator (beta version 12) by Patrick Davidson & Lionel Debroux</h2>
<div class="container page-wrap" id="mainContent">
<div class="hero-unit">
<div id="calccontainer">
<canvas height="256" width="480" id="screen">This emulator requires a browser with canvas support and Javascript enabled.</canvas
<img usemap="#calcmap" src="TI-89%20_%20TI-92+%20_%20TI-V200%20_%20TI-89T%20emulator%20%28beta%20version%2012-debrouxl%29_fichiers/Ti-92plus.png" id="calcimg"><map id="calcmap" name="calcmap"><area coords="140,52,193,112" shape="rect"><area coords="871,69,920,108" shape="rect"><area coords="871,157,920,196" shape="rect"><area coords="834,110,872,156" shape="rect"><area coords="921,110,971,156" shape="rect"><area coords="724,55,768,95" shape="rect"><area coords="200,497,246,527" shape="rect"><area coords="137,497,183,527" shape="rect"><area coords="74,450,120,480" shape="rect"><area coords="137,451,183,481" shape="rect"><area coords="168,401,214,431" shape="rect"><area coords="136,353,182,393" shape="rect"><area coords="141,271,184,311" shape="rect"><area coords="724,453,770,483" shape="rect"><area coords="784,453,830,483" shape="rect"><area coords="845,453,891,483" shape="rect"><area coords="200,450,246,480" shape="rect"><area coords="232,402,278,432" shape="rect"><area coords="199,354,245,384" shape="rect"><area coords="75,218,118,259" shape="rect"><area coords="724,405,770,435" shape="rect"><area coords="785,405,830,435" shape="rect"><area coords="845,405,891,431" shape="rect"><area coords="264,499,310,529" shape="rect"><area coords="263,450,309,480" shape="rect"><area coords="294,403,340,433" shape="rect"><area coords="264,354,310,384" shape="rect"><area coords="141,219,184,259" shape="rect"><area coords="724,357,770,387" shape="rect"><area coords="785,357,830,387" shape="rect"><area coords="845,357,891,387" shape="rect"><area coords="327,499,495,529" shape="rect"><area coords="326,450,372,480" shape="rect"><area coords="357,403,403,433" shape="rect"><area coords="327,354,373,384" shape="rect"><area coords="75,168,118,208" shape="rect"><area coords="723,306,768,336" shape="rect"><area coords="784,306,830,336" shape="rect"><area coords="844,307,890,337" shape="rect"><area coords="904,307,950,337" shape="rect"><area coords="388,452,434,483" shape="rect"><area coords="421,403,467,433" shape="rect"><area coords="389,355,435,385" shape="rect"><area coords="141,168,184,208" shape="rect"><area coords="724,260,770,290" shape="rect"><area coords="784,260,830,290" shape="rect"><area coords="844,260,890,290" shape="rect"><area coords="905,260,951,290" shape="rect"><area coords="453,451,499,481" shape="rect"><area coords="484,403,530,433" shape="rect"><area coords="452,355,498,385" shape="rect"><area coords="75,119,118,159" shape="rect"><area coords="723,211,769,241" shape="rect"><area coords="846,201,949,239" shape="rect"><area coords="642,356,688,386" shape="rect"><area coords="516,500,562,530" shape="rect"><area coords="515,451,561,481" shape="rect"><area coords="547,403,593,433" shape="rect"><area coords="516,356,562,386" shape="rect"><area coords="141,119,284,159" shape="rect"><area coords="724,163,790,193" shape="rect"><area coords="785,164,828,237" shape="rect"><area coords="905,357,951,387" shape="rect"><area coords="579,499,625,529" shape="rect"><area coords="578,451,624,481" shape="rect"><area coords="610,403,656,433" shape="rect"><area coords="579,356,623,386" shape="rect"><area coords="905,453,961,483" shape="rect"><area coords="724,115,770,145" shape="rect"><area coords="785,59,825,139" shape="rect"><area coords="904,404,950,434" shape="rect"><area coords="905,500,938,538" shape="rect"><area coords="624,454,685,528" shape="rect"><area coords="106,401,152,431" shape="rect"><area coords="74,353,120,383" shape="rect"><area coords="75,271,118,311" shape="rect"><area coords="724,501,770,531" shape="rect"><area coords="784,502,830,532" shape="rect"><area coords="845,501,891,531" shape="rect"><area coords="74,497,120,527" shape="rect"></map></div>
<div id="textandbuttons">
<div class="row-fluid wrapper">
<div class="actionsGroup">
<span>OS / ROM image :</span>
<input accept=".tib, .89u, .v2u, .92u, .rom" onchange="ui.loadrom()" id="romfile" type="file">
<input type="file" id="filesinput" multiple />
</div>
<div class="actionsGroup">
<span>Emulator control :</span>
<div class="btn-group">
<button class="btn btn-small" type="button" id="pauseemulator" onclick="ui.pause_emulator()"><i class="icon-pause"></i>Pause</button>
<button class="btn btn-small" type="button" id="resumeemulator" style="display:none" onclick="ui.resume_emulator()"><i class="icon-play"></i>Resume</button>
<button class="btn btn-small" type="button" id="reset_calculator" onclick="emu.initialize_calculator()"><i class="icon-refresh"></i>Reset</button>
</div>
<br>
<span>Emulator speed :</span>
<div class="btn-group">
<button class="btn btn-small" type="button" id="speedup" onclick="emu.increase_emulator_speed()"><i class="icon-chevron-up"></i>Speed up</button>
<button class="btn btn-small" type="button" id="slowdown" onclick="emu.decrease_emulator_speed()"><i class="icon-chevron-down"></i>Slow down</button>
</div>
</div>
<div class="actionsGroup">
<span>Sking zoom :</span>
<input id="skinZoom" value="2" min="0.5" max="2" step="0.1" onchange="updateSkinZoom(this.value)" type="range">
<br>
<span>Sking type :</span>
<input id="smallskin" name="skin_type" value="1" onclick="ui.setSkin(1)" type="radio">Normal
<input checked="checked" id="largeskin" name="skin_type" value="2" onclick="ui.setSkin(2)" type="radio">Big
</div>
<div class="actionsGroup">
<span> <abbr title="Make sure to be on homescreen first">Send variable</abbr> :</span> <input onchange="ui.loadrom()" id="romfile" type="file"><br>
<span>Transfers :</span>
<div class="btn-group">
<button class="btn btn-small" type="button" id="receivensButton" onclick="link.recvfile_ns()"><i class="icon-download-alt"></i>Start non-silent single file receive</button>
<button class="btn btn-small" type="button" id="downloadFileButton" onclick="link.getFileData()"><i class="icon-file"></i>Make data available</button>
</div>
<br><a href="" id="downloadfile" style="display:none">Download created received data</a>
</div>
<div class="actionsGroup">
<span>Screenshot :</span>
<button class="btn btn-small" type="button" id="pngbutton" onclick="ui.getPNG()"><i class="icon-camera"></i>Capture screen</button>
<button class="btn btn-small" type="button" id="hidebutton" style="display:none" onclick="ui.pngButtons()"><i class="icon-remove"></i>Close screenshot</button>
<img id="pngimage" src="" pagespeed_url_hash="1970120102" onload="pagespeed.CriticalImages.checkImageForCriticality(this);"><br>
<!-- http://stackoverflow.com/a/16213045 -->
</div>
</div>
<br><hr>
<div class="textDetails">
<p>In addition to clicking on the emulator itself, most keys are also
mapped to computer keyboards. Use the backslash (\) key to activate the
LOCK (hand) key on the emulated calculator, use
backquote (`) for 2nd, use F10 for SHIFT, and use F9 for F1. Use the
numeric keypad for the + - * / symbols but the regular number keys to
enter numbers. The - on the numeric keypad is the
plain - key; use the semicolon (;) key for the (-) key. All other keys
either have the obvious mapping or not mapped to any computer key. This
emulator is pre-loaded with a few of my games.
To run them just type a game name (monster, mercury, platinum, phoenix,
smiley) and press enter.</p>
<hr>
<p>By default, the emulated calculator uses the open-source PedroM
instead of the official TI system software. The PedroM source along with
conversion scripts is available <a href="http://tiplanet.org/emu68k_fork/">here</a>.</p>
<p>If you encounter serious problems with this emulator, such as it
erases 100% of the data on your hard disk, please report to me by e-mail
to
<a href="http://tiplanet.org/emu68k_fork/eeulplek@hotmail.com">eeulplek@hotmail.com</a> / <a href="http://tiplanet.org/emu68k_fork/lionel_debroux@yahoo.fr">lionel_debroux@yahoo.fr</a>,
on IRC (EFNet: #ti, #cemetech, #tcpa) or on message boards (Cemetech,
TI-Planet). However, please note that this is a beta version so minor
problems (such as erasing only 37% of your data)
are to be expected and thus are not worth reporting.</p>
<p>Thanks to Patrick Pelissier for having written Pedrom -- this
emulator would never have been written without his open source ROM
available to include with it. Also thanks to Lionel Debroux
for his many suggestions to improve this emulator -- but note that I
haven't made use of all of them yet, so don't blame him if you find any
bugs!</p>
<hr>
<p style="float:right">
<i>Page design by Adriweb</i>
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function readMultipleFiles(evt) {
//Retrieve all the files from the FileList object
var files = evt.target.files;
if (files) {
for (var i=0, f; f=files[i]; i++) {
var r = new FileReader();
r.onload = (function(f) {
return function(e) {
var contents = e.target.result;
alert( "Got the file.n"
+"name: " + f.name + "n"
+"type: " + f.type + "n"
+"size: " + f.size + " bytesn"
+ "starts with: " + contents.substr(1, contents.indexOf("n"))
);
};
})(f);
emu.loadrom(f);
}
} else {
alert("Failed to load files");
}
}
document.getElementById('filesinput').addEventListener('change', readMultipleFiles, false);
</script>
<!--
<script type="text/javascript">
function changeUploadFile(nbFiles,filesToLoad){
fileName = "KING/" + filesToLoad[nbFiles];
var xhr_object = null;
/* ### Construction de l’objet XMLHttpRequest selon le type de navigateur*/
/* Cas des navigateurs de type Netscape (Firefore, Conqueror, etc.)*/
if(window.XMLHttpRequest){
xhr_object = new XMLHttpRequest();
/* Cas du navigateur Internet Explorer*/
}else if(window.ActiveXObject){
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
/* Cas des navigateurs ne comprenant pas cette technologie (anciens navigateurs)*/
}else{
/* XMLHttpRequest non supporté par le navigateur */
alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
return;
}
xhr_object.onload = function() {
}
xhr_object.onreadystatechange = function() {
if (xhr_object.readyState == 4 && xhr_object.status == 200 ) {
var arraybuffer = xhr_object.response;
var reader = new FileReader();
reader.readAsArrayBuffer(arraybuffer);
reader.onload = function() {
ui.loadautofile(this);
};
console.log("loading File on TI-89");
nbFiles--;
if(nbFiles >= 0 ){
changeUploadFile(nbFiles,filesToLoad);
}
} else if (xhr_object.readyState == 1) {
console.log("Opening File for TI-89");
} else if (xhr_object.readyState == 2) {
console.log("Header File Receided for TI-89");
} else if (xhr_object.readyState == 3) {
console.log("Download File on XHR to put on TI-89");
}
};
xhr_object.open("GET", fileName, true);
xhr_object.responseType = "blob";
xhr_object.send();
console.log("XHR:"+fileName+" SEND REQUEST!");
}
var event;
event = new Event('change');
var filesToLoad = new Array("ACHAT.89P","ACIDE.89I","ANIM.89P","ARTEAU.89I","ARTELECT.89I","ARTFEU.89I","ARTTERRE.89I","BARRIH.89I",
"BARRIS.89I","BARRIV.89I","BEMAIN.89I","BH.89I","BLANC.89I","BOSS1.89I","BOSS2.89I","BOSSACT.89P",
"BOSSCH.89P","BOY1.89I","BOY2.89I","BOY3.89I","BOY4.89I","BUYEQ.89P","CADRE.89I","CADRE2.89I",
"CADRE3.89I","CADRE4.89I","CADRE5.89I","CADRE6.89I","CADRE7.89I","CADRE8.89I","CADRE9.89I",
"CARREAU.89I","CAVE.89P","CAVEAU1.89I","CC1.89P","CC2.89P","CC3.89P","CC4.89P","CLRF.89P",
"COFFRE.89I","CAFFREF.89I","COLOSSE.89I","COUCHETT.89I","CTEST.89P","CYCLOPE.89I","DARK.89I",
"DRAKDO.89I","DRAKELEC.89I","EAU.89I","EAUBB.89I","EAUBBD.89I","EAUBBG.89I","EAUBD.89I",
"EAUBG.89I","EAUBH.89I","EAUBHD.89I","EAUBHG.89I","EAUCBD.89I","EAUCBG.89I","EAUCHD.89I",
"EAUCHG.89I","EAUGH.89I","EAUGV.89I","EAUH.89I","EAUHBB.89I","EAUHBH.89I","EAUPH.89I",
"EAUPV.89I","EAUV.89I","EAUVBD.89I","EAUVBG.89I","ELECTRX1.89I","ELECTRX2.89I","ELECTRX4.89I",
"ELECTRX5.89I","ELECTRY1.89I","ELECTRY2.89I","ELECTRY3.89I","ENACTION.89P","ENECHOIX.89P",
"EPINE1.89I","EPINE2.89I","EQUIPQ.89I","FIGHT.89P","GARS1.89I","GARS2.89I","GARS3.89I",
"GARS4.89I","GARS5.89I","GARS6.89I","GARS7.89I","GARS8.89I","GARS9.89I","GGLACON.89I",
"GLACON.89I","HERBE.89I","HERBET.89I","HOTGOLEM.89I","INCUBE.89I","INFERNO1.89I",
"INFERNO2.89I","INN.89I","IRONBALL.89I","ITEMT.89I","JARRE.89I","KCHARGE.89P","KINGAT.89I",
"KINGM.89I","KINGN.89I","KINGS.89I","KINGWALK.89P","LOAD.89P","MAGIE.89P","MAIS.89I",
"MAISON.89P","MAPMONDE.89P","MAPT.89P","MENU.89P","MENU1.89I","MUR1.89I","MUR2.89I",
"MUR3.89I","MUR4.89I","MUR5.89I","MUR6.89I","MUR7.89I","MUR8.89I","MURH1.89I","MURH2.89I",
"MURV1.89I","MURV2.89I","MURV3.89I","NEG1.89I","NEG2.89I","NEG3.89I","NEG4.89I","NIV.89P",
"NIVSUP.89P","NOIR.89I","OBJET.89P","PAMPA.89I","PARLE.89P","PIKACHU.89I","PONTH.89I","PONTV.89I",
"PTITREPT.89I","PTX.89L","PTXF.89L","PTY.89L","PTYF.89L","PUIT.89I","RATEX.89L","RATEY.89L",
"REPOS.89P","ROC.89I","ROCH.89I","ROCV.89I","SABLEH.89I","SABLEV.89I","SAVE.89P","SKULL.89I",
"SLIME.89I","SOINSX.89L","SOINSY.89L","SOINX.89L","SOINY.89L","SOLCAR.89I","SOLCAVE.89I","SONMAI.89I",
"STAIRDW.89I","STAIRND.89I","STAIRNV.89I","STAIRUP.89I","STATS.89P","STEQUIP.89P","STMAG.89P","STNIV.89P",
"STOBJ.89P","STST.89P","SUCCUBE.89I","TOWN.89P","TRASH.89P","TTEST.89P","VAR.89P","VILLAGE1.89I","XYLOMIDE.89I");
var nbFiles;
nbFiles = filesToLoad.length-1;
var delay = function() { changeUploadFile(nbFiles,filesToLoad); };
console.log("DELAY SEND REQUEST!");
window.setTimeout(delay,15000);
</script>-->
<script>
window.setTimeout(function(){
emu.setKey(7,1);
emu.setKey(26,1); // M
window.setTimeout(function(){
emu.setKey(26,0);
emu.setKey(7,1);
emu.setKey(7,0);
emu.setKey(12,1); // E
window.setTimeout(function(){
emu.setKey(12,0);
emu.setKey(7,1);
emu.setKey(7,0);
emu.setKey(18,1); // N
window.setTimeout(function(){
emu.setKey(18,0);
emu.setKey(7,1);
emu.setKey(7,0);
emu.setKey(9,1); // U
window.setTimeout(function(){
emu.setKey(9,0);
emu.setKey(7,1);
emu.setKey(7,0);
emu.setKey(36,1); // (
window.setTimeout(function(){
emu.setKey(36,0);
emu.setKey(7,1);
emu.setKey(7,0);
emu.setKey(28,1); // )
window.setTimeout(function(){
emu.setKey(28,0);
emu.setKey(8,1); // ENTER
window.setTimeout(function(){
emu.setKey(8,0); // PUSHUP - ENTER
},1000);
},1000);
},1000);
},1000);
},1000);
},1000);
},1000);
},95000);
</script>
</body></html>