1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-12 18:42:14 +00:00
8bitworkshop/src/worker/asmjs/sdasz80.js

28 lines
340 KiB
JavaScript
Raw Normal View History

2017-01-13 02:21:35 +00:00
var sdasz80 = function(sdasz80) {
sdasz80 = sdasz80 || {};
var Module = sdasz80;
var Module;if(!Module)Module=(typeof sdasz80!=="undefined"?sdasz80:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function shell_read(){throw"no read() available"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function shell_print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function shell_printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(M
2017-01-13 02:21:35 +00:00
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.ABORT|0;var l=env.STACKTOP|0;var m=env.STACK_MAX|0;var n=env.cttz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=global.NaN,t=global.Infinity;var u=0,v=0,w=0,x=0,y=0.0;var z=0;var A=global.Math.floor;var B=global.Math.abs;var C=global.Math.sqrt;var D=global.Math.pow;var E=global.Math.cos;var F=global.Math.sin;var G=global.Math.tan;var H=global.Math.acos;var I=global.Math.asin;var J=global.Math.atan;var K=global.Math.atan2;var L=global.Math.exp;var M=global.Math.log;var N=global.Math.ceil;var O=global.Math.imul;var P=global.Math.min;var Q=global.Math.max;var R=global.Math.clz32;var S=env.abort;var T=env.assert;var U=env.enlargeMemory;var V=env.getTotalMemory;var W=env.abortOnCannotGrowMemory;var X=env.invoke_iiii;var Y=env.invoke_i;var Z=env.invoke_vi;var _=env.invoke_vii;var $=env.invoke_ii;var aa=env.invoke_v;var ba=env.invoke_iii;var ca=env.___syscall221;var da=env.___buildEnvironment;var ea=env._longjmp;var fa=env.__exit;var ga=env.___lock;var ha=env.___syscall6;var ia=env.___setErrNo;var ja=env.___syscall40;var ka=env._getenv;var la=env.___syscall5;var ma=env._emscripten_memcpy_big;var na=env.___syscall54;var oa=env.___unlock;var pa=env.___syscall140;var qa=env._exit;var ra=env.___assert_fail;var sa=env.___syscall145;var ta=env.___syscall146;var ua=env.___syscall10;var va=0.0;
2017-01-13 02:21:35 +00:00
// EMSCRIPTEN_START_FUNCS
function Da(a){a=a|0;var b=0;b=l;l=l+a|0;l=l+15&-16;return b|0}function Ea(){return l|0}function Fa(a){a=a|0;l=a}function Ga(a,b){a=a|0;b=b|0;l=a;m=b}function Ha(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Ia(a){a=a|0;z=a}function Ja(){return z|0}function Ka(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0;p=l;l=l+64|0;q=p+60|0;g=p+56|0;h=p+52|0;i=p+48|0;d=p+32|0;j=p+16|0;e=p+8|0;k=p+4|0;f=p;c[q>>2]=b;Ya(d);Ya(j);c[g>>2]=c[(c[q>>2]|0)+12>>2];b=a[(c[q>>2]|0)+8>>0]|0;c[e>>2]=b;c[e>>2]=(c[3909]|0)==0&(c[e>>2]|0)>83?0:b;a:do switch(c[e>>2]|0){case 78:{Kb(c[g>>2]|0);break}case 79:{Kb(237);Kb(c[g>>2]|0);break}case 64:{if(!(kb()|0)){Kb(201);break a}q=Qa(2832)|0;c[k>>2]=q;if(q|0){Kb(c[g>>2]|c[k>>2]<<3);break a}else{nc();break a}}case 72:{if(Qa(2808)|0){Kb((c[g>>2]|0)+48|0);break a}q=Qa(2752)|0;c[k>>2]=q;if(q|0?(q=c[k>>2]&255,c[k>>2]=q,(q|0)!=3):0){q=c[k>>2]|0;q=(q|0)!=(La(c[k>>2]|0)|0);b=c[g>>2]|0;if(q){Kb(b+32|0);break a}else{Kb(b|c[k>>2]<<4);break a}}mc();break}case 76:{c[k>>2]=bb()|0;if(c[k>>2]&-57|0){mc();c[k>>2]=0}Kb(c[g>>2]|c[k>>2]);break}case 77:{Va(d,0);Za(d);if((c[d+4>>2]|0)>>>0>2){mc();c[d+4>>2]=0}Kb(c[g>>2]|0);Kb(a[4814+(c[d+4>>2]|0)>>0]|0);break}case 65:{Va(d,0);c[h>>2]=0;c[k>>2]=c[d+4>>2];if((c[k>>2]|0)>7){c[h>>2]=(c[h>>2]|0)+1;c[k>>2]=c[k>>2]&7}c[g>>2]=c[g>>2]|c[k>>2]<<3;mb(1)|0;Pa(j)|0;Za(d);if((Ma(203,c[g>>2]|0,j,0)|0)!=0|(c[h>>2]|0)!=0)mc();break}case 85:{if(c[3910]|0)o=29;else{mc();o=29}break}case 75:{o=29;break}case 81:case 70:{c[h>>2]=0;c[i>>2]=Pa(j)|0;if(kb()|0){if(!((c[i>>2]|0)==31?(c[j+4>>2]|0)==7:0))c[h>>2]=(c[h>>2]|0)+1;mb(1)|0;Ya(j);c[i>>2]=Pa(j)|0}if((c[h>>2]|0)==0&(c[3910]|0)!=0?(c[i>>2]|0)==37|(c[i>>2]|0)==38:0){Kb((c[i>>2]|0)==37?221:253);Kb((c[g>>2]|0)+(c[j+4>>2]|0)|0);break a}if((Ma(0,c[g>>2]|0,j,1)|0)!=0|(c[h>>2]|0)!=0)mc();break}case 82:case 69:case 68:{c[h>>2]=Pa(d)|0;c[i>>2]=0;if(kb()|0){mb(1)|0;c[i>>2]=Pa(j)|0}if(!(c[i>>2]|0)){if(c[3910]|0?(c[h>>2]|0)==37|(c[h>>2]|0)==38:0){Kb((c[h>>2]|0)==37?221:253);Kb((c[g>>2]|0)+(c[d+4>>2]|0)|0);break a}if(!(Ma(0,c[g>>2]|0,d,1)|0))break a;mc();break a}if((c[h>>2]|0)==31?(c[d+4>>2]|0)==7:0){if(c[3910]|0?(c[i>>2]|0)==37|(c[i>>2]|0)==38:0){Kb((c[i>>2]|0)==37?221:253);Kb((c[g>>2]|0)+(c[j+4>>2]|0)|0);break a}if(!(Ma(0,c[g>>2]|0,j,1)|0))break a;mc();break a}if((c[h>>2]|0)==33&(c[i>>2]|0)==33){if((c[e>>2]|0)==68)c[g>>2]=9;if((c[e>>2]|0)==69)c[g>>2]=74;if((c[e>>2]|0)==82)c[g>>2]=66;c[k>>2]=c[d+4>>2];c[f>>2]=c[j+4>>2];b=(c[e>>2]|0)!=68;if((c[k>>2]|0)==2&(c[f>>2]|0)<=3){if(b)Kb(237);Kb(c[g>>2]|c[f>>2]<<4);break a}if(b){mc();break a}if((c[k>>2]|0)==5&(c[f>>2]|0)!=2&(c[f>>2]|0)!=6){if((c[f>>2]|0)==5)c[f>>2]=2;Kb(221);Kb(c[g>>2]|c[f>>2]<<4);break a}if((c[k>>2]|0)==6&(c[f>>2]|0)!=2&(c[f>>2]|0)!=5){if((c[f>>2]|0)==6)c[f>>2]=2;Kb(253);Kb(c[g>>2]|c[f>>2]<<4);break a}}mc();break}case 60:{c[h>>2]=Pa(d)|0;mb(1)|0;c[i>>2]=Pa(j)|0;if((c[h>>2]|0)==31){c[k>>2]=c[g>>2]|c[d+4>>2]<<3;if(!(Ma(0,c[k>>2]|0,j,0)|0))break a;if((c[i>>2]|0)==30){Kb(c[d+4>>2]<<3|6);Zb(j,0);break a}}if(c[3910]|0?((c[h>>2]|0)==37|(c[h>>2]|0)==38)&(c[i>>2]|0)==30:0){Kb((c[h>>2]|0)==37?221:253);Kb(c[d+4>>2]<<3|6);Zb(j,0);break a}c[k>>2]=c[d+4>>2];c[f>>2]=c[j+4>>2];if((c[h>>2]|0)==33&(c[i>>2]|0)==30){c[k>>2]=La(c[k>>2]|0)|0;Kb(1|c[k>>2]<<4);$b(j,0);break a}if((c[h>>2]|0)==33&(c[i>>2]|0)==57){if((La(c[k>>2]|0)|0)==2)Kb(42);else{Kb(237);Kb(75|c[k>>2]<<4)}$b(j,0);break a}if((c[h>>2]|0)==57&(c[i>>2]|0)==33){if((La(c[f>>2]|0)|0)==2)Kb(34);else{Kb(237);Kb(67|c[f>>2]<<4)}$b(d,0);break a}if((c[h>>2]|0)==31&(c[k>>2]|0)==7&(c[i>>2]|0)==57){Kb(58);$b(j,0);break a}if((c[h>>2]|0)==57&(c[i>>2]|0)==31&(c[f>>2]|0)==7){Kb(50);$b(d,0);break a}if((c[i>>2]|0)==31?(La(c[h>>2]|0)|0)==52:0){Kb(112|c[f>>2]);if((c[h>>2]|0)==52)break a;Zb(d,0);break a}if((c[i>>2]|0)==30?(La(c[h>>2]|0)|0)==52:0){Kb(54);if((c[h>>2]|0)!=52)Zb(d,0);Zb(j,0);break a}if((c[h>>2]|0)==32&(c[i>>2]|0)==31&(c[f>>2]|0)==7){Kb(237);Kb(c[k>>2]|0);break a}if((c[h>>2]|0)==31&(c[k>>2]|0)==7&(c[i>>2]|0)==32){Kb(237);Kb(c[f>>2]|16);break a}if((c[h>>2]|0)==33&(c[k>>2]|0)==3&(c[i>>2]|0)==33?(La(c[f>>2]|0)|0)==2:0){Kb(249);break a}if((c[h>>2]|0)==31&(c[k>>2]|0)
function Ad(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0;n=l;l=l+128|0;g=n+124|0;m=n;h=m;i=3800;j=h+124|0;do{c[h>>2]=c[i>>2];h=h+4|0;i=i+4|0}while((h|0)<(j|0));if((d+-1|0)>>>0>2147483646)if(!d){b=g;d=1;k=4}else{c[(od()|0)>>2]=75;d=-1}else k=4;if((k|0)==4){k=-2-b|0;k=d>>>0>k>>>0?k:d;c[m+48>>2]=k;g=m+20|0;c[g>>2]=b;c[m+44>>2]=b;d=b+k|0;b=m+16|0;c[b>>2]=d;c[m+28>>2]=d;d=Bd(m,e,f)|0;if(k){m=c[g>>2]|0;a[m+(((m|0)==(c[b>>2]|0))<<31>>31)>>0]=0}}l=n;return d|0}function Bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=l;l=l+224|0;n=s+120|0;p=s+80|0;q=s;r=s+136|0;f=p;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[n>>2]=c[e>>2];if((Cd(0,d,n,q,p)|0)<0)e=-1;else{if((c[b+76>>2]|0)>-1)o=Dd(b)|0;else o=0;e=c[b>>2]|0;m=e&32;if((a[b+74>>0]|0)<1)c[b>>2]=e&-33;f=b+48|0;if(!(c[f>>2]|0)){g=b+44|0;h=c[g>>2]|0;c[g>>2]=r;i=b+28|0;c[i>>2]=r;j=b+20|0;c[j>>2]=r;c[f>>2]=80;k=b+16|0;c[k>>2]=r+80;e=Cd(b,d,n,q,p)|0;if(h){wa[c[b+36>>2]&7](b,0,0)|0;e=(c[j>>2]|0)==0?-1:e;c[g>>2]=h;c[f>>2]=0;c[k>>2]=0;c[i>>2]=0;c[j>>2]=0}}else e=Cd(b,d,n,q,p)|0;f=c[b>>2]|0;c[b>>2]=f|m;if(o|0)Ed(b);e=(f&32|0)==0?e:-1}l=s;return e|0}function Cd(d,e,f,g,i){d=d|0;e=e|0;f=f|0;g=g|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0;H=l;l=l+64|0;D=H+16|0;E=H;B=H+24|0;F=H+8|0;G=H+20|0;c[D>>2]=e;x=(d|0)!=0;y=B+40|0;A=y;B=B+39|0;C=F+4|0;k=0;j=0;p=0;a:while(1){do if((j|0)>-1)if((k|0)>(2147483647-j|0)){c[(od()|0)>>2]=75;j=-1;break}else{j=k+j|0;break}while(0);k=a[e>>0]|0;if(!(k<<24>>24)){w=87;break}else m=e;b:while(1){switch(k<<24>>24){case 37:{k=m;w=9;break b}case 0:{k=m;break b}default:{}}v=m+1|0;c[D>>2]=v;k=a[v>>0]|0;m=v}c:do if((w|0)==9)while(1){w=0;if((a[m+1>>0]|0)!=37)break c;k=k+1|0;m=m+2|0;c[D>>2]=m;if((a[m>>0]|0)==37)w=9;else break}while(0);k=k-e|0;if(x)Fd(d,e,k);if(k|0){e=m;continue}n=m+1|0;k=(a[n>>0]|0)+-48|0;if(k>>>0<10){v=(a[m+2>>0]|0)==36;u=v?k:-1;p=v?1:p;n=v?m+3|0:n}else u=-1;c[D>>2]=n;k=a[n>>0]|0;m=(k<<24>>24)+-32|0;d:do if(m>>>0<32){o=0;q=k;while(1){k=1<<m;if(!(k&75913)){k=q;break d}o=k|o;n=n+1|0;c[D>>2]=n;k=a[n>>0]|0;m=(k<<24>>24)+-32|0;if(m>>>0>=32)break;else q=k}}else o=0;while(0);if(k<<24>>24==42){m=n+1|0;k=(a[m>>0]|0)+-48|0;if(k>>>0<10?(a[n+2>>0]|0)==36:0){c[i+(k<<2)>>2]=10;k=c[g+((a[m>>0]|0)+-48<<3)>>2]|0;p=1;n=n+3|0}else{if(p|0){j=-1;break}if(x){p=(c[f>>2]|0)+(4-1)&~(4-1);k=c[p>>2]|0;c[f>>2]=p+4;p=0;n=m}else{k=0;p=0;n=m}}c[D>>2]=n;v=(k|0)<0;k=v?0-k|0:k;o=v?o|8192:o}else{k=Gd(D)|0;if((k|0)<0){j=-1;break}n=c[D>>2]|0}do if((a[n>>0]|0)==46){if((a[n+1>>0]|0)!=42){c[D>>2]=n+1;m=Gd(D)|0;n=c[D>>2]|0;break}q=n+2|0;m=(a[q>>0]|0)+-48|0;if(m>>>0<10?(a[n+3>>0]|0)==36:0){c[i+(m<<2)>>2]=10;m=c[g+((a[q>>0]|0)+-48<<3)>>2]|0;n=n+4|0;c[D>>2]=n;break}if(p|0){j=-1;break a}if(x){v=(c[f>>2]|0)+(4-1)&~(4-1);m=c[v>>2]|0;c[f>>2]=v+4}else m=0;c[D>>2]=q;n=q}else m=-1;while(0);t=0;while(1){if(((a[n>>0]|0)+-65|0)>>>0>57){j=-1;break a}v=n+1|0;c[D>>2]=v;q=a[(a[n>>0]|0)+-65+(12929+(t*58|0))>>0]|0;r=q&255;if((r+-1|0)>>>0<8){t=r;n=v}else break}if(!(q<<24>>24)){j=-1;break}s=(u|0)>-1;do if(q<<24>>24==19)if(s){j=-1;break a}else w=49;else{if(s){c[i+(u<<2)>>2]=r;s=g+(u<<3)|0;u=c[s+4>>2]|0;w=E;c[w>>2]=c[s>>2];c[w+4>>2]=u;w=49;break}if(!x){j=0;break a}Hd(E,r,f)}while(0);if((w|0)==49?(w=0,!x):0){k=0;e=v;continue}n=a[n>>0]|0;n=(t|0)!=0&(n&15|0)==3?n&-33:n;s=o&-65537;u=(o&8192|0)==0?o:s;e:do switch(n|0){case 110:switch((t&255)<<24>>24){case 0:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 1:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 2:{k=c[E>>2]|0;c[k>>2]=j;c[k+4>>2]=((j|0)<0)<<31>>31;k=0;e=v;continue a}case 3:{b[c[E>>2]>>1]=j;k=0;e=v;continue a}case 4:{a[c[E>>2]>>0]=j;k=0;e=v;continue a}case 6:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 7:{k=c[E>>2]|0;c[k>>2]=j;c[k+4>>2]=((j|0)<0)<<31>>31;k=0;e=v;continue a}default:{k=0;e=v;continue a}}case 112:{n=120;m=m>>>0>8?m:8;e=u|8;w=61;break}case 88:case 120:{e=u;w=61;break}case 111:{n=E;e=c[n>>2]|0;n=c[n+4>>2]|0;r=Jd(e,n,y)|0;s=A-r|0;o=0;q=13393;m=(u&8|0)==0|(m|0)>(s|0)?m:s+1|0;s=u;w=67;break}case 105:case 100:{n=E;e=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<0){e=nf(0,0,e
2017-01-13 02:21:35 +00:00
// EMSCRIPTEN_END_FUNCS
var wa=[Kf,sd,md,td,be,Me,Ab,ld];var xa=[Lf,yb,Oc,nb];var ya=[Mf,Nf,Mc,zb,wb,cb,gf,Tb,Cb,hc,ub,Db,Mf,Mf,Mf,Mf];var za=[Of,Nb];var Aa=[Pf,kd,uc,jc];var Ba=[Qf,oc,wc,xc,ec,Lc,Oa,Bb,ic,qb,Qf,Qf,Qf,Qf,Qf,Qf];var Ca=[Rf,vb,le,Rf];return{_llvm_bswap_i32:Cf,_main:xb,stackSave:Ea,_i64Subtract:nf,___udivdi3:wf,setThrew:Ha,_bitshift64Lshr:qf,_bitshift64Shl:rf,_fflush:ze,dynCall_iii:Jf,_memset:pf,_sbrk:zf,_memcpy:Bf,stackAlloc:Da,___muldi3:yf,dynCall_vii:Gf,___uremdi3:Af,dynCall_vi:Ff,getTempRet0:Ja,setTempRet0:Ia,_realloc:gd,_i64Add:of,dynCall_iiii:Df,dynCall_ii:Hf,_emscripten_get_global_libc:jd,dynCall_i:Ef,___errno_location:od,_testSetjmp:tf,_saveSetjmp:sf,_free:fd,runPostSets:mf,establishStackSpace:Ga,stackRestore:Fa,_malloc:ed,dynCall_v:If}})
2017-01-13 02:21:35 +00:00
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _main=Module["_main"]=asm["_main"];var stackSave=Module["stackSave"]=asm["stackSave"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var setThrew=Module["setThrew"]=asm["setThrew"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _fflush=Module["_fflush"]=asm["_fflush"];var _memset=Module["_memset"]=asm["_memset"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var _realloc=Module["_realloc"]=asm["_realloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var _testSetjmp=Module["_testSetjmp"]=asm["_testSetjmp"];var _saveSetjmp=Module["_saveSetjmp"]=asm["_saveSetjmp"];var _free=Module["_free"]=asm["_free"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var _malloc=Module["_malloc"]=asm["_malloc"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];Runtime.stackAlloc=Module["stackAlloc"];Runtime.stackSave=Module["stackSave"];Runtime.stackRestore=Module["stackRestore"];Runtime.establishStackSpace=Module["establishStackSpace"];Runtime.setTempRet0=Module["setTempRet0"];Runtime.getTempRet0=Module["getTempRet0"];Module["asm"]=asm;Module["FS"]=FS;Module["then"]=(function(func){if(Module["calledRun"]){func(Module)}else{var old=Module["onRuntimeInitialized"];Module["onRuntimeInitialized"]=(function(){if(old)old();func(Module)})}return Module});function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{var toLog=e;if(e&&typeof e==="object"&&e.stack){toLog=[e,e.stack]}Module.printErr("exception thrown: "+toLog);Module["quit"](1,e)}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()
2017-01-13 02:21:35 +00:00
return sdasz80;
};
if (typeof module === "object" && module.exports) {
module['exports'] = sdasz80;
};