Found a fix for the unwanted blinking caret in Internet Explorer browsers (IE9 through IE11, the last version of IE)
This commit is contained in:
parent
d8f98fb263
commit
b7e424a46c
14 changed files with 1282 additions and 1248 deletions
|
|
@ -179,7 +179,7 @@ function oe(a,b,c){var d=y(a);-1!==a.Y.load(b)&&(pe(a,d),a.Y.fd?(a.Sg=a.Y.ta+a.Y
|
|||
function jg(a,b){b=(a.ea>>>0)+b;b>a.Rg&&(8088>=a.da||a.Z.Pa==a.Z.wa?b=a.Z.ta+(b-a.Rg&a.R):x.call(a,13,0));return b|0}function kg(a){a.ea=a.pd}function y(a){return a.zc&~a.Y.wa|a.Aa-a.Y.ta}function pe(a,b){a.zc=b;a.Aa=a.Y.ta+(b&a.Y.wa)|0}function lg(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&mg(a),g&2&&ng(a),g&4&&og(a),g&8&&pg(a),g&16&&qg(a),g&32&&rg(a))}f?(a.Td=d,a.Sd=b):(a.Td=b,a.Sd=d);a.jf=c;a.Ee=d;a.resultType=e}
|
||||
function sg(a,b,c,d,e){a.resultType=c|26;a.Ee=b;d?tg(a):ug(a);e?vg(a):wg(a);return b}function xg(a,b,c,d){c&d?tg(a):ug(a);(b^c)&d?vg(a):wg(a)}function yg(a){return mg(a)?1:0}function mg(a){a.resultType&1&&(a.O&=-2,(a.Td^(a.Td^a.jf)&(a.jf^a.Sd))&a.resultType&-2147450752&&(a.O|=1),a.resultType&=-2);return a.O&1}function ng(a){a.resultType&2&&(a.O&=-5,38505>>((a.Ee^a.Ee>>4)&15)&1&&(a.O|=4),a.resultType&=-3);return a.O&4}
|
||||
function og(a){a.resultType&4&&(a.O&=-17,(a.Sd^a.Td^a.jf)&16&&(a.O|=16),a.resultType&=-5);return a.O&16}function pg(a){a.resultType&8&&(a.O&=-65,a.Ee&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.O|=64),a.resultType&=-9);return a.O&64}function qg(a){a.resultType&16&&(a.O&=-129,a.Ee&a.resultType&-2147450752&&(a.O|=128),a.resultType&=-17);return a.O&128}
|
||||
function rg(a){a.resultType&32&&(a.O&=-2049,(a.Td^a.Sd)&(a.jf^a.Sd)&a.resultType&-2147450752&&(a.O|=2048),a.resultType&=-33);return a.O&2048}function ug(a){a.resultType&=-2;a.O&=-2}function zg(a){a.resultType&=-5;a.O&=-17}function Ag(a){a.resultType&=-9;a.O&=-65}function wg(a){a.resultType&=-33;a.O&=-2049}function tg(a){a.resultType&=-2;a.O|=1}function Bg(a){a.resultType&=-5;a.O|=16}function Eg(a){a.resultType&=-9;a.O|=64}function vg(a){a.resultType&=-33;a.O|=2048}
|
||||
function rg(a){a.resultType&32&&(a.O&=-2049,(a.Td^a.Sd)&(a.jf^a.Sd)&a.resultType&-2147450752&&(a.O|=2048),a.resultType&=-33);return a.O&2048}function ug(a){a.resultType&=-2;a.O&=-2}function zg(a){a.resultType&=-5;a.O&=-17}function Ag(a){a.resultType&=-9;a.O&=-65}function wg(a){a.resultType&=-33;a.O&=-2049}function tg(a){a.resultType&=-2;a.O|=1}function Bg(a){a.resultType&=-5;a.O|=16}function Cg(a){a.resultType&=-9;a.O|=64}function vg(a){a.resultType&=-33;a.O|=2048}
|
||||
function Ee(a){return a.O&-2262|mg(a)|ng(a)|og(a)|pg(a)|qg(a)|rg(a)}function Fg(a,b){b|=a.qa&1|65520;a.qa=a.qa&-65536|b&65535;a.qa&1&&re(a,!0)}function Fe(a,b,c){a.qa&1||(b&=~a.Si);void 0===c&&(c=a.La);c?b=b&-12289|a.O&12288:a.lc=(b&12288)>>12;c>a.lc&&(b=b&-513|a.O&512);a.resultType=128;a.O=a.O&~(a.Qd|2261)|b&(a.Qd|2261)|a.vi;a.O&256&&(a.Ya|=2,a.N|=4)}
|
||||
function Gg(a,b,c,d){var e=0;if(a.qa&1&&(a.La>a.lc||a.O&131072)&&a.ka.Wi)for(var f=a.ka.Wi+(b>>>3),e=(1<<c)-1<<(b&7);e&&f<=a.ka.yl&&!(a.Ja(f)&e);)e>>>=8,f++;return e?(r(a,256)&&Rb(a,"checkIOPM("+ua(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),x.call(a,13,0),!1):!0}
|
||||
l.Bb=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.na[b]=c;this.xj++;a=!0;break;default:a=Dd.prototype.Bb.call(this,a,b,c)}return a};
|
||||
|
|
@ -194,9 +194,9 @@ function Rg(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.da)2<b.length&&
|
|||
l.Ng=function(a){this.ba.complete=!0;var b=this.ba.oj=this.ca&&Sg(this.ca),c=a?this.ba.ri?0:1:-1;this.ba.ri=!1;this.bd=this.A=a;this.W&&!a&&Xd(this.W);a||r(this,1024)||(this.N|=4);do{var d=this.N&3312;if(d)this.ha|=d;else if(this.pd=this.ea,this.Ea=this.Da,this.Sb=this.Y,this.C=this.F=-1,this.ha&3072&&$f(this),this.ha=this.N&256,this.Ya){a:{if(!(this.N&4))for(var d=80286>this.da?0:1,e=0;2>e;e++){switch(d){case 0:if(this.Ya&1&&this.O&512){var f=Tg(this.W);if(-1<=f&&(this.Ya&=-2,0<=f)){this.Ya&=-5;
|
||||
Ug.call(this,f);d=!0;break a}}break;case 1:if(this.Ya&2){this.Ya&=-3;80386<=this.da&&(this.Rb[6]|=16384);Ug.call(this,1);d=!0;break a}}d=1-d}d=!1}if(d&&!a){this.P("interrupt dispatched");this.N=0;break}if(this.Ya&4){this.N=this.A=0;break}}if(b){if(Vg(this.ca,this.ea,c)){this.Kb();break}c=1}this.N=0;this.va[this.ra()].call(this)}while(0<this.A);return this.ba.complete?this.bd-this.A:void 0===this.ba.complete?0:-1};var Bf=512;
|
||||
cb(function(){for(var a=Bb(document,"pcx86","cpu"),b=0;b<a.length;b++){var c=a[b],d=Cb(c),d=new Ie(d);Ab(d,c)}});
|
||||
function Wg(a){rb.call(this,"FPU",a);this.da=a.model||8087;this.F=new Float64Array(8);this.L=new Int32Array(this.F.buffer);this.Z=new Float32Array(1);this.ha=new Int32Array(this.Z.buffer);this.K=new Float64Array(1);this.G=new Int32Array(this.K.buffer);this.D=Array(3);this.M=this.N=-1;this.I=this.J=this.O=this.A=0;this.Y=new Float64Array(1);this.aa=new Int32Array(this.Y.buffer);this.aa[0]=0;this.aa[1]=268402688;jh(this);this.ga=Wg.prototype.pi;this.ea=Wg.prototype.hl}ba(Wg,rb);l=Wg.prototype;
|
||||
l.uc=function(a,b,c){this.H=c;this.W=bc(a,"ChipSet");Ob(this)};l.Yb=function(a,b){if(!b)if(!a||!this.restore)jh(this);else if(!this.restore(a))return!1;return!0};l.Xb=function(a){return a?this.save():!0};l.save=function(){var a=new fg(this),b=[],c=0;b[c++]=this.$b;b[c++]=kh(this);b[c++]=lh(this);for(var d=0;d<this.F.length;d++)b[c++]=this.F[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.$b=a[b++]&-57409;var c=a[b++];this.fa=c&-14337;this.B=(c&14336)>>11;mh(this);nh(this,a[b++]);for(c=0;c<this.F.length;c++)this.F[c]=a[b++];return!0};function jh(a){a.C=0;a.$b=959;a.fa=0;a.B=0;a.W&&(a=a.W,a.da>=oh&&ph(a,qh))}function mh(a){a.fa&=-129;a.fa&~a.$b&63&&(a.fa|=128);if(a.fa&128&&!(a.$b&128))return a=a.W,a.da>=oh?rh(a,qh):a.ea&sh||Ug.call(a.H,2),!0;a=a.W;a.da>=oh&&ph(a,qh);return!1}function th(a,b){80387<=a.da||(b&=-65);a.fa|=b;return mh(a)}
|
||||
function Wg(a){rb.call(this,"FPU",a);this.da=a.model||8087;this.F=new Float64Array(8);this.L=new Int32Array(this.F.buffer);this.Z=new Float32Array(1);this.ha=new Int32Array(this.Z.buffer);this.K=new Float64Array(1);this.G=new Int32Array(this.K.buffer);this.D=Array(3);this.M=this.N=-1;this.I=this.J=this.O=this.A=0;this.Y=new Float64Array(1);this.aa=new Int32Array(this.Y.buffer);this.aa[0]=0;this.aa[1]=268402688;Xg(this);this.ga=Wg.prototype.pi;this.ea=Wg.prototype.hl}ba(Wg,rb);l=Wg.prototype;
|
||||
l.uc=function(a,b,c){this.H=c;this.W=bc(a,"ChipSet");Ob(this)};l.Yb=function(a,b){if(!b)if(!a||!this.restore)Xg(this);else if(!this.restore(a))return!1;return!0};l.Xb=function(a){return a?this.save():!0};l.save=function(){var a=new fg(this),b=[],c=0;b[c++]=this.$b;b[c++]=kh(this);b[c++]=lh(this);for(var d=0;d<this.F.length;d++)b[c++]=this.F[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.$b=a[b++]&-57409;var c=a[b++];this.fa=c&-14337;this.B=(c&14336)>>11;mh(this);nh(this,a[b++]);for(c=0;c<this.F.length;c++)this.F[c]=a[b++];return!0};function Xg(a){a.C=0;a.$b=959;a.fa=0;a.B=0;a.W&&(a=a.W,a.da>=oh&&ph(a,qh))}function mh(a){a.fa&=-129;a.fa&~a.$b&63&&(a.fa|=128);if(a.fa&128&&!(a.$b&128))return a=a.W,a.da>=oh?rh(a,qh):a.ea&sh||Ug.call(a.H,2),!0;a=a.W;a.da>=oh&&ph(a,qh);return!1}function th(a,b){80387<=a.da||(b&=-65);a.fa|=b;return mh(a)}
|
||||
function kh(a){return a.fa|a.B<<11}function uh(a,b){return isFinite(b)?!0:!th(a,Infinity===b?8:16)}function vh(a,b,c){var d=null;null!=b&&null!=c&&(d=b+c,uh(a,d)||(d=null));return d}function wh(a,b,c){var d=null;null!=b&&null!=c&&(d=b-c,uh(a,d)||(d=null));return d}function xh(a,b,c){var d=null;null!=b&&null!=c&&(d=b*c,uh(a,d)||(d=null));return d}function yh(a,b,c){var d=null;null==b||null==c||!c&&th(a,2)||(d=b/c,uh(a,d)||(d=null));return d}
|
||||
function zh(a,b,c){if(null!=b&&null!=c){var d=0;isNaN(b)||isNaN(c)?d=17664:(b-=c,0>b?d=256:b||(d=16384));a.fa=a.fa&-18177|d;return!0}return!1}function Ah(a,b,c){if(null==b)return null;var d=a.$b&3072;d?d=1024==d||3072==d&&0<b?Math.floor(b):Math.ceil(b):(d=Math.round(b),.5===d-b&&d%2&&d--);if(c){if(d>=c){if(th(a,1))return null;d=-c}else if(d<-c){if(th(a,1))return null;d=-c}a.G[0]=d|0;2147483648<c&&(a.G[1]=d/4294967296|0,!a.G[1]&&0>d&&(a.G[1]=-1))}return d}
|
||||
function Bh(a,b){var c=3;a.C&1<<b&&(a=a.F[b],c=0,a?isFinite(a)||(c=2):c=1);return c}function lh(a){for(var b=0,c=a.F.length-1;0<=c;c--)b<<=2,b|=Bh(a,c);return b}function nh(a,b){a.C=0;for(var c=1;128>=c;c<<=1)3!=(b&3)&&(a.C|=c),b>>=2}function Ch(a){var b=a.B+0&7;return a.C&1<<b?(a.Z[0]=a.F[b],!0):th(a,1)?!1:(a.Z[0]=a.Y[0],!0)}function Dh(a){var b=a.B+0&7;return a.C&1<<b?(a.K[0]=a.F[b],!0):th(a,1)?!1:(a.K[0]=a.Y[0],!0)}
|
||||
|
|
@ -206,7 +206,7 @@ function Fh(a,b,c){var d=c>>20&2047,e=2147483648|(c&1048575)<<11|b>>>21;2047==d?
|
|||
function Qh(a,b){if(null!=b){var c=a.B-1&7,d=1<<c;if(a.C&d&&(a.fa|=512,th(a,65)))return;if(isNaN(b)&&th(a,1)){if(th(a,1))return;b=NaN}a.F[a.B=c]=b;a.C|=d}}
|
||||
function Rh(a,b){var c,d=a.H;c=d.mb(b);a.$b=c&-57409;c=d.mb(b+=d.V);a.fa=c&-14337;a.B=(c&14336)>>11;mh(a);nh(a,d.mb(b+=d.V));!(d.qa&1)||d.O&131072?(a.I=d.mb(b+=d.V),c=d.mb(b+=d.V),a.O=c&2047,a.I|=(c&-4096)<<4,a.M=-1,a.J=d.mb(b+=d.V),a.J|=(d.mb(b+=d.V)&-4096)<<4,a.N=-1):(a.I=d.mb(b+=d.V),c=d.mb(b+=d.V),a.M=c&65535,a.O=c>>16&2047,a.J=d.mb(b+=d.V),a.N=d.mb(b+=d.V)&65535);return b+d.V}
|
||||
function Sh(a,b){var c=a.H;c.Eb(b,a.$b);c.Eb(b+=c.V,kh(a));c.Eb(b+=c.V,lh(a));if(!(c.qa&1)||c.O&131072){var d=(a.M<<4)+a.I;c.Eb(b+=c.V,d);c.Eb(b+=c.V,d>>4&-4096|a.O);d=(a.N<<4)+a.J;c.Eb(b+=c.V,d);c.Eb(b+=c.V,d>>4&-4096)}else c.Eb(b+=c.V,a.I),c.Eb(b+=c.V,a.M|a.O<<16),c.Eb(b+=c.V,a.J),c.Eb(b+=c.V,a.N);return b+c.V}function Th(){this.fa&=-32896;mh(this)}function Uh(){zh(this,K(this,0),K(this,this.A))}function Vh(){zh(this,K(this,0),K(this,this.A))&&Ph(this)}function Wh(){Vh.call(this)}
|
||||
function Xh(){M(this,0,yh(this,K(this,0),Ih(this)))}function Yh(){this.C&=~(1<<this.B)}function Zh(){jh(this)}function $h(){this.$b=this.H.ja(this.H.C)&-57409}function ai(){Rh(this,this.H.C)}function bi(){for(var a=this.H,b=Rh(this,a.C),c=this.D,d=0;d<this.F.length;d++)c[0]=a.ia(b),c[1]=a.ia(b+=4),c[2]=a.ja(b+=4),c&&M(this,d,Mh(this,c)),b+=2}function ci(){for(var a=this.H,b=Sh(this,a.C),c=0;c<this.F.length;c++){var d=Eh(this,c,!0);a.bb(b,d[0]);a.bb(b+=4,d[1]);a.hb(b+=4,d[2]);b+=2}jh(this)}
|
||||
function Xh(){M(this,0,yh(this,K(this,0),Ih(this)))}function Yh(){this.C&=~(1<<this.B)}function Zh(){Xg(this)}function $h(){this.$b=this.H.ja(this.H.C)&-57409}function ai(){Rh(this,this.H.C)}function bi(){for(var a=this.H,b=Rh(this,a.C),c=this.D,d=0;d<this.F.length;d++)c[0]=a.ia(b),c[1]=a.ia(b+=4),c[2]=a.ja(b+=4),c&&M(this,d,Mh(this,c)),b+=2}function ci(){for(var a=this.H,b=Sh(this,a.C),c=0;c<this.F.length;c++){var d=Eh(this,c,!0);a.bb(b,d[0]);a.bb(b+=4,d[1]);a.hb(b+=4,d[2]);b+=2}Xg(this)}
|
||||
function di(){Sh(this,this.H.C);this.$b|=63}function ei(){M(this,this.A,K(this,0))&&Ph(this)}function fi(){ei.call(this)}function gi(){this.H.hb(this.H.C,this.$b)}function hi(){this.H.hb(this.H.C,kh(this))}function ii(){80287<=this.da&&(this.H.D=this.H.D&-65536|kh(this))}function ji(){var a=K(this,0);M(this,0,K(this,this.A));M(this,this.A,a)}function ki(){ji.call(this)}
|
||||
var li=Math.log(10)/Math.LN2,mi=Math.LOG2E,ni=Math.PI,oi=Math.log(2)/Math.LN10,pi=Math.LN2,qi=Math.pow(2,63),ri={216:{0:function(){M(this,0,vh(this,K(this,0),Ih(this)))},1:function(){M(this,0,xh(this,K(this,0),Ih(this)))},2:function(){zh(this,K(this,0),Ih(this))},3:function(){zh(this,K(this,0),Ih(this))&&Ph(this)},4:function(){M(this,0,wh(this,K(this,0),Ih(this)))},5:function(){M(this,0,wh(this,Ih(this),K(this,0)))},6:Xh,7:Xh,48:function(){M(this,0,vh(this,K(this,0),K(this,this.A)))},49:function(){M(this,
|
||||
0,xh(this,K(this,0),K(this,this.A)))},50:Uh,51:Vh,52:function(){M(this,0,wh(this,K(this,0),K(this,this.A)))},53:function(){M(this,0,wh(this,K(this,this.A),K(this,0)))},54:function(){M(this,0,yh(this,K(this,0),K(this,this.A)))},55:function(){M(this,0,yh(this,K(this,this.A),K(this,0)))}},217:{0:function(){Qh(this,Ih(this))},2:function(){Ch(this)&&this.ga()},3:function(){Ch(this)&&(this.ga(),Ph(this))},4:ai,5:$h,6:di,7:gi,48:function(){Qh(this,K(this,this.A))},49:ji,50:function(){},51:fi,64:function(){M(this,
|
||||
|
|
@ -221,17 +221,17 @@ this.A,yh(this,K(this,this.A),K(this,0)))}},221:{0:function(){Qh(this,Jh(this))}
|
|||
54:function(){M(this,this.A,yh(this,K(this,0),K(this,this.A)))&&Ph(this)},55:function(){M(this,this.A,yh(this,K(this,this.A),K(this,0)))&&Ph(this)}},223:{0:function(){Qh(this,Gh(this))},2:function(){null!=Ah(this,K(this,0),32768)&&this.H.hb(this.H.C,this.G[0])},3:function(){null!=Ah(this,K(this,0),32768)&&(this.H.hb(this.H.C,this.G[0]),Ph(this))},4:function(){var a=Kh(this),b=Nh(a[0],8)+1E8*Nh(a[1],8)+1E16*Nh(a[2],2);a[2]&32768&&(b=-b);Qh(this,b)},5:function(){var a;a=this.H.ia(this.H.C);a=4294967296*
|
||||
this.H.ia(this.H.C+4)+(a>>>0);Qh(this,a)},6:function(){var a=Ah(this,Ph(this));null!=a&&(this.D[0]=Oh(a,8),this.D[1]=Oh(a/1E8,8),this.D[2]=Oh(a/1E16,2),0>a&&(this.D[2]|=32768),Lh(this))},7:function(){null!=Ah(this,K(this,0),qi)&&(this.hl(),Ph(this))},48:function(){Yh.call(this);Ph(this)},49:ki,50:fi,51:fi,52:ii}},si=[Th,Zh,$h,ai,bi,ci,gi,di,hi,ii];cb(function(){for(var a=Bb(document,"pcx86","fpu"),b=0;b<a.length;b++){var c=a[b],d=Cb(c),d=new Wg(d);Ab(d,c)}});
|
||||
function ti(a,b){var c=a+b+yg(this)|0;lg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&255}function ui(a,b){var c=a+b+yg(this)|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function vi(a,b){var c=a+b|0;lg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&255}
|
||||
function wi(a,b){var c=a+b|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function xi(a,b){a&=b;sg(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return a}function yi(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return sg(this,a&b,this.Fb)&this.R}function zi(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Eg(this),a;Ag(this);return a}
|
||||
function Ai(a){if(-1===this.C)return x.call(this,6),a;var b=a,c=this.mb(this.C),d=this.mb(this.C+this.V);2==this.V&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Oj;(b<c||b>d)&&x.call(this,5);this.N|=2;return a}function Bi(a,b){var c=0;if(b){Ag(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Eg(this);this.A-=11+3*c;return a}function Ci(a,b){var c=0;if(b){Ag(this);for(var d=2==this.V?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else Eg(this);this.A-=11+3*c;return a}
|
||||
function wi(a,b){var c=a+b|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function xi(a,b){a&=b;sg(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return a}function yi(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return sg(this,a&b,this.Fb)&this.R}function zi(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Cg(this),a;Ag(this);return a}
|
||||
function Ai(a){if(-1===this.C)return x.call(this,6),a;var b=a,c=this.mb(this.C),d=this.mb(this.C+this.V);2==this.V&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Oj;(b<c||b>d)&&x.call(this,5);this.N|=2;return a}function Bi(a,b){var c=0;if(b){Ag(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Cg(this);this.A-=11+3*c;return a}function Ci(a,b){var c=0;if(b){Ag(this);for(var d=2==this.V?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else Cg(this);this.A-=11+3*c;return a}
|
||||
function Di(a,b){a&1<<(b&(2==this.V?15:31))?tg(this):ug(this);this.A-=-1===this.C?3:6;this.N|=2;return a}function Ei(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a^b}function Fi(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a&~b}function Gi(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a|b}
|
||||
function Hi(a,b){if(-1===this.C)return Di.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=6;this.N|=2;return a}function Ii(a,b){if(-1===this.C)return Ei.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a^b}
|
||||
function Ji(a,b){if(-1===this.C)return Fi.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a&~b}function Ki(a,b){if(-1===this.C)return Gi.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a|b}
|
||||
function Li(a,b){lg(this,a,b,a-b|0,191,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Dh:this.B.Jb;this.N|=2;return a}function Mi(a,b){lg(this,a,b,a-b|0,this.Fb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Dh:this.B.Jb;this.N|=2;return a}
|
||||
function Ni(a){if(this.Ic){var b=this.Ic,c=this.sj,d=this.ga,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=ri[c][f]){if(0>si.indexOf(e)){var f=b.H,g=f.pd;8087==b.da&&(f.ha&16&&g++,f.ha&32&&g++);b.M=f.Z.U;b.I=g-f.Z.ta;-1!==f.C&&(b.N=f.gb.U,b.J=f.C-f.gb.ta);b.O=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function Oi(a){if(80186>this.da)return Pi.call(this,a);x.call(this,13,0);return a}function df(a){x.call(this,6);return a}
|
||||
function Pi(a){kf.call(this);return a}function Qi(a,b){a=Ri.call(this,this.S(),b);80386>this.da&&(this.A-=12);return a}function Si(a,b){a=this.Fa();a=2==this.V?Ri.call(this,a,b):Ti.call(this,a,b);80386>this.da&&(this.A-=12);return a}function Ui(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);Vi.call(this,a,b);c&&(this.Ba=~this.Ba+1|0,this.Za=~this.Za+(this.Ba?0:1)|0)}
|
||||
function Ri(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return a&65535}function Ti(a,b){Ui.call(this,a,b);this.Za!=this.Ba>>31?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return this.Ba}function Wi(a,b){this.A-=14+(-1===this.C?0:2);Ag(this);-1!==this.xb.load(b)&&this.xb.qc>=this.La&&this.xb.qc>=(b&3)&&(Eg(this),a=this.xb.nb&-256,2<this.V&&(a|=(this.xb.ext&-65281)<<16));return a}
|
||||
function Ri(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return a&65535}function Ti(a,b){Ui.call(this,a,b);this.Za!=this.Ba>>31?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return this.Ba}function Wi(a,b){this.A-=14+(-1===this.C?0:2);Ag(this);-1!==this.xb.load(b)&&this.xb.qc>=this.La&&this.xb.qc>=(b&3)&&(Cg(this),a=this.xb.nb&-256,2<this.V&&(a|=(this.xb.ext&-65281)<<16));return a}
|
||||
function Xi(a,b){if(-1===this.C)return kf.call(this),a;ve(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}function Yi(){this.A-=this.B.rk;return this.C}function Zi(a,b){if(-1===this.C)return kf.call(this),a;we(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}function $i(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ga.load(a);this.A-=this.B.Ze;return b}
|
||||
function aj(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ia.load(a);this.A-=this.B.Ze;return b}function bj(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.xb.load(b)&&(7168==(this.xb.nb&7168)||this.xb.qc>=this.La)&&this.xb.qc>=(b&3))return Eg(this),this.xb.Pa;Ag(this);return a}function cj(a,b){if(-1===this.C)return kf.call(this),a;oe(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}
|
||||
function aj(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ia.load(a);this.A-=this.B.Ze;return b}function bj(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.xb.load(b)&&(7168==(this.xb.nb&7168)||this.xb.qc>=this.La)&&this.xb.qc>=(b&3))return Cg(this),this.xb.Pa;Ag(this);return a}function cj(a,b){if(-1===this.C)return kf.call(this),a;oe(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}
|
||||
function dj(a,b){this.A-=-1===this.F?-1===this.C?this.B.yk:this.B.xk:this.B.vk;return b}function ej(a,b){switch(this.ga>>3&7){case 4:this.xa=this.D;break;case 5:this.xa=this.I;break;case 6:this.xa=this.L;break;case 7:this.xa=this.G}return b}function oj(a,b){return b}
|
||||
function pj(a,b){a=this.ga>>3&7;switch(a){case 0:this.xa=this.D;break;case 2:this.xa=this.L;break;case 3:this.xa=this.G;break;default:if(80286==this.da||80386==this.da&&4!=a&&5!=a)x.call(this,6);else switch(a){case 1:this.xa=this.I;break;case 4:this.xa=y(this);break;case 5:this.xa=this.M;break;case 6:this.xa=this.K;break;case 7:this.xa=this.J}}return dj.call(this,0,b)}
|
||||
function qj(a,b){switch(this.ga>>3&7){case 0:b=this.oa.U;break;case 1:b=this.Z.U;break;case 2:b=this.Y.U;break;case 3:b=this.Da.U;break;case 4:if(80386<=this.da){b=this.Ga.U;break}x.call(this,6);b=a;break;case 5:if(80386<=this.da){b=this.Ia.U;break}default:x.call(this,6),b=a}-1!==this.F&&se(this,2);return dj.call(this,0,b)}
|
||||
|
|
@ -366,7 +366,7 @@ bl,this.Fa);this.A-=-1===this.F?1:this.B.Ag},Nk,function(){this.lb.call(this,bl,
|
|||
this.I=this.xa;hg(this,a);break;case 2:a=this.L;this.L=this.xa;oe(this,a);break;case 3:a=this.G;this.G=this.xa;ve(this,a);break;case 4:a=y(this);pe(this,this.xa);80386<=this.da?this.Ga.load(a):we(this,a);break;case 5:a=this.M;this.M=this.xa;80386<=this.da?this.Ia.load(a):hg(this,a);break;case 6:a=this.K;this.K=this.xa;oe(this,a);break;case 7:a=this.J,this.J=this.xa,ve(this,a)}},function(){this.N|=1;this.sa=this.Aa;this.xa=ne(this);this.lb.call(this,cl,qk);this.sa=-1},function(){this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.I&this.R;this.I=this.I&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.L&this.R;this.L=this.L&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.G&this.R;this.G=this.G&~this.R|a&this.R;this.A-=3},function(){var a=this.D,b=y(this);this.D=this.D&~this.R|b&this.R;pe(this,b&~this.R|a&this.R);this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.M&this.R;this.M=this.M&~this.R|a&this.R;this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.K&this.R;this.K=this.K&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.J&this.R;this.J=this.J&~this.R|a&this.R;this.A-=3},function(){this.D=2==this.V?this.D&-65536|this.D<<24>>24&65535:this.D<<16>>16;this.A-=2},function(){this.L=2==this.V?this.L&-65536|(this.D&32768?65535:0):this.D&-2147483648?-1:0;this.A-=this.B.Qj},function(){rk.call(this,this.Fa(),Qg(this));this.A-=this.B.Tj},function(){this.A-=3},function(){var a=Ee(this);a&131072&&
|
||||
3>this.lc?x.call(this,13,0):(xe(this,a&-196609),this.A-=this.B.Jc)},function(){if(this.O&131072&&3>this.lc)x.call(this,13,0);else{var a=ne(this),a=a&65535|this.O&-65536;Fe(this,a);this.A-=this.B.nc}},function(){var a=this.D>>8&255;a&1?tg(this):ug(this);a&4?(this.resultType&=-3,this.O|=4):(this.resultType&=-3,this.O&=-5);a&16?Bg(this):zg(this);a&64?Eg(this):Ag(this);a&128?(this.resultType&=-17,this.O|=128):(this.resultType&=-17,this.O&=-129);this.A-=this.B.Wb},function(){this.D=this.D&-65281|(Ee(this)&
|
||||
3>this.lc?x.call(this,13,0):(xe(this,a&-196609),this.A-=this.B.Jc)},function(){if(this.O&131072&&3>this.lc)x.call(this,13,0);else{var a=ne(this),a=a&65535|this.O&-65536;Fe(this,a);this.A-=this.B.nc}},function(){var a=this.D>>8&255;a&1?tg(this):ug(this);a&4?(this.resultType&=-3,this.O|=4):(this.resultType&=-3,this.O&=-5);a&16?Bg(this):zg(this);a&64?Cg(this):Ag(this);a&128?(this.resultType&=-17,this.O|=128):(this.resultType&=-17,this.O&=-129);this.A-=this.B.Wb},function(){this.D=this.D&-65281|(Ee(this)&
|
||||
213)<<8;this.A-=this.B.Wb},function(){var a=this.D&-256,b;b=G(this);b=this.Ja(this.Ea.cc(b,1));this.D=a|b;this.A-=this.B.Nh},function(){this.D=this.D&~this.R|te(this,this.Ea,G(this));this.A-=this.B.Nh},function(){var a=G(this),b=this.D;this.Pb(this.Ea.dc(a,1),b);this.A-=this.B.Oh},function(){var a=G(this),b=this.D;this.Eb(this.Ea.dc(a,this.V),b);this.A-=this.B.Oh},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.ha&192&&(a=this.I&c,b=1,d=this.B.Rh,this.ha&256||(this.A-=this.B.Qh));if(a--){var e=
|
||||
this.Ja(this.Ea.cc(this.K&c,1));this.Pb(this.oa.dc(this.J&c,1),e);e=this.O&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.ha&192&&(a=this.I&c,b=1,d=this.B.Rh,this.ha&256||(this.A-=this.B.Qh));if(a--){var e=te(this,this.Ea,this.K&c);this.Eb(this.oa.dc(this.J&c,this.V),e);e=this.O&1024?-this.V:this.V;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;
|
||||
this.I=this.I&~c|this.I-b&c;a&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ah;this.ha&192&&(a=this.I&c,b=1,d=this.B.Ch,this.ha&256||(this.A-=this.B.Bh));if(a--){var e=Ig(this,this.Ea,this.K),f=Ig(this,this.oa,this.J);this.F=this.C;Li.call(this,e,f);e=this.O&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Jb;a&&pg(this)==(this.ha&64)&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ah;this.ha&192&&
|
||||
|
|
@ -419,8 +419,8 @@ A[182]=function(){this.kc.call(this,ej);switch(this.ga>>3&7){case 0:this.D=this.
|
|||
A[188]=function(){this.la.call(this,Bi)};A[189]=function(){this.la.call(this,Ci)};
|
||||
A[190]=function(){this.kc.call(this,ej);switch(this.ga>>3&7){case 0:this.D=this.D&~this.R|(this.D&255)<<24>>24&this.R;break;case 1:this.I=this.I&~this.R|(this.I&255)<<24>>24&this.R;break;case 2:this.L=this.L&~this.R|(this.L&255)<<24>>24&this.R;break;case 3:this.G=this.G&~this.R|(this.G&255)<<24>>24&this.R;break;case 4:this.zc=this.zc&~this.R|this.D<<16>>24&this.R;this.D=this.xa;break;case 5:this.M=this.M&~this.R|this.I<<16>>24&this.R;this.I=this.xa;break;case 6:this.K=this.K&~this.R|this.L<<16>>24&
|
||||
this.R;this.L=this.xa;break;case 7:this.J=this.J&~this.R|this.G<<16>>24&this.R,this.G=this.xa}this.A-=-1===this.C?3:6};A[191]=function(){se(this,2);this.la.call(this,oj);switch(this.ga>>3&7){case 0:this.D=this.D<<16>>16;break;case 1:this.I=this.I<<16>>16;break;case 2:this.L=this.L<<16>>16;break;case 3:this.G=this.G<<16>>16;break;case 4:this.zc=this.zc<<16>>16;break;case 5:this.M=this.M<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.J=this.J<<16>>16}this.A-=-1===this.C?3:6};
|
||||
var eg=[function(){this.A-=2+(-1===this.C?0:1);return this.Db.U},function(){this.A-=2+(-1===this.C?0:1);return this.ka.U},function(a){this.N|=2;this.Db.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;-1!==this.ka.load(a)&&(this.hb(this.ka.Lb+4,this.ka.nb|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&2048!=(this.xb.nb&2560)&&(this.xb.qc>=this.La&&this.xb.qc>=(a&3)||7168==(this.xb.nb&7168)))return Eg(this),
|
||||
a;Ag(this);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&512==(this.xb.nb&2560)&&this.xb.qc>=this.La&&this.xb.qc>=(a&3))return Eg(this),a;Ag(this);return a},Pi,Pi],Me=[df,df,df,df,df,df,Pi,Pi],hl=[function(a){if(-1===this.C)x.call(this,6);else{a=this.Hc-this.Ib;var b=this.Ib;80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)x.call(this,6);else{a=this.ad-this.Nb;var b=this.Nb;
|
||||
var eg=[function(){this.A-=2+(-1===this.C?0:1);return this.Db.U},function(){this.A-=2+(-1===this.C?0:1);return this.ka.U},function(a){this.N|=2;this.Db.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;-1!==this.ka.load(a)&&(this.hb(this.ka.Lb+4,this.ka.nb|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&2048!=(this.xb.nb&2560)&&(this.xb.qc>=this.La&&this.xb.qc>=(a&3)||7168==(this.xb.nb&7168)))return Cg(this),
|
||||
a;Ag(this);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&512==(this.xb.nb&2560)&&this.xb.qc>=this.La&&this.xb.qc>=(a&3))return Cg(this),a;Ag(this);return a},Pi,Pi],Me=[df,df,df,df,df,df,Pi,Pi],hl=[function(a){if(-1===this.C)x.call(this,6);else{a=this.Hc-this.Ib;var b=this.Ib;80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)x.call(this,6);else{a=this.ad-this.Nb;var b=this.Nb;
|
||||
80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.O&131072?x.call(this,6):(this.Ib=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.Hc=this.Ib+a,this.N|=2,this.A-=11);return a},function(a){-1===this.C||this.O&131072?x.call(this,6):(this.Nb=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.ad=this.Nb+a,this.N|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.qa},Pi,function(a){this.O&
|
||||
131072?x.call(this,6):(Fg(this,a),this.A-=-1===this.C?3:6,this.N|=2);return a},Pi],il=[Pi,Pi,Pi,Pi,Di,Gi,Fi,Ei];
|
||||
function jl(a){rb.call(this,"ChipSet",a,32768);var b=a.model;b&&!kl[b]&&mb("Unrecognized ChipSet model: "+b);this.da=kl[b]||ll;this.B=[];b=ml(a[nl]);this.B[0]=[b,b];null==b&&(this.N=[360,360],(b=a.floppies)&&b.length&&(this.N=b),ol(this,pl,this.N.length),ol(this,ql,a.monitor||(this.da<oh?"mono":"ega")));b=ml(a[rl]);this.B[1]=[b,b];this.za=this.ha=1;this.da>=oh&&(this.za=this.ha=2);this.O=a.scaleTimers||!1;this.La=a.rtcDate;this.Ga=!1;a.sound&&(this.Ea=this.ka=null,window&&(this.Ea=window.AudioContext||
|
||||
|
|
@ -469,7 +469,7 @@ l.$l=function(a,b){var c=this.J&~(Lp|Mp)|(Kd(this.H)&64?Mp:0);t(this,a,null,b,"8
|
|||
l.Bn=function(a,b,c){t(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.L=b;this.D|=zp;a=0;this.L>=Np&&(a=this.L^15,this.L=Np);switch(this.L){case Op:Kp(this,this.K);break;case Pp:Bp(this,this.K|Xl);break;case Qp:Bp(this,this.K&~Xl);this.C&&yp(this.C);break;case Rp:this.C&&(a=this.C,a.A=[],r(a)&&Rb(a,"scan codes flushed"));Bp(this,this.K|Xl);Kp(this,Sp);Dp(this,gm|hm);break;case Tp:Kp(this,Up);break;case Vp:Kp(this,this.M);break;case Wp:Kp(this,this.qa);break;case Xp:Kp(this,this.K&Xl?0:Yp);break;case Np:a&
|
||||
1&&yf(this.H)}};function Bp(a,b){a.K=b;a.D=a.D&~Zp|b&$p;a.C&&rp(a.C,!!(b&aq),!(b&Xl))}function Kp(a,b,c){0<=b&&(a.oa=b,c?a.D|=wp:(a.D&=~wp,a.D|=xp))}function Dp(a,b){a.qa=b;uc(a.ma,!!(b&hm));b&gm||yf(a.H)}function bq(a,b){a.da<oh?(rh(a,cq,4),a.aa|=wp):a.K&Xl||a.D&(wp|xp)||(Kp(a,b,!0),dq(a.C),rh(a,cq,120))}function eq(a,b,c,d){var e=a.B[b][1];t(a,c,null,d,"DIPSW-"+b,e,32768);return e}l.om=function(a,b){t(this,a,null,b,"CMOS.ADDR",this.W,4096);return this.W};
|
||||
l.Rn=function(a,b,c){t(this,a,b,c,"CMOS.ADDR",null,4096);this.W=b;this.ea=b&fq?sh:gq};l.pm=function(a,b){var c=this.W&hq,d=c<=Ml?Nl(this,c):this.A[c];r(this,4352)&&t(this,a,null,b,"CMOS.DATA["+ta(c)+"]",d,!0);null!=b&&c==an&&(this.A[c]&=iq,d&fp&&ph(this,gp),d&ep&&this.A[$d]&ae&&en(this));return d};
|
||||
l.Sn=function(a,b,c){var d=this.W&hq;r(this,4352)&&t(this,a,b,c,"CMOS.DATA["+ta(d)+"]",null,!0);a=b^this.A[d];if(d<=Ml){if(c=b,d<Zm){var e=!1;this.A[$d]&cn||(c=10*(c>>4)+(c&15),e=!0);if(d==ym||d==zm)e&&23<c&&(c+=48),this.A[$d]&$m||(12>=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==$d&&a&ae&&b&ae&&en(this)};l.Tk=function(a,b,c){t(this,a,b,c,"NMI");this.ea=b};l.bo=function(a,b,c){t(this,a,b,c,"FPU.CLEAR")};l.co=function(a,b,c){t(this,a,b,c,"FPU.RESET");this.Ic&&jh(this.Ic)};
|
||||
l.Sn=function(a,b,c){var d=this.W&hq;r(this,4352)&&t(this,a,b,c,"CMOS.DATA["+ta(d)+"]",null,!0);a=b^this.A[d];if(d<=Ml){if(c=b,d<Zm){var e=!1;this.A[$d]&cn||(c=10*(c>>4)+(c&15),e=!0);if(d==ym||d==zm)e&&23<c&&(c+=48),this.A[$d]&$m||(12>=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==$d&&a&ae&&b&ae&&en(this)};l.Tk=function(a,b,c){t(this,a,b,c,"NMI");this.ea=b};l.bo=function(a,b,c){t(this,a,b,c,"FPU.CLEAR")};l.co=function(a,b,c){t(this,a,b,c,"FPU.RESET");this.Ic&&Xg(this.Ic)};
|
||||
l.bn=function(a){if(r(this,16)&&el(this.ca,26,a)){var b=this.H.D>>8;bg(this.H,a,function(a,d){return function(c){d=Kd(a.H)-d;var e,g=a.H.L&255,h=a.H.L>>8,k=a.H.L&255,m=a.H.L>>8;if(2==b||3==b)e=" CH(hour)="+ua(h)+" CL(min)="+ta(g)+" DH(sec)="+ta(m);else if(4==b||5==b)e=" CX(year)="+ua(a.H.I)+" DH(month)="+ta(m)+" DL(day)="+ta(k);g=a.ca;h=d;g.message("INT "+ta(26)+": C="+(mg(g.H)?1:0)+(e||"")+" (cycles="+h+(c?",level="+(c+1):"")+")")}}(this,Kd(this.H)))}return!0};
|
||||
function gn(a,b){if(a.ka)try{void 0!==b?a.Ga=b:b=!!(a.Ga&&a.H&&a.H.ba.ab);var c=Math.round(xl/Ho(a,Io));if(20>c||2E4<c)b=!1;b?a.I?(a.I.frequency.value=c,r(a,33554432)&&Rb(a,"speaker set to "+c+"hz",!0)):(a.I=a.ka.createOscillator(),a.I&&(a.I.type="number"==typeof a.I.type?1:"square",a.I.connect(a.ka.destination),a.I.frequency.value=c,"start"in a.I?a.I.start(0):a.I.noteOn(0),r(a,33554432)&&Rb(a,"speaker on at "+c+"hz",!0))):a.I&&("stop"in a.I?a.I.stop(0):a.I.noteOff(0),a.I.disconnect(),delete a.I,
|
||||
r(a,33554432)&&Rb(a,"speaker off at "+c+"hz",!0))}catch(d){a.Ca("AudioContext exception: "+d.message),a.ka=null}else b&&Rb(a,"BEEP",33554432)}var tl=5150,ll=5150.9,oh=5170,ul=5160.101,Gl=5180,kl={5150:tl,5160:5160,5170:oh,att6300:ul,mpc1600:5150.101,z150:5160.15,compaq:5150.102,other:ll};kl.deskpro386=Gl;
|
||||
|
|
@ -564,7 +564,7 @@ function ht(a,b){if(1==b)return a.ha[0]=it[ct],a.ha[1]=it[at],a.ha;if(2==b){var
|
|||
(c.Cc[20]&12)<<4,c.Cc[16]&128&&(f&=-49,f|=(c.Cc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.ha[e]=[g,h,f,255]}a.Ia=!0}return a.ha}function oq(a,b,c,d){a.xb=b;a.Ya=c;a.Ea=d}
|
||||
function Ys(a,b){var c=!1;if(window&&a.xb&&(!b||a.I)){var d=0,e=a.Ea?a.Ea:8,f=ht(a);null!=a.Ya[0]&&mt(a,nt,a.Ya[0],d,e,8,a.xb,f)&&(c=!0);d=a.Ea?0:2048;e=a.Ea?a.Ea:9;null!=a.Ya[1]&&(mt(a,ot,a.Ya[1],d,e,14,a.xb,pt,qt)&&(c=!0),a.Ea&&mt(a,a.Ka,a.Ya[1],0,a.Ea,14,a.xb,f)&&(c=!0))}b||(a.aa=-1,a.Aa=-1,a.va=0);return c}function mt(a,b,c,d,e,f,g,h,k){var m=!1;null!=c&&(rt(a,b,c,d,e,f,g,h,k)&&(m=!0),a.Rd&&rt(a,b<<1,c,d,e,f,g,h,k)&&(m=!0));return m}
|
||||
function rt(a,b,c,d,e,f,g,h,k){var m=!1,p=b&1?0:1,v=a.sa[b],u=16>h.length?h.length:16;v||(v={Fc:e<<p,Gc:f<<p,Ge:Array(u),Ui:h.slice(0,u),kf:k,Vg:Array(u)});for(k=0;k<u;k++){var F=h[k],J=v.Ge[k]?v.Ui[k]:[];if(F[0]!==J[0]||F[1]!==J[1]||F[2]!==J[2]){var m=v,J=k,H=p,I=c,P=d,L=e,ka=f,Z=g,jb=[0,0,0,0],qa=document.createElement("canvas");qa.width=m.Fc<<4;qa.height=m.Gc<<4;var db=qa.getContext("2d"),Oa,kb,eb,sc=8>ka||!P?ka:8,lb=db.createImageData(m.Fc,m.Gc);for(Oa=0;256>Oa;Oa++){for(eb=0;eb<ka;eb++)for(var gf=
|
||||
m.kf&&J&1&&eb>=ka-2,Nd=Z[eb<sc?I+Oa*sc+eb:P+Oa*sc+eb-sc],hf=0;hf<=H;hf++)for(kb=0;kb<L;kb++){var Cg=kb<<H,jf=(eb<<H)+hf,Dg=gf||Nd&128>>(8<=kb&&192<=Oa&&223>=Oa?7:kb)?F:jb;st(lb,Cg,jf,Dg);H&&st(lb,Cg+1,jf,Dg)}db.putImageData(lb,(Oa&15)*m.Fc,(Oa>>4)*m.Gc)}m.Ge[J]="#"+q(F[0],2)+q(F[1],2)+q(F[2],2);m.Ui[J]=F;m.Vg[J]=qa;m=!0}}a.sa[b]=v;return m}function tt(a){0<a.va||0<=a.aa?0>a.Aa&&(a.Aa=0):a.Aa=-1}
|
||||
m.kf&&J&1&&eb>=ka-2,Nd=Z[eb<sc?I+Oa*sc+eb:P+Oa*sc+eb-sc],hf=0;hf<=H;hf++)for(kb=0;kb<L;kb++){var Dg=kb<<H,jf=(eb<<H)+hf,Eg=gf||Nd&128>>(8<=kb&&192<=Oa&&223>=Oa?7:kb)?F:jb;st(lb,Dg,jf,Eg);H&&st(lb,Dg+1,jf,Eg)}db.putImageData(lb,(Oa&15)*m.Fc,(Oa>>4)*m.Gc)}m.Ge[J]="#"+q(F[0],2)+q(F[1],2)+q(F[2],2);m.Ui[J]=F;m.Vg[J]=qa;m=!0}}a.sa[b]=v;return m}function tt(a){0<a.va||0<=a.aa?0>a.Aa&&(a.Aa=0):a.Aa=-1}
|
||||
function gt(a){if(a.I){for(var b=10;15>=b;b++)if(null==a.B.Xa[b])return;var c=a.B.Xa[10],b=c&31,d=a.B.Xa[11]&ws[11],e=a.B.Xa[9]&ws[9],f=!1;a.B===a.A&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)ut(a);else{c=a.B.Xa[15];c|=(a.B.Xa[14]&a.B.gg)<<8;a.aa!=c&&(ut(a),a.aa=c);d=d-b+1;if(a.Fd!=b||a.Tc!=d)a.Fd=b,a.Tc=d;a.xa=e+1;tt(a)}}}
|
||||
function ut(a){if(0<=a.aa){if(void 0!==a.M){var b=vt<<8,c=a.M[a.aa];if(c&b){var c=c&~b,b=a.aa%a.F,d=a.aa/a.F|0;a.I&&a.sa[a.I]&&(a.Da&&wt(a,b,d,c,a.Da),wt(a,b,d,c));a.M[a.aa]=c}}a.aa=-1}}
|
||||
function xt(a){var b,c=a.B;a.Uc=!1;var d=c.Cd[5];if(null!=d){b=Jr;var e=Lr,f=c.Cd[3]&31;switch(d&3){case 0:if(f){e=Lr|32;switch(f&24){case 8:e=Lr|96;break;case 16:e=Lr|160;break;case 24:e=Lr|224}c.Qc=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Ka==pq&&(e=3,c.Qc=f&7)}d&8&&(b=1280);c=c.de[4];null!=c&&(c&4||(b|=Kr,e|=Mr),d&64&&(c&8&&(b|=16384,e|=4),a.Uc=!0));b|=e}return b}
|
||||
|
|
@ -803,7 +803,7 @@ function nA(a,b){var c;if(b&&"?"==b[1])a.P("register commands:"),a.P("\tr\tdump
|
|||
a.P("ST"+f+": "+Aa(e[2].toFixed(15),24,!0)+" "+q(e[4])+","+q(e[3])+" ["+e[0]+":"+EB[e[1]]+"]")}a.P(" B3SSS210ESPUOZDI xxxIRRPPIxPUOZDI");a.P("SW: "+ra(d,16)+" ("+ua(d)+") CW: "+ra(b,16)+" ("+ua(b)+")");return}if("p"==e)d=80286<=a.H.da;else{f=e.indexOf("=");if(0<f)b=e.substr(f+1),e=e.substr(0,f);else if(2<b.length)b=b[2];else{a.P("missing value for "+b[1]);return}g=By(a,b);if(void 0===g)return;f=!0;h=e.toUpperCase();"E"==h.charAt(0)&&4>=a.sa&&(h=null);switch(h){case "AL":a.H.D=
|
||||
a.H.D&-256|g&255;break;case "AH":a.H.D=a.H.D&-65281|g<<8&255;break;case "AX":a.H.D=a.H.D&-65536|g&65535;break;case "BL":a.H.G=a.H.G&-256|g&255;break;case "BH":a.H.G=a.H.G&-65281|g<<8&255;break;case "BX":a.H.G=a.H.G&-65536|g&65535;break;case "CL":a.H.I=a.H.I&-256|g&255;break;case "CH":a.H.I=a.H.I&-65281|g<<8&255;break;case "CX":a.H.I=a.H.I&-65536|g&65535;break;case "DL":a.H.L=a.H.L&-256|g&255;break;case "DH":a.H.L=a.H.L&-65281|g<<8&255;break;case "DX":a.H.L=a.H.L&-65536|g&65535;break;case "SP":pe(a.H,
|
||||
y(a.H)&-65536|g&65535);break;case "BP":a.H.M=a.H.M&-65536|g&65535;break;case "SI":a.H.K=a.H.K&-65536|g&65535;break;case "DI":a.H.J=a.H.J&-65536|g&65535;break;case "DS":ve(a.H,g);break;case "ES":we(a.H,g);break;case "SS":oe(a.H,g);break;case "CS":hg(a.H,g);a.N=Gy(a,z(a.H),a.H.Z.U);break;case "IP":case "EIP":B(a.H,g);a.N=Gy(a,z(a.H),a.H.Z.U);break;case "PC":case "PS":Fe(a.H,g);break;case "C":g?tg(a.H):ug(a.H);break;case "P":g?(e=a.H,e.resultType&=-3,e.O|=4):(e=a.H,e.resultType&=-3,e.O&=-5);break;case "A":g?
|
||||
Bg(a.H):zg(a.H);break;case "Z":g?Eg(a.H):Ag(a.H);break;case "S":g?(e=a.H,e.resultType&=-17,e.O|=128):(e=a.H,e.resultType&=-17,e.O&=-129);break;case "I":g?(e=a.H,e.O|=512):(e=a.H,e.O&=-513);break;case "D":g?(e=a.H,e.O|=1024):(e=a.H,e.O&=-1025);break;case "V":g?vg(a.H):wg(a.H);break;default:var k=!0;if(80286<=a.H.da)switch(k=!1,h){case "MS":Fg(a.H,g);break;case "TR":-1===a.H.ka.load(g)&&(f=!1);break;default:if(k=!0,80386<=a.H.da)switch(k=!1,h){case "EAX":a.H.D=g;break;case "EBX":a.H.G=g;break;case "ECX":a.H.I=
|
||||
Bg(a.H):zg(a.H);break;case "Z":g?Cg(a.H):Ag(a.H);break;case "S":g?(e=a.H,e.resultType&=-17,e.O|=128):(e=a.H,e.resultType&=-17,e.O&=-129);break;case "I":g?(e=a.H,e.O|=512):(e=a.H,e.O&=-513);break;case "D":g?(e=a.H,e.O|=1024):(e=a.H,e.O&=-1025);break;case "V":g?vg(a.H):wg(a.H);break;default:var k=!0;if(80286<=a.H.da)switch(k=!1,h){case "MS":Fg(a.H,g);break;case "TR":-1===a.H.ka.load(g)&&(f=!1);break;default:if(k=!0,80386<=a.H.da)switch(k=!1,h){case "EAX":a.H.D=g;break;case "EBX":a.H.G=g;break;case "ECX":a.H.I=
|
||||
g;break;case "EDX":a.H.L=g;break;case "ESP":pe(a.H,g);break;case "EBP":a.H.M=g;break;case "ESI":a.H.K=g;break;case "EDI":a.H.J=g;break;case "FS":a.H.Ga.load(g);break;case "GS":a.H.Ia.load(g);break;case "CR0":a.H.qa=g;kk.call(a.H,g);break;case "CR2":a.H.qd=g;break;case "CR3":a.H.Uc=g;He.call(a.H,g);break;default:k=!0}}if(k){a.P("unknown register: "+e);return}}if(!f){a.P("invalid value: "+b);return}Id(a.H);a.P("updated registers:")}}a.P(xB(a,d));c&&(a.N=Gy(a,z(a.H),a.H.Z.U),oA(a,dz(a.N)))}}
|
||||
function FB(a,b){b=Ba(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.P(gA(a,c[2])):By(a,b,!1)}function GB(a,b,c){for(var d=null,e=b.Ha,f=e,g=1;6>=g&&e;g++){if(2<g){b.Ha=e;b.ya=null;var h=wA(a,b);if(0<=h.indexOf("CALL")||c&&0<=h.indexOf("INT")){var k=h.indexOf(" ");if(e+(h.indexOf(" ",k+1)-k-1)/2==f){d=h;break}}}e--}b.Ha=f;return d}function HB(a,b,c){var d="t"!=b;c=vy(a,c,null,!0)||1;var e=1==c?0:1;"tc"==b&&(e=c,c=1);$a(c,function(){return Qb(a,!0)&&ez(a,e,d,!1)},function(){Id(a.H);Qb(a,!1)})}
|
||||
function nB(a,b,c){if(a.fh=b)null!=a.uj&&(a.Hb=a.uj),null!=a.tj&&(a.ec=a.tj),a.uj=a.Hb,a.tj=a.ec;a.Ke=c||0}
|
||||
|
|
@ -814,23 +814,23 @@ nz(a,g[1],!0);if(v)if(a.ea=v,void 0===g[2])a.P("begin assemble at "+dz(v)),a.ga=
|
|||
a.P("\tbc [a]\tclear breakpoint at addr [a]"),a.P("\tbl\tlist all breakpoints"),a.P("\tbn [n]\tbreak after [n] instruction(s)");else{var P=J.charAt(1);if("l"==P){var L;L=0+uA(a,a.B);L+=uA(a,a.W);(L+=uA(a,a.L))||a.P("no breakpoints")}else if("n"==P)a.xa=vy(a,H),a.P("break after "+a.xa+" instruction(s)");else if(void 0===H)a.P("missing breakpoint address");else{var ka={};if("*"!=H&&(ka=nz(a,H,!0,!0),!ka))break a;H=null==ka.Ha?H:ua(ka.Ha);"c"==P?null==ka.Ha?(Hy(a),a.P("all breakpoints cleared")):cz(a,
|
||||
a.B,ka)||cz(a,a.W,ka)||cz(a,a.L,ka)||a.P("breakpoint missing: "+dz(ka)):"i"==P?a.P("breakpoint "+(Sc(a.ma,ka.Ha)?"enabled":"cleared")+": port "+H+" (input)"):"o"==P?a.P("breakpoint "+(Wc(a.ma,ka.Ha)?"enabled":"cleared")+": port "+H+" (output)"):null!=ka.Ha&&(qz(a,ka,I),"p"==P?a.sd(a.B,ka):"r"==P?a.sd(a.W,ka):"w"==P?a.sd(a.L,ka):a.P("unknown breakpoint command: "+P))}}}break;case "c":DB(a.pa);break;case "d":a:{var Z=g,jb,qa=Z[0],db=Z[1],Oa=Z[2],kb=Z[3];if("?"==db){var eb="";for(jb in Xb)a.Da[jb]&&
|
||||
(eb&&(eb+=","),eb+=jb);eb+=",state,symbols";a.P("dump memory commands:");a.P("\tdb [a] [#] dump # bytes at address a");a.P("\tdw [a] [#] dump # words at address a");a.P("\tdd [a] [#] dump # dwords at address a");a.P("\tdh [#] [#] dump # instructions from history");a.P("\tdi [#] dump descriptor info for IDT #");a.P("\tds [#] dump descriptor info for selector #");eb.length&&a.P("dump extension commands:\n\t"+eb)}else if("state"==db){var sc=IB(a.pa,!0);sc?"console"==Oa?console.log(sc):
|
||||
(DB(a.pa),a.P(sc)):a.P("powerOff() error")}else if("symbols"==db)for(var lb=0;lb<a.F.length;lb++){var gf=a.F[lb],Nd;for(Nd in gf.Hd)if("."!=Nd.charAt(0)){var hf=gf.Hd[Nd],Cg=hf.o;if(void 0!==Cg){var jf=hf.s;void 0===jf&&(jf=gf.U);var Dg=gf.Hd[Nd].l;Dg&&(Nd=Dg);a.P(Ty(Cg,jf)+" "+Nd)}}}else{if("ds"==qa||"dg"==qa||"dl"==qa)qa="d",Z=[qa,"desc",db];"d"==qa&&"page"==db&&(qa="dp",Z.shift());if("dp"==qa){Z.shift();var Dm=Z[0];if(Dm){var Xg=a.Tb(nz(a,Dm));if(-1===Xg)a.P("invalid address: "+Dm);else{var tf,
|
||||
Ra=null;if(80386<=a.H.da){var uf=a.ma,Ra={};Ra.Pk=(Xg&-4194304)>>>20;Ra.Xi=a.H.Uc+Ra.Pk;Ra.ob=uf.aa[(Ra.Xi&uf.C)>>>uf.A];Ra.Fj=Ra.ob.Nd(Ra.Pk);Ra.Qk=(Xg&4190208)>>>10;Ra.Yi=(Ra.Fj&-4096)+Ra.Qk;Ra.pb=uf.aa[(Ra.Yi&uf.C)>>>uf.A];Ra.Gj=Ra.pb.Nd(Ra.Qk);Ra.zl=(Ra.Gj&-4096)+(Xg&4095)}if(tf=Ra){a.P("linear PDE addr PDE PTE addr PTE physical");a.P("--------- ---------- -------- ---------- -------- ----------");var ye="%"+q(Xg),ye=ye+(" %%"+sz(tf.Xi,tf.Fj)),ye=
|
||||
ye+(" %%"+sz(tf.Yi,tf.Gj,!0)),ye=ye+(" %%"+q(tf.zl));a.P(ye)}else a.P("unsupported operation")}}else a.P("missing address")}else{if("d"==qa){if("disk"==db){Z[0]="l";Z[1]="json";CB(a,Z);break a}for(jb in Xb)if(Z[1]==jb){var Rt=a.Da[jb];Rt?(Z.shift(),Z.shift(),Rt(Z)):a.P("no dump registered for "+db);break a}db||(qa=a.lb||"db")}if("dh"==qa){var St=db,Tt=Oa,Yg=kb,Yg=void 0===Yg?"history":Yg,Ut="",Vt=0,Nc=a.oa,md=a.Y;if(md.length){var wc=+St||a.Ya,Zg=+Tt||10;isNaN(wc)?wc=Zg:Ut="more ";wc>md.length&&
|
||||
(a.P("note: only "+md.length+" available"),wc=md.length);Nc-=wc;0>Nc&&(null==md[md.length-1].U?(wc=Nc+wc,Nc=0):Nc+=md.length);var Em=[];"call"==Tt&&(Zg=1E5,Em=["CALL"]);for(void 0!==St&&a.P(wc+" instructions earlier:");0<Zg&&Nc!=a.oa;){var nd=md[Nc++];if(null==nd.U)break;var $g=Gy(a,nd.Ha,nd.U,nd.ya,nd.type,nd.Hb,nd.ec),Wt=wc--;null!=nd.mj&&"cycles"==Yg&&(Wt=nd.mj);var Xt=wA(a,$g,Yg,Wt);(!Em.length||0<=Xt.indexOf(Em[0]))&&a.P(Xt);$g.Ke&&(Nc+=$g.Ke,Zg-=$g.Ke,wc-=$g.Ke);Nc>=md.length&&(Nc=0);a.Ya=wc;
|
||||
Vt++;Zg--}}Vt||(a.P("no "+Ut+"history available"),a.Ya=void 0)}else if("di"==qa){Z.shift();var Fm=Z[0];if(Fm){var ah=vy(a,Fm);if(void 0===ah||0>ah||255<ah)a.P("invalid vector: "+Fm);else{var Yt="&",Zt=!!(a.H.qa&1),$t=!1,fj=a.H.Nb+(ah<<(Zt?3:2)),au=a.H.ja(fj+0),yC=a.H.ja(fj+2);Zt&&(Yt="#",a.H.ja(fj+4)&2048&&($t=!0,au|=a.H.ja(fj+6)<<16));a.P("dumpIDT("+ua(ah)+"): "+Yt+q(yC,4)+":"+q(au,$t?8:4))}}else a.P("no IDT vector")}else if("dt"==qa)Z.shift(),a.P("no information");else if(qa[1]&&0>"abwd".indexOf(qa[1]))a.P("unrecognized dump command");
|
||||
else{a.lb=qa;var ze=nz(a,db);if(ze&&(null!=ze.U||null!=ze.ya)){var vf=0;if(Oa){if("l"==Oa.charAt(0))Oa=Oa.substr(1)||kb,vf=vy(a,Oa);else{var bu=nz(a,Oa);if(!bu)break a;vf=bu.Ha-ze.Ha+1}if(0>vf||65536<vf)vf=0}var Ae="",Gm=!1,wf="dd"==qa?4:"dw"==qa?2:1,bh=wf*vf||128,Hm=bh+15>>4||1,Im=4==wf?16:a.D;"a"==qa[1]&&(Gm=!0,Hm=25,Im=160,bh=Hm*Im);for(;Hm--&&0<bh;){var ch=0,Jm=0,dh,Km="",gj="",db=dz(ze);for(dh=Im;0<dh&&0<bh;dh--){var hj=a.Ja(ze,1),ch=ch|hj<<(Jm++<<3);Jm==wf&&(Km+=8==a.D?sa(ch,3*wf):q(ch,2*wf),
|
||||
Km+=1==wf?9==dh?"-":" ":" ",ch=Jm=0);gj+=32<=hj&&128>hj?String.fromCharCode(hj):Gm?"":".";bh--}Ae&&(Ae+="\n");Ae=Gm?Ae+gj:Ae+(db+" "+Km+Aa(gj,gj.length+3*dh+1,!0))}Ae&&a.P(Ae.replace(/\s*$/,""));a.Aa=ze}}}}}break;case "e":if("else"==g[0])break;var ij=1,cu=255,du=a.Ja,eu=a.Pb;"ew"==g[0]&&(ij=2,cu=65535,du=a.Wc,eu=a.nl);var fu=ij<<1,gu=g[1];if(null==gu)a.P("edit memory commands:"),a.P("\teb [a] [...] edit bytes at address a"),a.P("\tew [a] [...] edit words at address a");else{var jj=nz(a,gu);if(jj)for(var kj=
|
||||
2;kj<g.length;kj++){var eh=By(a,g[kj]);if(void 0===eh){a.P("unrecognized value: "+g[kj]);break}eh&~cu&&a.P("warning: "+q(eh)+" exceeds "+ij+"-byte value");var zC=du.call(a,jj);a.P("changing "+dz(jj)+" from "+q(zC,fu,!0)+" to "+q(eh,fu,!0));eu.call(a,jj,eh,ij)}}break;case "f":zB(a,g[1]);break;case "g":a:{var hu=g[1],AC=b;"gt"==g[0]&&(a.Ea=!0);if(void 0!==hu){var Lm=nz(a,hu,!0);if(!Lm)break a;qz(a,Lm,AC);a.sd(a.B,Lm,!0)}lA(a,!0)||c||a.P("cpu busy or unavailable, run command ignored")}break;case "h":a:{var Mm;
|
||||
if(a.ba.ab)Mm="halting",a.Kb();else{if(Pb(a,!0))break a;Mm="already halted"}c||a.P(Mm)}break;case "i":if("if"==g[0]){var Nm;var fh=b.substr(2),fh=Ba(fh);By(a,fh)?(c||a.P("true: "+fh),Nm=!0):(c||a.P("false: "+fh),Nm=!1);Nm||(d=!1);break}if("int"==g[0]){var lj;a:switch(vy(a,g[1])){case 19:el(a,19,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;case 33:el(a,33,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;default:lj=!1}lj||(d=!1);break}var Om=g[1];if(Om&&"?"!=Om){var Pm=vy(a,Om);if(void 0!==Pm){var BC=Uc(a.ma,Pm,1);a.P(ua(Pm)+
|
||||
": "+ta(BC))}}else a.P("input commands:"),a.P("\ti [p]\tread port [p]"),a.P("warning: port accesses can affect hardware state");break;case "k":var CC=g[0];if("?"==g[1])a.P("stack trace commands:"),a.P("\tk\tshow frame addresses"),a.P("\tks\tshow symbol information");else{var Qm=0,iu=a.H.Z.U,gh=Gy(a),Vd=Gy(a,y(a.H),a.H.Y.U);for(a.P("stack trace for "+dz(Vd));10>Qm;){for(var od=null,DC=256;Vd.Ha>>>0<a.H.Sg>>>0;){gh.Ha=a.mb(Vd,!0);if(null==Vd.ya||!DC--)break;gh.U=iu;if(od=GB(a,gh))break;gh.U=a.mb(Vd);
|
||||
if(od=GB(a,gh,!0)){iu=a.mb(Vd,!0);0<od.indexOf("INT")&&a.mb(Vd,!0);break}}if(!od||null==od)break;var ju=null;if("ks"==CC){var ku=od.match(/[0-9A-F]+$/);ku&&(ju=BB(a,ku[0]))}od=Aa(od,50)+" ;"+(ju||"stack="+dz(Vd));a.P(od);Qm++}Qm||a.P("no return addresses found")}break;case "l":if("ln"==g[0]){BB(a,g[1],!0);break}CB(a,g);break;case "m":if("mouse"==g[0]){var Rm=g[1],mj=g[2];if(a.G){var lu=1;"-"==mj.charAt(0)&&(lu=-1,mj=mj.substr(1));var Be=vy(a,mj,Rm);if(void 0!==Be)switch(Be=Be*lu|0,Rm){case "x":a.G.uf(Be,
|
||||
(DB(a.pa),a.P(sc)):a.P("powerOff() error")}else if("symbols"==db)for(var lb=0;lb<a.F.length;lb++){var gf=a.F[lb],Nd;for(Nd in gf.Hd)if("."!=Nd.charAt(0)){var hf=gf.Hd[Nd],Dg=hf.o;if(void 0!==Dg){var jf=hf.s;void 0===jf&&(jf=gf.U);var Eg=gf.Hd[Nd].l;Eg&&(Nd=Eg);a.P(Ty(Dg,jf)+" "+Nd)}}}else{if("ds"==qa||"dg"==qa||"dl"==qa)qa="d",Z=[qa,"desc",db];"d"==qa&&"page"==db&&(qa="dp",Z.shift());if("dp"==qa){Z.shift();var Dm=Z[0];if(Dm){var Yg=a.Tb(nz(a,Dm));if(-1===Yg)a.P("invalid address: "+Dm);else{var tf,
|
||||
Ra=null;if(80386<=a.H.da){var uf=a.ma,Ra={};Ra.Pk=(Yg&-4194304)>>>20;Ra.Xi=a.H.Uc+Ra.Pk;Ra.ob=uf.aa[(Ra.Xi&uf.C)>>>uf.A];Ra.Fj=Ra.ob.Nd(Ra.Pk);Ra.Qk=(Yg&4190208)>>>10;Ra.Yi=(Ra.Fj&-4096)+Ra.Qk;Ra.pb=uf.aa[(Ra.Yi&uf.C)>>>uf.A];Ra.Gj=Ra.pb.Nd(Ra.Qk);Ra.zl=(Ra.Gj&-4096)+(Yg&4095)}if(tf=Ra){a.P("linear PDE addr PDE PTE addr PTE physical");a.P("--------- ---------- -------- ---------- -------- ----------");var ye="%"+q(Yg),ye=ye+(" %%"+sz(tf.Xi,tf.Fj)),ye=
|
||||
ye+(" %%"+sz(tf.Yi,tf.Gj,!0)),ye=ye+(" %%"+q(tf.zl));a.P(ye)}else a.P("unsupported operation")}}else a.P("missing address")}else{if("d"==qa){if("disk"==db){Z[0]="l";Z[1]="json";CB(a,Z);break a}for(jb in Xb)if(Z[1]==jb){var Rt=a.Da[jb];Rt?(Z.shift(),Z.shift(),Rt(Z)):a.P("no dump registered for "+db);break a}db||(qa=a.lb||"db")}if("dh"==qa){var St=db,Tt=Oa,Zg=kb,Zg=void 0===Zg?"history":Zg,Ut="",Vt=0,Nc=a.oa,md=a.Y;if(md.length){var wc=+St||a.Ya,$g=+Tt||10;isNaN(wc)?wc=$g:Ut="more ";wc>md.length&&
|
||||
(a.P("note: only "+md.length+" available"),wc=md.length);Nc-=wc;0>Nc&&(null==md[md.length-1].U?(wc=Nc+wc,Nc=0):Nc+=md.length);var Em=[];"call"==Tt&&($g=1E5,Em=["CALL"]);for(void 0!==St&&a.P(wc+" instructions earlier:");0<$g&&Nc!=a.oa;){var nd=md[Nc++];if(null==nd.U)break;var ah=Gy(a,nd.Ha,nd.U,nd.ya,nd.type,nd.Hb,nd.ec),Wt=wc--;null!=nd.mj&&"cycles"==Zg&&(Wt=nd.mj);var Xt=wA(a,ah,Zg,Wt);(!Em.length||0<=Xt.indexOf(Em[0]))&&a.P(Xt);ah.Ke&&(Nc+=ah.Ke,$g-=ah.Ke,wc-=ah.Ke);Nc>=md.length&&(Nc=0);a.Ya=wc;
|
||||
Vt++;$g--}}Vt||(a.P("no "+Ut+"history available"),a.Ya=void 0)}else if("di"==qa){Z.shift();var Fm=Z[0];if(Fm){var bh=vy(a,Fm);if(void 0===bh||0>bh||255<bh)a.P("invalid vector: "+Fm);else{var Yt="&",Zt=!!(a.H.qa&1),$t=!1,fj=a.H.Nb+(bh<<(Zt?3:2)),au=a.H.ja(fj+0),yC=a.H.ja(fj+2);Zt&&(Yt="#",a.H.ja(fj+4)&2048&&($t=!0,au|=a.H.ja(fj+6)<<16));a.P("dumpIDT("+ua(bh)+"): "+Yt+q(yC,4)+":"+q(au,$t?8:4))}}else a.P("no IDT vector")}else if("dt"==qa)Z.shift(),a.P("no information");else if(qa[1]&&0>"abwd".indexOf(qa[1]))a.P("unrecognized dump command");
|
||||
else{a.lb=qa;var ze=nz(a,db);if(ze&&(null!=ze.U||null!=ze.ya)){var vf=0;if(Oa){if("l"==Oa.charAt(0))Oa=Oa.substr(1)||kb,vf=vy(a,Oa);else{var bu=nz(a,Oa);if(!bu)break a;vf=bu.Ha-ze.Ha+1}if(0>vf||65536<vf)vf=0}var Ae="",Gm=!1,wf="dd"==qa?4:"dw"==qa?2:1,ch=wf*vf||128,Hm=ch+15>>4||1,Im=4==wf?16:a.D;"a"==qa[1]&&(Gm=!0,Hm=25,Im=160,ch=Hm*Im);for(;Hm--&&0<ch;){var dh=0,Jm=0,eh,Km="",gj="",db=dz(ze);for(eh=Im;0<eh&&0<ch;eh--){var hj=a.Ja(ze,1),dh=dh|hj<<(Jm++<<3);Jm==wf&&(Km+=8==a.D?sa(dh,3*wf):q(dh,2*wf),
|
||||
Km+=1==wf?9==eh?"-":" ":" ",dh=Jm=0);gj+=32<=hj&&128>hj?String.fromCharCode(hj):Gm?"":".";ch--}Ae&&(Ae+="\n");Ae=Gm?Ae+gj:Ae+(db+" "+Km+Aa(gj,gj.length+3*eh+1,!0))}Ae&&a.P(Ae.replace(/\s*$/,""));a.Aa=ze}}}}}break;case "e":if("else"==g[0])break;var ij=1,cu=255,du=a.Ja,eu=a.Pb;"ew"==g[0]&&(ij=2,cu=65535,du=a.Wc,eu=a.nl);var fu=ij<<1,gu=g[1];if(null==gu)a.P("edit memory commands:"),a.P("\teb [a] [...] edit bytes at address a"),a.P("\tew [a] [...] edit words at address a");else{var jj=nz(a,gu);if(jj)for(var kj=
|
||||
2;kj<g.length;kj++){var fh=By(a,g[kj]);if(void 0===fh){a.P("unrecognized value: "+g[kj]);break}fh&~cu&&a.P("warning: "+q(fh)+" exceeds "+ij+"-byte value");var zC=du.call(a,jj);a.P("changing "+dz(jj)+" from "+q(zC,fu,!0)+" to "+q(fh,fu,!0));eu.call(a,jj,fh,ij)}}break;case "f":zB(a,g[1]);break;case "g":a:{var hu=g[1],AC=b;"gt"==g[0]&&(a.Ea=!0);if(void 0!==hu){var Lm=nz(a,hu,!0);if(!Lm)break a;qz(a,Lm,AC);a.sd(a.B,Lm,!0)}lA(a,!0)||c||a.P("cpu busy or unavailable, run command ignored")}break;case "h":a:{var Mm;
|
||||
if(a.ba.ab)Mm="halting",a.Kb();else{if(Pb(a,!0))break a;Mm="already halted"}c||a.P(Mm)}break;case "i":if("if"==g[0]){var Nm;var gh=b.substr(2),gh=Ba(gh);By(a,gh)?(c||a.P("true: "+gh),Nm=!0):(c||a.P("false: "+gh),Nm=!1);Nm||(d=!1);break}if("int"==g[0]){var lj;a:switch(vy(a,g[1])){case 19:el(a,19,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;case 33:el(a,33,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;default:lj=!1}lj||(d=!1);break}var Om=g[1];if(Om&&"?"!=Om){var Pm=vy(a,Om);if(void 0!==Pm){var BC=Uc(a.ma,Pm,1);a.P(ua(Pm)+
|
||||
": "+ta(BC))}}else a.P("input commands:"),a.P("\ti [p]\tread port [p]"),a.P("warning: port accesses can affect hardware state");break;case "k":var CC=g[0];if("?"==g[1])a.P("stack trace commands:"),a.P("\tk\tshow frame addresses"),a.P("\tks\tshow symbol information");else{var Qm=0,iu=a.H.Z.U,hh=Gy(a),Vd=Gy(a,y(a.H),a.H.Y.U);for(a.P("stack trace for "+dz(Vd));10>Qm;){for(var od=null,DC=256;Vd.Ha>>>0<a.H.Sg>>>0;){hh.Ha=a.mb(Vd,!0);if(null==Vd.ya||!DC--)break;hh.U=iu;if(od=GB(a,hh))break;hh.U=a.mb(Vd);
|
||||
if(od=GB(a,hh,!0)){iu=a.mb(Vd,!0);0<od.indexOf("INT")&&a.mb(Vd,!0);break}}if(!od||null==od)break;var ju=null;if("ks"==CC){var ku=od.match(/[0-9A-F]+$/);ku&&(ju=BB(a,ku[0]))}od=Aa(od,50)+" ;"+(ju||"stack="+dz(Vd));a.P(od);Qm++}Qm||a.P("no return addresses found")}break;case "l":if("ln"==g[0]){BB(a,g[1],!0);break}CB(a,g);break;case "m":if("mouse"==g[0]){var Rm=g[1],mj=g[2];if(a.G){var lu=1;"-"==mj.charAt(0)&&(lu=-1,mj=mj.substr(1));var Be=vy(a,mj,Rm);if(void 0!==Be)switch(Be=Be*lu|0,Rm){case "x":a.G.uf(Be,
|
||||
0);break;case "y":a.G.uf(0,Be);break;case "click":a.G.Yd(Be,!0);a.G.Yd(Be,!1);break;default:a.P("unknown action: "+Rm)}}else a.P("no mouse");break}a:{var pd,qd=null,gb=g[1];"?"==gb&&(gb=void 0);if(void 0!==gb){var Ce=0;if("all"==gb)Ce=1610481663,gb=null;else if("on"==gb)qd=!0,gb=null;else if("off"==gb)qd=!1,gb=null;else{"keys"==gb&&(gb="key");"kbd"==gb&&(gb="keyboard");for(pd in Xb)if(gb==pd){Ce=Xb[pd];qd=!!(a.ic&Ce);break}if(!Ce){a.P("unknown message category: "+gb);break a}}Ce&&("on"==g[2]?(a.ic|=
|
||||
Ce,qd=!0):"off"==g[2]&&(a.ic&=~Ce,qd=!1))}var EC=0,hh="";for(pd in Xb)if(!gb||gb==pd){var FC=!!(a.ic&Xb[pd]);if(null===qd||qd==FC)hh&&(hh+=","),++EC%10||(hh+="\n\t"),"key"==pd&&(pd="keys"),hh+=pd}void 0===gb&&a.P("message commands:\n\tm [category] [on|off]\tturn categories on/off");a.P((null!==qd?qd?"messages on: ":"messages off: ":"message categories:\n\t")+(hh||"none"));Iy(a)}break;case "o":var Sm=g[1],GC=g[2];if(Sm&&"?"!=Sm){var Tm=vy(a,Sm,"port #"),Um=vy(a,GC);void 0!==Tm&&void 0!==Um&&(Yc(a.ma,
|
||||
Ce,qd=!0):"off"==g[2]&&(a.ic&=~Ce,qd=!1))}var EC=0,ih="";for(pd in Xb)if(!gb||gb==pd){var FC=!!(a.ic&Xb[pd]);if(null===qd||qd==FC)ih&&(ih+=","),++EC%10||(ih+="\n\t"),"key"==pd&&(pd="keys"),ih+=pd}void 0===gb&&a.P("message commands:\n\tm [category] [on|off]\tturn categories on/off");a.P((null!==qd?qd?"messages on: ":"messages off: ":"message categories:\n\t")+(ih||"none"));Iy(a)}break;case "o":var Sm=g[1],GC=g[2];if(Sm&&"?"!=Sm){var Tm=vy(a,Sm,"port #"),Um=vy(a,GC);void 0!==Tm&&void 0!==Um&&(Yc(a.ma,
|
||||
Tm,1,Um),a.P(ua(Tm)+": "+ta(Um)))}else a.P("output commands:"),a.P("\to [p] [b]\twrite byte [b] to port [p]"),a.P("warning: port accesses can affect hardware state");break;case "p":if("print"==g[0]){FB(a,b.substr(5));break}var mu="pr"==g[0]?1:0,xf=1+mu;if(a.K)a.P("step in progress");else{var nj,nu=!1,Jb=Gy(a,z(a.H),a.H.Z.U);do switch(nj=!1,a.Ja(Jb)){case 38:case 46:case 54:case 62:case 100:case 101:case 102:case 103:case 240:iz(a,Jb,1);nj=!0;break;case 204:case 206:a.K=xf;iz(a,Jb,1);break;case 205:case 224:case 225:case 226:a.K=
|
||||
xf;iz(a,Jb,Jb.Hb?4:2);break;case 232:a.K=xf;iz(a,Jb,Jb.Hb?5:3);break;case 154:a.K=xf;iz(a,Jb,Jb.Hb?7:5);break;case 255:var ou=a.mb(Jb)&14591;if(4351==ou||6399==ou)a.K=xf,wA(a,Jb);break;case 243:case 242:iz(a,Jb,1);nu=nj=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:nu&&(a.K=xf,iz(a,Jb,1))}while(nj);a.K?(a.sd(a.B,Jb,!0),lA(a)||(a.pa&&a.pa.nd(),a.K=0)):HB(a,mu?"tr":"t")}break;case "r":if("reset"==b){a.pa&&a.pa.reset();
|
||||
break}nA(a,g);break;case "t":HB(a,g[0],g[1]);break;case "u":oA(a,g[1],g[2],8);break;case "v":if("var"==g[0]){AB(a,b.substr(3))||(d=!1);break}a.P("PCx86 version 1.36.0 ("+a.H.da+",RELEASE,NOPREFETCH"+(Tb?",TYPEDARRAYS":",LONGARRAYS")+",NOBACKTRACK)");a.P(Qa());break;case "x":a:if(g[1]&&"?"!=g[1])switch(g[1]){case "cs":var ih;void 0!==g[3]&&(ih=+g[3]);switch(g[2]){case "int":a.H.T.Ve=ih;break;case "start":a.H.T.xf=ih;break;case "stop":a.H.T.Xe=ih;break;default:a.P("unknown cs option");break a}void 0!==
|
||||
ih&&Hd(a.H);a.P("checksums "+(a.H.ba.Me?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&(Md(a.H,+g[2])||a.P("warning: using 1x multiplier, previous target not reached"));a.P("target speed: "+(a.H.T.se.toFixed(2)+"Mhz")+" ("+a.H.T.Kd+"x)");break;default:a.P("unknown option: "+g[1])}else a.P("execution options:"),a.P("\tcs int #\tset checksum cycle interval to #"),a.P("\tcs start #\tset checksum cycle start count to #"),a.P("\tcs stop #\tset checksum cycle stop count to #"),a.P("\tsp #\t\tset speed multiplier to #");
|
||||
break}nA(a,g);break;case "t":HB(a,g[0],g[1]);break;case "u":oA(a,g[1],g[2],8);break;case "v":if("var"==g[0]){AB(a,b.substr(3))||(d=!1);break}a.P("PCx86 version 1.36.0 ("+a.H.da+",RELEASE,NOPREFETCH"+(Tb?",TYPEDARRAYS":",LONGARRAYS")+",NOBACKTRACK)");a.P(Qa());break;case "x":a:if(g[1]&&"?"!=g[1])switch(g[1]){case "cs":var jh;void 0!==g[3]&&(jh=+g[3]);switch(g[2]){case "int":a.H.T.Ve=jh;break;case "start":a.H.T.xf=jh;break;case "stop":a.H.T.Xe=jh;break;default:a.P("unknown cs option");break a}void 0!==
|
||||
jh&&Hd(a.H);a.P("checksums "+(a.H.ba.Me?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&(Md(a.H,+g[2])||a.P("warning: using 1x multiplier, previous target not reached"));a.P("target speed: "+(a.H.T.se.toFixed(2)+"Mhz")+" ("+a.H.T.Kd+"x)");break;default:a.P("unknown option: "+g[1])}else a.P("execution options:"),a.P("\tcs int #\tset checksum cycle interval to #"),a.P("\tcs start #\tset checksum cycle start count to #"),a.P("\tcs stop #\tset checksum cycle stop count to #"),a.P("\tsp #\t\tset speed multiplier to #");
|
||||
break;case "?":if(g[1]){FB(a,b.substr(1));break}var Vm="commands:",Wm;for(Wm in JB)Vm+="\n"+Aa(Wm,7)+JB[Wm];Sg(a)||(Vm+="\nnote: frequency/history disabled if no exec breakpoints");a.P(Vm);break;default:a.P("unknown command: "+b),d=!1}}}catch(qu){a.P("debugger error: "+(qu.stack||qu.message)),d=!1}return d}function Ky(a,b,c){b=a.Eg(b,c);for(var d in b)if(!vA(a,b[+d]))return!1;return!0}
|
||||
var iA={16:262144,19:524288,21:32768,22:65536,28:2048,33:134217728,51:16777216},hA=[26,28,40,42,109],JB={"?":"help/print","a [#]":"assemble","b [#]":"breakpoint",c:"clear output","d [#]":"dump memory","e [#]":"edit memory",f:"frequencies","g [#]":"go [to #]",h:"halt","i [#]":"input port #","if":"eval expression",k:"stack trace",l:"load sector(s)",ln:"list nearest symbol(s)",m:"messages",mouse:"mouse action","o [#]":"output port #",p:"step over",print:"print expression",r:"dump/set registers",reset:"reset machine",
|
||||
"t [#]":"trace","u [#]":"unassemble",x:"execution options",v:"print version","var":"assign variable"},oz=0,gz=1,Qy=2,rz=3,pz=4,hz=5,EA=18,FA=28,AA=36,JA=80,GA=104,HA=107,yA=176,xA="INVALID AAA AAD AAM AAS ADC ADD AND ARPL AS: BOUND BSF BSR BT BTC BTR BTS CALL CBW CLC CLD CLI CLTS CMC CMP CMPSB CMPSW CS: CWD DAA DAS DEC DIV DS: ENTER ES: ESC FS: GS: HLT IBTS IDIV IMUL IN INC INS INT INT3 INTO IRET JBE JC JCXZ JG JGE JL JLE JMP JA JNC JNO JNP JNS JNZ JO JP JS JZ LAHF LAR LDS LEA LEAVE LES LFS LGDT LGS LIDT LLDT LMSW LOADALL LOCK LODSB LODSW LOOP LOOPNZ LOOPZ LSL LSS LTR MOV MOVSB MOVSW MOVSX MOVZX MUL NEG NOP NOT OR OS: OUT OUTS POP POPA POPF PUSHF PUSHA PUSH RCL RCR REPNZ REPZ RET RETF ROL ROR SAHF SALC SAR SBB SCASB SCASW SETBE SETC SETG SETGE SETL SETLE SETNBE SETNC SETNO SETNP SETNS SETNZ SETO SETP SETS SETZ SGDT SHL SHLD SHR SHRD SIDT SLDT SMSW SS: STC STD STI STOSB STOSW STR SUB TEST VERR VERW WAIT XBTS XCHG XLAT XOR".split(" "),
|
||||
|
|
@ -869,7 +869,7 @@ function iC(a,b){var c=new fg(a,"1.36.0",jC);if(c.load()&&kC(c)){var d=c.get(lC)
|
|||
l.$e=function(a){void 0===a&&(a=this.A||(this.M?mC:cC));if(!this.D){this.D++;var b=!1,c=!1;this.ea=!1;var d=this.N||new fg(this,"1.36.0");if(a==Ld)b=!0;else if(a>cC){if(d.load(this.M)){this.G=new fg(this,"1.36.0",nC);this.G.load()&&(a!=mC&&oC(this,d)&&(a=pC),qC(this.G));this.G.set(lC,Ea());rC(this.G);var e=this.A&&!this.J;if(a==mC||vb("Click OK to restore the previous PCx86 machine state.")){if(c=kC(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!=g?(this.Ca("Error: "+
|
||||
g),"unable to verify user"==g&&(Va(sC,""),this.B=null)):this.P(f+": "+g),qC(d),d.load()?(c=kC(d),e=!0):c=!1))}e&&iC(this,c?d:null)}else a==pC&&d.clear()}else iC(this);delete this.M;delete this.N}e=Db(this.id);for(f=0;f<e.length;f++)g=e[f],g!==this&&g!=this.H&&(c=tC(this,g,d,b,c));b=[d,a,c];a!=Ld?hC(this,this.rj,b):this.rj(b)}};
|
||||
function tC(a,b,c,d,e){if(!b.ba.Zb){b.ba.Zb=!0;if(b.Yb){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/-[0-9]+\./i,"."))));"string"===typeof f&&(f=null);!b.Yb(f,d)&&f&&(b.Ca("Unable to restore hardware state")&&(a.Z&&!a.ga?(c.clear(),a.A=cC,window&&window.location.reload()):a.ea=!0),b.Yb(null),e=!1)}b.ba.rf=!0;if(!d&&b.yj)for(a=b.yj.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
l.rj=function(a){var b=a[0],c=0>a[1];a=a[2];if(!this.ba.rf){for(var d=0;d<this.C.length;d++){var e=this.C[d];e&&(e=e.rg)&&(e.style.opacity="0",e.style.lineHeight="0",e.value="")}this.O=0;this.ba.rf=!0}this.ba.Zb=!0;if(d=this.na.power)d.textContent="Shutdown";this.H&&(tC(this,this.H,b,c,a),this.H.je());this.ea&&(oC(this,b),b.clear());!c&&this.G&&(this.G.clear(),delete this.G);this.D=0};
|
||||
l.rj=function(a){var b=a[0],c=0>a[1];a=a[2];if(!this.ba.rf){for(var d=0;d<this.C.length;d++){var e=this.C[d];if(e&&(e=e.rg)){var f=Qa();e.style.opacity="0";e.style.lineHeight="0";if(0<=f.indexOf("MSIE")||0<=f.indexOf("Trident"))e.style.fontSize="0";e.value=""}}this.O=0;this.ba.rf=!0}this.ba.Zb=!0;if(d=this.na.power)d.textContent="Shutdown";this.H&&(tC(this,this.H,b,c,a),this.H.je());this.ea&&(oC(this,b),b.clear());!c&&this.G&&(this.G.clear(),delete this.G);this.D=0};
|
||||
function oC(a,b){if(!a.ba.Ae){if(vb("There may be a problem with your PCx86 machine.\n\nTo help us diagnose it, click OK to send this PCx86 machine state to http://www.pcjs.org.")){var c=a.B||"";b=b.toString();var d={app:"PCx86",ver:"1.36.0"};d.url=a.qa;d.user=c;d.type="bug";d.data=b;Na("http://www.pcjs.org/api/v1/report",d,!0)}return!0}return!1}
|
||||
function IB(a,b,c){var d,e="none";if(a.D)return null;a.D--;var f=new fg(a,"1.36.0"),g=new fg(a,"1.36.0",jC),h=Ea();g.set(lC,h);f.set(lC,h);f.set(uC,"1.36.0");f.set(vC,window?window.location.href:null);f.set(wC,Qa());a.H&&a.H.Xb&&(d=a.H.Xb(b,c),"object"===typeof d&&f.set(a.H.id,d),c&&(a.H.ba.Zb=!1,!1===d&&(e=null)));for(var h=Db(a.id),k=0;k<h.length;k++){var m=h[k];m.ba.Zb&&(m.Xb&&(d=m.Xb(b,c),"object"===typeof d&&f.set(m.id,d)),c&&(m.ba.Zb=!1,!1===d&&(e=null)))}e&&(c?(h=d=!1,b?(a.B&&xC(a,a.B,f.toString()),
|
||||
rC(g)&&rC(f)||(e=null,d=h=!0)):a.A&&(d=!0,h=a.A==HC),d&&f.clear(h)):e=f.toString());c&&(a.ba.Zb=!1,b=a.na.power)&&(b.textContent="Power");a.D=0;return e}l.reset=function(){this.ma&&this.ma.reset&&(Rb(this,"Resetting "+this.ma.type),this.ma.reset());for(var a=Db(this.id),b=0;b<a.length;b++){var c=a[b];c!==this&&c!==this.ma&&c.reset&&(Rb(this,"Resetting "+c.type),c.reset())}};l.start=function(a,b){for(var c=Db(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.start&&e.start(a,b)}};
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -350,6 +350,11 @@ class Computer extends Component {
|
|||
if (video) {
|
||||
var control = video.getTextArea();
|
||||
if (control) {
|
||||
/*
|
||||
* By default, the Video textarea overlay has opacity and lineHeight styles set to "0"
|
||||
* to make the overall textarea and its blinking caret invisible (respectively), so in order
|
||||
* to use it as a diagnostic display, we must temporarily set both those styles to "1".
|
||||
*/
|
||||
control.style.opacity = "1";
|
||||
control.style.lineHeight = "1";
|
||||
this.cDiagnosticScreens++;
|
||||
|
|
@ -370,8 +375,20 @@ class Computer extends Component {
|
|||
if (video) {
|
||||
var control = video.getTextArea();
|
||||
if (control) {
|
||||
var agent = Web.getUserAgent();
|
||||
/*
|
||||
* Return the Video textarea overlay's opacity and lineHeight styles to their original values.
|
||||
*/
|
||||
control.style.opacity = "0";
|
||||
control.style.lineHeight = "0";
|
||||
/*
|
||||
* Setting lineHeight in IE isn't sufficient to hide the caret; we must also set fontSize to "0",
|
||||
* and we make the change IE-specific because it can have weird side-effects in other browsers (eg,
|
||||
* it makes Safari on iOS over-zoom whenever the textarea receives focus). And making it IE-specific
|
||||
* is, as usual, harder than it should be, because IE11 stopped identifying itself as "MSIE", hence
|
||||
* the additional "Trident" check.
|
||||
*/
|
||||
if (agent.indexOf("MSIE") >= 0 || agent.indexOf("Trident") >= 0) control.style.fontSize = "0";
|
||||
control.value = "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1058,11 +1058,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
/* @author Jeff Parsons (@jeffpar)
|
||||
@website http://www.pcjs.org/
|
||||
@created 2013-05-05
|
||||
@modified 2014-03-12
|
||||
@modified 2017-07-21
|
||||
@license http://www.gnu.org/licenses/gpl.html
|
||||
*/
|
||||
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
font-size: medium;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
opacity: 0;
|
||||
line-height: 0; /* try to prevent Safari on iOS from always displaying a blinking cursor */
|
||||
line-height: 0; /* try to prevent Safari on iOS from always displaying a blinking caret */
|
||||
}
|
||||
.pcjs-reference {
|
||||
float: left;
|
||||
|
|
|
|||
|
|
@ -3189,11 +3189,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
|
|||
|
|
@ -3479,11 +3479,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ function oe(a,b,c){var d=y(a);-1!==a.Y.load(b)&&(pe(a,d),a.Y.fd?(a.Sg=a.Y.ta+a.Y
|
|||
function jg(a,b){b=(a.ea>>>0)+b;b>a.Rg&&(8088>=a.da||a.Z.Pa==a.Z.wa?b=a.Z.ta+(b-a.Rg&a.R):x.call(a,13,0));return b|0}function kg(a){a.ea=a.pd}function y(a){return a.zc&~a.Y.wa|a.Aa-a.Y.ta}function pe(a,b){a.zc=b;a.Aa=a.Y.ta+(b&a.Y.wa)|0}function lg(a,b,c,d,e,f){if(63!=(e&63)&&e!=a.resultType){var g=(e^a.resultType)&a.resultType;g&&(g&1&&mg(a),g&2&&ng(a),g&4&&og(a),g&8&&pg(a),g&16&&qg(a),g&32&&rg(a))}f?(a.Td=d,a.Sd=b):(a.Td=b,a.Sd=d);a.jf=c;a.Ee=d;a.resultType=e}
|
||||
function sg(a,b,c,d,e){a.resultType=c|26;a.Ee=b;d?tg(a):ug(a);e?vg(a):wg(a);return b}function xg(a,b,c,d){c&d?tg(a):ug(a);(b^c)&d?vg(a):wg(a)}function yg(a){return mg(a)?1:0}function mg(a){a.resultType&1&&(a.O&=-2,(a.Td^(a.Td^a.jf)&(a.jf^a.Sd))&a.resultType&-2147450752&&(a.O|=1),a.resultType&=-2);return a.O&1}function ng(a){a.resultType&2&&(a.O&=-5,38505>>((a.Ee^a.Ee>>4)&15)&1&&(a.O|=4),a.resultType&=-3);return a.O&4}
|
||||
function og(a){a.resultType&4&&(a.O&=-17,(a.Sd^a.Td^a.jf)&16&&(a.O|=16),a.resultType&=-5);return a.O&16}function pg(a){a.resultType&8&&(a.O&=-65,a.Ee&((a.resultType&-2147450752)-1|a.resultType&-2147450752)||(a.O|=64),a.resultType&=-9);return a.O&64}function qg(a){a.resultType&16&&(a.O&=-129,a.Ee&a.resultType&-2147450752&&(a.O|=128),a.resultType&=-17);return a.O&128}
|
||||
function rg(a){a.resultType&32&&(a.O&=-2049,(a.Td^a.Sd)&(a.jf^a.Sd)&a.resultType&-2147450752&&(a.O|=2048),a.resultType&=-33);return a.O&2048}function ug(a){a.resultType&=-2;a.O&=-2}function zg(a){a.resultType&=-5;a.O&=-17}function Ag(a){a.resultType&=-9;a.O&=-65}function wg(a){a.resultType&=-33;a.O&=-2049}function tg(a){a.resultType&=-2;a.O|=1}function Bg(a){a.resultType&=-5;a.O|=16}function Eg(a){a.resultType&=-9;a.O|=64}function vg(a){a.resultType&=-33;a.O|=2048}
|
||||
function rg(a){a.resultType&32&&(a.O&=-2049,(a.Td^a.Sd)&(a.jf^a.Sd)&a.resultType&-2147450752&&(a.O|=2048),a.resultType&=-33);return a.O&2048}function ug(a){a.resultType&=-2;a.O&=-2}function zg(a){a.resultType&=-5;a.O&=-17}function Ag(a){a.resultType&=-9;a.O&=-65}function wg(a){a.resultType&=-33;a.O&=-2049}function tg(a){a.resultType&=-2;a.O|=1}function Bg(a){a.resultType&=-5;a.O|=16}function Cg(a){a.resultType&=-9;a.O|=64}function vg(a){a.resultType&=-33;a.O|=2048}
|
||||
function Ee(a){return a.O&-2262|mg(a)|ng(a)|og(a)|pg(a)|qg(a)|rg(a)}function Fg(a,b){b|=a.qa&1|65520;a.qa=a.qa&-65536|b&65535;a.qa&1&&re(a,!0)}function Fe(a,b,c){a.qa&1||(b&=~a.Si);void 0===c&&(c=a.La);c?b=b&-12289|a.O&12288:a.lc=(b&12288)>>12;c>a.lc&&(b=b&-513|a.O&512);a.resultType=128;a.O=a.O&~(a.Qd|2261)|b&(a.Qd|2261)|a.vi;a.O&256&&(a.Ya|=2,a.N|=4)}
|
||||
function Gg(a,b,c,d){var e=0;if(a.qa&1&&(a.La>a.lc||a.O&131072)&&a.ka.Wi)for(var f=a.ka.Wi+(b>>>3),e=(1<<c)-1<<(b&7);e&&f<=a.ka.yl&&!(a.Ja(f)&e);)e>>>=8,f++;return e?(r(a,256)&&Rb(a,"checkIOPM("+ua(b)+","+c+","+(d?"input":"output")+"): trapped",!0,!0),x.call(a,13,0),!1):!0}
|
||||
l.Bb=function(a,b,c){switch(b){case "EAX":case "EBX":case "ECX":case "EDX":case "ESP":case "EBP":case "ESI":case "EDI":case "EIP":case "AX":case "BX":case "CX":case "DX":case "SP":case "BP":case "SI":case "DI":case "IP":case "PC":case "CS":case "DS":case "SS":case "ES":case "FS":case "GS":case "CR0":case "CR2":case "CR3":case "PS":case "C":case "P":case "A":case "Z":case "S":case "T":case "I":case "D":case "V":this.na[b]=c;this.xj++;a=!0;break;default:a=Dd.prototype.Bb.call(this,a,b,c)}return a};
|
||||
|
|
@ -194,9 +194,9 @@ function Rg(a,b,c){var d=4;1==b.length&&(d=1,c=c?1:0);if(80386>a.da)2<b.length&&
|
|||
l.Ng=function(a){this.ba.complete=!0;var b=this.ba.oj=this.ca&&Sg(this.ca),c=a?this.ba.ri?0:1:-1;this.ba.ri=!1;this.bd=this.A=a;this.W&&!a&&Xd(this.W);a||r(this,1024)||(this.N|=4);do{var d=this.N&3312;if(d)this.ha|=d;else if(this.pd=this.ea,this.Ea=this.Da,this.Sb=this.Y,this.C=this.F=-1,this.ha&3072&&$f(this),this.ha=this.N&256,this.Ya){a:{if(!(this.N&4))for(var d=80286>this.da?0:1,e=0;2>e;e++){switch(d){case 0:if(this.Ya&1&&this.O&512){var f=Tg(this.W);if(-1<=f&&(this.Ya&=-2,0<=f)){this.Ya&=-5;
|
||||
Ug.call(this,f);d=!0;break a}}break;case 1:if(this.Ya&2){this.Ya&=-3;80386<=this.da&&(this.Rb[6]|=16384);Ug.call(this,1);d=!0;break a}}d=1-d}d=!1}if(d&&!a){this.P("interrupt dispatched");this.N=0;break}if(this.Ya&4){this.N=this.A=0;break}}if(b){if(Vg(this.ca,this.ea,c)){this.Kb();break}c=1}this.N=0;this.va[this.ra()].call(this)}while(0<this.A);return this.ba.complete?this.bd-this.A:void 0===this.ba.complete?0:-1};var Bf=512;
|
||||
cb(function(){for(var a=Bb(document,"pcx86","cpu"),b=0;b<a.length;b++){var c=a[b],d=Cb(c),d=new Ie(d);Ab(d,c)}});
|
||||
function Wg(a){rb.call(this,"FPU",a);this.da=a.model||8087;this.F=new Float64Array(8);this.L=new Int32Array(this.F.buffer);this.Z=new Float32Array(1);this.ha=new Int32Array(this.Z.buffer);this.K=new Float64Array(1);this.G=new Int32Array(this.K.buffer);this.D=Array(3);this.M=this.N=-1;this.I=this.J=this.O=this.A=0;this.Y=new Float64Array(1);this.aa=new Int32Array(this.Y.buffer);this.aa[0]=0;this.aa[1]=268402688;jh(this);this.ga=Wg.prototype.pi;this.ea=Wg.prototype.hl}ba(Wg,rb);l=Wg.prototype;
|
||||
l.uc=function(a,b,c){this.H=c;this.W=bc(a,"ChipSet");Ob(this)};l.Yb=function(a,b){if(!b)if(!a||!this.restore)jh(this);else if(!this.restore(a))return!1;return!0};l.Xb=function(a){return a?this.save():!0};l.save=function(){var a=new fg(this),b=[],c=0;b[c++]=this.$b;b[c++]=kh(this);b[c++]=lh(this);for(var d=0;d<this.F.length;d++)b[c++]=this.F[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.$b=a[b++]&-57409;var c=a[b++];this.fa=c&-14337;this.B=(c&14336)>>11;mh(this);nh(this,a[b++]);for(c=0;c<this.F.length;c++)this.F[c]=a[b++];return!0};function jh(a){a.C=0;a.$b=959;a.fa=0;a.B=0;a.W&&(a=a.W,a.da>=oh&&ph(a,qh))}function mh(a){a.fa&=-129;a.fa&~a.$b&63&&(a.fa|=128);if(a.fa&128&&!(a.$b&128))return a=a.W,a.da>=oh?rh(a,qh):a.ea&sh||Ug.call(a.H,2),!0;a=a.W;a.da>=oh&&ph(a,qh);return!1}function th(a,b){80387<=a.da||(b&=-65);a.fa|=b;return mh(a)}
|
||||
function Wg(a){rb.call(this,"FPU",a);this.da=a.model||8087;this.F=new Float64Array(8);this.L=new Int32Array(this.F.buffer);this.Z=new Float32Array(1);this.ha=new Int32Array(this.Z.buffer);this.K=new Float64Array(1);this.G=new Int32Array(this.K.buffer);this.D=Array(3);this.M=this.N=-1;this.I=this.J=this.O=this.A=0;this.Y=new Float64Array(1);this.aa=new Int32Array(this.Y.buffer);this.aa[0]=0;this.aa[1]=268402688;Xg(this);this.ga=Wg.prototype.pi;this.ea=Wg.prototype.hl}ba(Wg,rb);l=Wg.prototype;
|
||||
l.uc=function(a,b,c){this.H=c;this.W=bc(a,"ChipSet");Ob(this)};l.Yb=function(a,b){if(!b)if(!a||!this.restore)Xg(this);else if(!this.restore(a))return!1;return!0};l.Xb=function(a){return a?this.save():!0};l.save=function(){var a=new fg(this),b=[],c=0;b[c++]=this.$b;b[c++]=kh(this);b[c++]=lh(this);for(var d=0;d<this.F.length;d++)b[c++]=this.F[d];a.set(0,b);return a.data()};
|
||||
l.restore=function(a){a=a[0];var b=0;this.$b=a[b++]&-57409;var c=a[b++];this.fa=c&-14337;this.B=(c&14336)>>11;mh(this);nh(this,a[b++]);for(c=0;c<this.F.length;c++)this.F[c]=a[b++];return!0};function Xg(a){a.C=0;a.$b=959;a.fa=0;a.B=0;a.W&&(a=a.W,a.da>=oh&&ph(a,qh))}function mh(a){a.fa&=-129;a.fa&~a.$b&63&&(a.fa|=128);if(a.fa&128&&!(a.$b&128))return a=a.W,a.da>=oh?rh(a,qh):a.ea&sh||Ug.call(a.H,2),!0;a=a.W;a.da>=oh&&ph(a,qh);return!1}function th(a,b){80387<=a.da||(b&=-65);a.fa|=b;return mh(a)}
|
||||
function kh(a){return a.fa|a.B<<11}function uh(a,b){return isFinite(b)?!0:!th(a,Infinity===b?8:16)}function vh(a,b,c){var d=null;null!=b&&null!=c&&(d=b+c,uh(a,d)||(d=null));return d}function wh(a,b,c){var d=null;null!=b&&null!=c&&(d=b-c,uh(a,d)||(d=null));return d}function xh(a,b,c){var d=null;null!=b&&null!=c&&(d=b*c,uh(a,d)||(d=null));return d}function yh(a,b,c){var d=null;null==b||null==c||!c&&th(a,2)||(d=b/c,uh(a,d)||(d=null));return d}
|
||||
function zh(a,b,c){if(null!=b&&null!=c){var d=0;isNaN(b)||isNaN(c)?d=17664:(b-=c,0>b?d=256:b||(d=16384));a.fa=a.fa&-18177|d;return!0}return!1}function Ah(a,b,c){if(null==b)return null;var d=a.$b&3072;d?d=1024==d||3072==d&&0<b?Math.floor(b):Math.ceil(b):(d=Math.round(b),.5===d-b&&d%2&&d--);if(c){if(d>=c){if(th(a,1))return null;d=-c}else if(d<-c){if(th(a,1))return null;d=-c}a.G[0]=d|0;2147483648<c&&(a.G[1]=d/4294967296|0,!a.G[1]&&0>d&&(a.G[1]=-1))}return d}
|
||||
function Bh(a,b){var c=3;a.C&1<<b&&(a=a.F[b],c=0,a?isFinite(a)||(c=2):c=1);return c}function lh(a){for(var b=0,c=a.F.length-1;0<=c;c--)b<<=2,b|=Bh(a,c);return b}function nh(a,b){a.C=0;for(var c=1;128>=c;c<<=1)3!=(b&3)&&(a.C|=c),b>>=2}function Ch(a){var b=a.B+0&7;return a.C&1<<b?(a.Z[0]=a.F[b],!0):th(a,1)?!1:(a.Z[0]=a.Y[0],!0)}function Dh(a){var b=a.B+0&7;return a.C&1<<b?(a.K[0]=a.F[b],!0):th(a,1)?!1:(a.K[0]=a.Y[0],!0)}
|
||||
|
|
@ -206,7 +206,7 @@ function Fh(a,b,c){var d=c>>20&2047,e=2147483648|(c&1048575)<<11|b>>>21;2047==d?
|
|||
function Qh(a,b){if(null!=b){var c=a.B-1&7,d=1<<c;if(a.C&d&&(a.fa|=512,th(a,65)))return;if(isNaN(b)&&th(a,1)){if(th(a,1))return;b=NaN}a.F[a.B=c]=b;a.C|=d}}
|
||||
function Rh(a,b){var c,d=a.H;c=d.mb(b);a.$b=c&-57409;c=d.mb(b+=d.V);a.fa=c&-14337;a.B=(c&14336)>>11;mh(a);nh(a,d.mb(b+=d.V));!(d.qa&1)||d.O&131072?(a.I=d.mb(b+=d.V),c=d.mb(b+=d.V),a.O=c&2047,a.I|=(c&-4096)<<4,a.M=-1,a.J=d.mb(b+=d.V),a.J|=(d.mb(b+=d.V)&-4096)<<4,a.N=-1):(a.I=d.mb(b+=d.V),c=d.mb(b+=d.V),a.M=c&65535,a.O=c>>16&2047,a.J=d.mb(b+=d.V),a.N=d.mb(b+=d.V)&65535);return b+d.V}
|
||||
function Sh(a,b){var c=a.H;c.Eb(b,a.$b);c.Eb(b+=c.V,kh(a));c.Eb(b+=c.V,lh(a));if(!(c.qa&1)||c.O&131072){var d=(a.M<<4)+a.I;c.Eb(b+=c.V,d);c.Eb(b+=c.V,d>>4&-4096|a.O);d=(a.N<<4)+a.J;c.Eb(b+=c.V,d);c.Eb(b+=c.V,d>>4&-4096)}else c.Eb(b+=c.V,a.I),c.Eb(b+=c.V,a.M|a.O<<16),c.Eb(b+=c.V,a.J),c.Eb(b+=c.V,a.N);return b+c.V}function Th(){this.fa&=-32896;mh(this)}function Uh(){zh(this,K(this,0),K(this,this.A))}function Vh(){zh(this,K(this,0),K(this,this.A))&&Ph(this)}function Wh(){Vh.call(this)}
|
||||
function Xh(){M(this,0,yh(this,K(this,0),Ih(this)))}function Yh(){this.C&=~(1<<this.B)}function Zh(){jh(this)}function $h(){this.$b=this.H.ja(this.H.C)&-57409}function ai(){Rh(this,this.H.C)}function bi(){for(var a=this.H,b=Rh(this,a.C),c=this.D,d=0;d<this.F.length;d++)c[0]=a.ia(b),c[1]=a.ia(b+=4),c[2]=a.ja(b+=4),c&&M(this,d,Mh(this,c)),b+=2}function ci(){for(var a=this.H,b=Sh(this,a.C),c=0;c<this.F.length;c++){var d=Eh(this,c,!0);a.bb(b,d[0]);a.bb(b+=4,d[1]);a.hb(b+=4,d[2]);b+=2}jh(this)}
|
||||
function Xh(){M(this,0,yh(this,K(this,0),Ih(this)))}function Yh(){this.C&=~(1<<this.B)}function Zh(){Xg(this)}function $h(){this.$b=this.H.ja(this.H.C)&-57409}function ai(){Rh(this,this.H.C)}function bi(){for(var a=this.H,b=Rh(this,a.C),c=this.D,d=0;d<this.F.length;d++)c[0]=a.ia(b),c[1]=a.ia(b+=4),c[2]=a.ja(b+=4),c&&M(this,d,Mh(this,c)),b+=2}function ci(){for(var a=this.H,b=Sh(this,a.C),c=0;c<this.F.length;c++){var d=Eh(this,c,!0);a.bb(b,d[0]);a.bb(b+=4,d[1]);a.hb(b+=4,d[2]);b+=2}Xg(this)}
|
||||
function di(){Sh(this,this.H.C);this.$b|=63}function ei(){M(this,this.A,K(this,0))&&Ph(this)}function fi(){ei.call(this)}function gi(){this.H.hb(this.H.C,this.$b)}function hi(){this.H.hb(this.H.C,kh(this))}function ii(){80287<=this.da&&(this.H.D=this.H.D&-65536|kh(this))}function ji(){var a=K(this,0);M(this,0,K(this,this.A));M(this,this.A,a)}function ki(){ji.call(this)}
|
||||
var li=Math.log(10)/Math.LN2,mi=Math.LOG2E,ni=Math.PI,oi=Math.log(2)/Math.LN10,pi=Math.LN2,qi=Math.pow(2,63),ri={216:{0:function(){M(this,0,vh(this,K(this,0),Ih(this)))},1:function(){M(this,0,xh(this,K(this,0),Ih(this)))},2:function(){zh(this,K(this,0),Ih(this))},3:function(){zh(this,K(this,0),Ih(this))&&Ph(this)},4:function(){M(this,0,wh(this,K(this,0),Ih(this)))},5:function(){M(this,0,wh(this,Ih(this),K(this,0)))},6:Xh,7:Xh,48:function(){M(this,0,vh(this,K(this,0),K(this,this.A)))},49:function(){M(this,
|
||||
0,xh(this,K(this,0),K(this,this.A)))},50:Uh,51:Vh,52:function(){M(this,0,wh(this,K(this,0),K(this,this.A)))},53:function(){M(this,0,wh(this,K(this,this.A),K(this,0)))},54:function(){M(this,0,yh(this,K(this,0),K(this,this.A)))},55:function(){M(this,0,yh(this,K(this,this.A),K(this,0)))}},217:{0:function(){Qh(this,Ih(this))},2:function(){Ch(this)&&this.ga()},3:function(){Ch(this)&&(this.ga(),Ph(this))},4:ai,5:$h,6:di,7:gi,48:function(){Qh(this,K(this,this.A))},49:ji,50:function(){},51:fi,64:function(){M(this,
|
||||
|
|
@ -221,17 +221,17 @@ this.A,yh(this,K(this,this.A),K(this,0)))}},221:{0:function(){Qh(this,Jh(this))}
|
|||
54:function(){M(this,this.A,yh(this,K(this,0),K(this,this.A)))&&Ph(this)},55:function(){M(this,this.A,yh(this,K(this,this.A),K(this,0)))&&Ph(this)}},223:{0:function(){Qh(this,Gh(this))},2:function(){null!=Ah(this,K(this,0),32768)&&this.H.hb(this.H.C,this.G[0])},3:function(){null!=Ah(this,K(this,0),32768)&&(this.H.hb(this.H.C,this.G[0]),Ph(this))},4:function(){var a=Kh(this),b=Nh(a[0],8)+1E8*Nh(a[1],8)+1E16*Nh(a[2],2);a[2]&32768&&(b=-b);Qh(this,b)},5:function(){var a;a=this.H.ia(this.H.C);a=4294967296*
|
||||
this.H.ia(this.H.C+4)+(a>>>0);Qh(this,a)},6:function(){var a=Ah(this,Ph(this));null!=a&&(this.D[0]=Oh(a,8),this.D[1]=Oh(a/1E8,8),this.D[2]=Oh(a/1E16,2),0>a&&(this.D[2]|=32768),Lh(this))},7:function(){null!=Ah(this,K(this,0),qi)&&(this.hl(),Ph(this))},48:function(){Yh.call(this);Ph(this)},49:ki,50:fi,51:fi,52:ii}},si=[Th,Zh,$h,ai,bi,ci,gi,di,hi,ii];cb(function(){for(var a=Bb(document,"pcx86","fpu"),b=0;b<a.length;b++){var c=a[b],d=Cb(c),d=new Wg(d);Ab(d,c)}});
|
||||
function ti(a,b){var c=a+b+yg(this)|0;lg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&255}function ui(a,b){var c=a+b+yg(this)|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function vi(a,b){var c=a+b|0;lg(this,a,b,c,191);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&255}
|
||||
function wi(a,b){var c=a+b|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function xi(a,b){a&=b;sg(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return a}function yi(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return sg(this,a&b,this.Fb)&this.R}function zi(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Eg(this),a;Ag(this);return a}
|
||||
function Ai(a){if(-1===this.C)return x.call(this,6),a;var b=a,c=this.mb(this.C),d=this.mb(this.C+this.V);2==this.V&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Oj;(b<c||b>d)&&x.call(this,5);this.N|=2;return a}function Bi(a,b){var c=0;if(b){Ag(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Eg(this);this.A-=11+3*c;return a}function Ci(a,b){var c=0;if(b){Ag(this);for(var d=2==this.V?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else Eg(this);this.A-=11+3*c;return a}
|
||||
function wi(a,b){var c=a+b|0;lg(this,a,b,c,this.Fb|63);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return c&this.R}function xi(a,b){a&=b;sg(this,a,128);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return a}function yi(a,b){this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Jb:this.B.Ac;return sg(this,a&b,this.Fb)&this.R}function zi(a,b){this.A-=10+(-1===this.C?0:1);if((a&3)<(b&3))return a=a&-4|b&3,Cg(this),a;Ag(this);return a}
|
||||
function Ai(a){if(-1===this.C)return x.call(this,6),a;var b=a,c=this.mb(this.C),d=this.mb(this.C+this.V);2==this.V&&(b=a<<16>>16,c=c<<16>>16,d=d<<16>>16);this.A-=this.B.Oj;(b<c||b>d)&&x.call(this,5);this.N|=2;return a}function Bi(a,b){var c=0;if(b){Ag(this);for(var d=1;d&this.R;){if(b&d){a=c;break}d<<=1;c++}}else Cg(this);this.A-=11+3*c;return a}function Ci(a,b){var c=0;if(b){Ag(this);for(var d=2==this.V?15:31,e=1<<d;e;){if(b&e){a=d;break}e>>>=1;c++;d--}}else Cg(this);this.A-=11+3*c;return a}
|
||||
function Di(a,b){a&1<<(b&(2==this.V?15:31))?tg(this):ug(this);this.A-=-1===this.C?3:6;this.N|=2;return a}function Ei(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a^b}function Fi(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a&~b}function Gi(a,b){b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=-1===this.C?6:8;return a|b}
|
||||
function Hi(a,b){if(-1===this.C)return Di.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=6;this.N|=2;return a}function Ii(a,b){if(-1===this.C)return Ei.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a^b}
|
||||
function Ji(a,b){if(-1===this.C)return Fi.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a&~b}function Ki(a,b){if(-1===this.C)return Gi.call(this,a,b);var c=this.V<<3;if(b>=c||b<-c)a=Kg(this,this.gb,this.tb+(b>>(2==this.V?4:5))*this.V);b=1<<(b&(2==this.V?15:31));a&b?tg(this):ug(this);this.A-=8;return a|b}
|
||||
function Li(a,b){lg(this,a,b,a-b|0,191,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Dh:this.B.Jb;this.N|=2;return a}function Mi(a,b){lg(this,a,b,a-b|0,this.Fb|63,!0);this.A-=-1===this.F?-1===this.C?this.B.mc:this.B.Dh:this.B.Jb;this.N|=2;return a}
|
||||
function Ni(a){if(this.Ic){var b=this.Ic,c=this.sj,d=this.ga,e=d>>3&7;b.A=d&7;var f=(3>(d>>6&3)?0:48)+e;(217==c||219==c)&&52<=f&&(f=e<<4|b.A);if(e=ri[c][f]){if(0>si.indexOf(e)){var f=b.H,g=f.pd;8087==b.da&&(f.ha&16&&g++,f.ha&32&&g++);b.M=f.Z.U;b.I=g-f.Z.ta;-1!==f.C&&(b.N=f.gb.U,b.J=f.C-f.gb.ta);b.O=(c&7)<<8|d}e.call(b)}}this.A-=-1===this.C?2:8;return a}function Oi(a){if(80186>this.da)return Pi.call(this,a);x.call(this,13,0);return a}function df(a){x.call(this,6);return a}
|
||||
function Pi(a){kf.call(this);return a}function Qi(a,b){a=Ri.call(this,this.S(),b);80386>this.da&&(this.A-=12);return a}function Si(a,b){a=this.Fa();a=2==this.V?Ri.call(this,a,b):Ti.call(this,a,b);80386>this.da&&(this.A-=12);return a}function Ui(a,b){var c=!1;0>b&&(b=-b|0,c=!c);0>a&&(a=-a|0,c=!c);Vi.call(this,a,b);c&&(this.Ba=~this.Ba+1|0,this.Za=~this.Za+(this.Ba?0:1)|0)}
|
||||
function Ri(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return a&65535}function Ti(a,b){Ui.call(this,a,b);this.Za!=this.Ba>>31?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return this.Ba}function Wi(a,b){this.A-=14+(-1===this.C?0:2);Ag(this);-1!==this.xb.load(b)&&this.xb.qc>=this.La&&this.xb.qc>=(b&3)&&(Eg(this),a=this.xb.nb&-256,2<this.V&&(a|=(this.xb.ext&-65281)<<16));return a}
|
||||
function Ri(a,b){a=(a<<16>>16)*(b<<16>>16)|0;32767<a||-32768>a?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return a&65535}function Ti(a,b){Ui.call(this,a,b);this.Za!=this.Ba>>31?(tg(this),vg(this)):(ug(this),wg(this));this.A-=-1===this.C?9:12;return this.Ba}function Wi(a,b){this.A-=14+(-1===this.C?0:2);Ag(this);-1!==this.xb.load(b)&&this.xb.qc>=this.La&&this.xb.qc>=(b&3)&&(Cg(this),a=this.xb.nb&-256,2<this.V&&(a|=(this.xb.ext&-65281)<<16));return a}
|
||||
function Xi(a,b){if(-1===this.C)return kf.call(this),a;ve(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}function Yi(){this.A-=this.B.rk;return this.C}function Zi(a,b){if(-1===this.C)return kf.call(this),a;we(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}function $i(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ga.load(a);this.A-=this.B.Ze;return b}
|
||||
function aj(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ia.load(a);this.A-=this.B.Ze;return b}function bj(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.xb.load(b)&&(7168==(this.xb.nb&7168)||this.xb.qc>=this.La)&&this.xb.qc>=(b&3))return Eg(this),this.xb.Pa;Ag(this);return a}function cj(a,b){if(-1===this.C)return kf.call(this),a;oe(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}
|
||||
function aj(a,b){if(-1===this.C)return kf.call(this),a;a=this.ja(this.C+this.V);this.Ia.load(a);this.A-=this.B.Ze;return b}function bj(a,b){this.A-=14+(-1===this.C?0:2);if(b&65528&&-1!==this.xb.load(b)&&(7168==(this.xb.nb&7168)||this.xb.qc>=this.La)&&this.xb.qc>=(b&3))return Cg(this),this.xb.Pa;Ag(this);return a}function cj(a,b){if(-1===this.C)return kf.call(this),a;oe(this,this.ja(this.C+this.V));this.A-=this.B.Ze;return b}
|
||||
function dj(a,b){this.A-=-1===this.F?-1===this.C?this.B.yk:this.B.xk:this.B.vk;return b}function ej(a,b){switch(this.ga>>3&7){case 4:this.xa=this.D;break;case 5:this.xa=this.I;break;case 6:this.xa=this.L;break;case 7:this.xa=this.G}return b}function oj(a,b){return b}
|
||||
function pj(a,b){a=this.ga>>3&7;switch(a){case 0:this.xa=this.D;break;case 2:this.xa=this.L;break;case 3:this.xa=this.G;break;default:if(80286==this.da||80386==this.da&&4!=a&&5!=a)x.call(this,6);else switch(a){case 1:this.xa=this.I;break;case 4:this.xa=y(this);break;case 5:this.xa=this.M;break;case 6:this.xa=this.K;break;case 7:this.xa=this.J}}return dj.call(this,0,b)}
|
||||
function qj(a,b){switch(this.ga>>3&7){case 0:b=this.oa.U;break;case 1:b=this.Z.U;break;case 2:b=this.Y.U;break;case 3:b=this.Da.U;break;case 4:if(80386<=this.da){b=this.Ga.U;break}x.call(this,6);b=a;break;case 5:if(80386<=this.da){b=this.Ia.U;break}default:x.call(this,6),b=a}-1!==this.F&&se(this,2);return dj.call(this,0,b)}
|
||||
|
|
@ -366,7 +366,7 @@ bl,this.Fa);this.A-=-1===this.F?1:this.B.Ag},Nk,function(){this.lb.call(this,bl,
|
|||
this.I=this.xa;hg(this,a);break;case 2:a=this.L;this.L=this.xa;oe(this,a);break;case 3:a=this.G;this.G=this.xa;ve(this,a);break;case 4:a=y(this);pe(this,this.xa);80386<=this.da?this.Ga.load(a):we(this,a);break;case 5:a=this.M;this.M=this.xa;80386<=this.da?this.Ia.load(a):hg(this,a);break;case 6:a=this.K;this.K=this.xa;oe(this,a);break;case 7:a=this.J,this.J=this.xa,ve(this,a)}},function(){this.N|=1;this.sa=this.Aa;this.xa=ne(this);this.lb.call(this,cl,qk);this.sa=-1},function(){this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.I&this.R;this.I=this.I&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.L&this.R;this.L=this.L&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.G&this.R;this.G=this.G&~this.R|a&this.R;this.A-=3},function(){var a=this.D,b=y(this);this.D=this.D&~this.R|b&this.R;pe(this,b&~this.R|a&this.R);this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.M&this.R;this.M=this.M&~this.R|a&this.R;this.A-=3},function(){var a=
|
||||
this.D;this.D=this.D&~this.R|this.K&this.R;this.K=this.K&~this.R|a&this.R;this.A-=3},function(){var a=this.D;this.D=this.D&~this.R|this.J&this.R;this.J=this.J&~this.R|a&this.R;this.A-=3},function(){this.D=2==this.V?this.D&-65536|this.D<<24>>24&65535:this.D<<16>>16;this.A-=2},function(){this.L=2==this.V?this.L&-65536|(this.D&32768?65535:0):this.D&-2147483648?-1:0;this.A-=this.B.Qj},function(){rk.call(this,this.Fa(),Qg(this));this.A-=this.B.Tj},function(){this.A-=3},function(){var a=Ee(this);a&131072&&
|
||||
3>this.lc?x.call(this,13,0):(xe(this,a&-196609),this.A-=this.B.Jc)},function(){if(this.O&131072&&3>this.lc)x.call(this,13,0);else{var a=ne(this),a=a&65535|this.O&-65536;Fe(this,a);this.A-=this.B.nc}},function(){var a=this.D>>8&255;a&1?tg(this):ug(this);a&4?(this.resultType&=-3,this.O|=4):(this.resultType&=-3,this.O&=-5);a&16?Bg(this):zg(this);a&64?Eg(this):Ag(this);a&128?(this.resultType&=-17,this.O|=128):(this.resultType&=-17,this.O&=-129);this.A-=this.B.Wb},function(){this.D=this.D&-65281|(Ee(this)&
|
||||
3>this.lc?x.call(this,13,0):(xe(this,a&-196609),this.A-=this.B.Jc)},function(){if(this.O&131072&&3>this.lc)x.call(this,13,0);else{var a=ne(this),a=a&65535|this.O&-65536;Fe(this,a);this.A-=this.B.nc}},function(){var a=this.D>>8&255;a&1?tg(this):ug(this);a&4?(this.resultType&=-3,this.O|=4):(this.resultType&=-3,this.O&=-5);a&16?Bg(this):zg(this);a&64?Cg(this):Ag(this);a&128?(this.resultType&=-17,this.O|=128):(this.resultType&=-17,this.O&=-129);this.A-=this.B.Wb},function(){this.D=this.D&-65281|(Ee(this)&
|
||||
213)<<8;this.A-=this.B.Wb},function(){var a=this.D&-256,b;b=G(this);b=this.Ja(this.Ea.cc(b,1));this.D=a|b;this.A-=this.B.Nh},function(){this.D=this.D&~this.R|te(this,this.Ea,G(this));this.A-=this.B.Nh},function(){var a=G(this),b=this.D;this.Pb(this.Ea.dc(a,1),b);this.A-=this.B.Oh},function(){var a=G(this),b=this.D;this.Eb(this.Ea.dc(a,this.V),b);this.A-=this.B.Oh},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.ha&192&&(a=this.I&c,b=1,d=this.B.Rh,this.ha&256||(this.A-=this.B.Qh));if(a--){var e=
|
||||
this.Ja(this.Ea.cc(this.K&c,1));this.Pb(this.oa.dc(this.J&c,1),e);e=this.O&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;this.I=this.I&~c|this.I-b&c;a&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ph;this.ha&192&&(a=this.I&c,b=1,d=this.B.Rh,this.ha&256||(this.A-=this.B.Qh));if(a--){var e=te(this,this.Ea,this.K&c);this.Eb(this.oa.dc(this.J&c,this.V),e);e=this.O&1024?-this.V:this.V;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.A-=d;
|
||||
this.I=this.I&~c|this.I-b&c;a&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ah;this.ha&192&&(a=this.I&c,b=1,d=this.B.Ch,this.ha&256||(this.A-=this.B.Bh));if(a--){var e=Ig(this,this.Ea,this.K),f=Ig(this,this.oa,this.J);this.F=this.C;Li.call(this,e,f);e=this.O&1024?-1:1;this.K=this.K&~c|this.K+e&c;this.J=this.J&~c|this.J+e&c;this.I=this.I&~c|this.I-b&c;this.A-=d-this.B.Jb;a&&pg(this)==(this.ha&64)&&(kg(this),this.N|=256)}},function(){var a=1,b=0,c=this.wa,d=this.B.Ah;this.ha&192&&
|
||||
|
|
@ -419,8 +419,8 @@ A[182]=function(){this.kc.call(this,ej);switch(this.ga>>3&7){case 0:this.D=this.
|
|||
A[188]=function(){this.la.call(this,Bi)};A[189]=function(){this.la.call(this,Ci)};
|
||||
A[190]=function(){this.kc.call(this,ej);switch(this.ga>>3&7){case 0:this.D=this.D&~this.R|(this.D&255)<<24>>24&this.R;break;case 1:this.I=this.I&~this.R|(this.I&255)<<24>>24&this.R;break;case 2:this.L=this.L&~this.R|(this.L&255)<<24>>24&this.R;break;case 3:this.G=this.G&~this.R|(this.G&255)<<24>>24&this.R;break;case 4:this.zc=this.zc&~this.R|this.D<<16>>24&this.R;this.D=this.xa;break;case 5:this.M=this.M&~this.R|this.I<<16>>24&this.R;this.I=this.xa;break;case 6:this.K=this.K&~this.R|this.L<<16>>24&
|
||||
this.R;this.L=this.xa;break;case 7:this.J=this.J&~this.R|this.G<<16>>24&this.R,this.G=this.xa}this.A-=-1===this.C?3:6};A[191]=function(){se(this,2);this.la.call(this,oj);switch(this.ga>>3&7){case 0:this.D=this.D<<16>>16;break;case 1:this.I=this.I<<16>>16;break;case 2:this.L=this.L<<16>>16;break;case 3:this.G=this.G<<16>>16;break;case 4:this.zc=this.zc<<16>>16;break;case 5:this.M=this.M<<16>>16;break;case 6:this.K=this.K<<16>>16;break;case 7:this.J=this.J<<16>>16}this.A-=-1===this.C?3:6};
|
||||
var eg=[function(){this.A-=2+(-1===this.C?0:1);return this.Db.U},function(){this.A-=2+(-1===this.C?0:1);return this.ka.U},function(a){this.N|=2;this.Db.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;-1!==this.ka.load(a)&&(this.hb(this.ka.Lb+4,this.ka.nb|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&2048!=(this.xb.nb&2560)&&(this.xb.qc>=this.La&&this.xb.qc>=(a&3)||7168==(this.xb.nb&7168)))return Eg(this),
|
||||
a;Ag(this);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&512==(this.xb.nb&2560)&&this.xb.qc>=this.La&&this.xb.qc>=(a&3))return Eg(this),a;Ag(this);return a},Pi,Pi],Me=[df,df,df,df,df,df,Pi,Pi],hl=[function(a){if(-1===this.C)x.call(this,6);else{a=this.Hc-this.Ib;var b=this.Ib;80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)x.call(this,6);else{a=this.ad-this.Nb;var b=this.Nb;
|
||||
var eg=[function(){this.A-=2+(-1===this.C?0:1);return this.Db.U},function(){this.A-=2+(-1===this.C?0:1);return this.ka.U},function(a){this.N|=2;this.Db.load(a);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;-1!==this.ka.load(a)&&(this.hb(this.ka.Lb+4,this.ka.nb|=512),this.ka.type|=512);this.A-=17+(-1===this.C?0:2);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&2048!=(this.xb.nb&2560)&&(this.xb.qc>=this.La&&this.xb.qc>=(a&3)||7168==(this.xb.nb&7168)))return Cg(this),
|
||||
a;Ag(this);return a},function(a){this.N|=2;this.A-=14+(-1===this.C?0:2);if(-1!==this.xb.load(a)&&512==(this.xb.nb&2560)&&this.xb.qc>=this.La&&this.xb.qc>=(a&3))return Cg(this),a;Ag(this);return a},Pi,Pi],Me=[df,df,df,df,df,df,Pi,Pi],hl=[function(a){if(-1===this.C)x.call(this,6);else{a=this.Hc-this.Ib;var b=this.Ib;80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=11}return a},function(a){if(-1===this.C)x.call(this,6);else{a=this.ad-this.Nb;var b=this.Nb;
|
||||
80286==this.da?b|=-16777216:80386<=this.da&&2!=this.V&&(a|=b<<16);this.bb(this.C+2,b);this.A-=12}return a},function(a){-1===this.C||this.O&131072?x.call(this,6):(this.Ib=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.Hc=this.Ib+a,this.N|=2,this.A-=11);return a},function(a){-1===this.C||this.O&131072?x.call(this,6):(this.Nb=this.ia(this.C+2)&(this.R|this.R<<8),a&=65535,this.ad=this.Nb+a,this.N|=2,this.A-=12);return a},function(){this.A-=2+(-1===this.C?0:1);return this.qa},Pi,function(a){this.O&
|
||||
131072?x.call(this,6):(Fg(this,a),this.A-=-1===this.C?3:6,this.N|=2);return a},Pi],il=[Pi,Pi,Pi,Pi,Di,Gi,Fi,Ei];
|
||||
function jl(a){rb.call(this,"ChipSet",a,32768);var b=a.model;b&&!kl[b]&&mb("Unrecognized ChipSet model: "+b);this.da=kl[b]||ll;this.B=[];b=ml(a[nl]);this.B[0]=[b,b];null==b&&(this.N=[360,360],(b=a.floppies)&&b.length&&(this.N=b),ol(this,pl,this.N.length),ol(this,ql,a.monitor||(this.da<oh?"mono":"ega")));b=ml(a[rl]);this.B[1]=[b,b];this.za=this.ha=1;this.da>=oh&&(this.za=this.ha=2);this.O=a.scaleTimers||!1;this.La=a.rtcDate;this.Ga=!1;a.sound&&(this.Ea=this.ka=null,window&&(this.Ea=window.AudioContext||
|
||||
|
|
@ -469,7 +469,7 @@ l.$l=function(a,b){var c=this.J&~(Lp|Mp)|(Kd(this.H)&64?Mp:0);t(this,a,null,b,"8
|
|||
l.Bn=function(a,b,c){t(this,a,b,c,"8042_INBUFF.CMD",null,16384);this.L=b;this.D|=zp;a=0;this.L>=Np&&(a=this.L^15,this.L=Np);switch(this.L){case Op:Kp(this,this.K);break;case Pp:Bp(this,this.K|Xl);break;case Qp:Bp(this,this.K&~Xl);this.C&&yp(this.C);break;case Rp:this.C&&(a=this.C,a.A=[],r(a)&&Rb(a,"scan codes flushed"));Bp(this,this.K|Xl);Kp(this,Sp);Dp(this,gm|hm);break;case Tp:Kp(this,Up);break;case Vp:Kp(this,this.M);break;case Wp:Kp(this,this.qa);break;case Xp:Kp(this,this.K&Xl?0:Yp);break;case Np:a&
|
||||
1&&yf(this.H)}};function Bp(a,b){a.K=b;a.D=a.D&~Zp|b&$p;a.C&&rp(a.C,!!(b&aq),!(b&Xl))}function Kp(a,b,c){0<=b&&(a.oa=b,c?a.D|=wp:(a.D&=~wp,a.D|=xp))}function Dp(a,b){a.qa=b;uc(a.ma,!!(b&hm));b&gm||yf(a.H)}function bq(a,b){a.da<oh?(rh(a,cq,4),a.aa|=wp):a.K&Xl||a.D&(wp|xp)||(Kp(a,b,!0),dq(a.C),rh(a,cq,120))}function eq(a,b,c,d){var e=a.B[b][1];t(a,c,null,d,"DIPSW-"+b,e,32768);return e}l.om=function(a,b){t(this,a,null,b,"CMOS.ADDR",this.W,4096);return this.W};
|
||||
l.Rn=function(a,b,c){t(this,a,b,c,"CMOS.ADDR",null,4096);this.W=b;this.ea=b&fq?sh:gq};l.pm=function(a,b){var c=this.W&hq,d=c<=Ml?Nl(this,c):this.A[c];r(this,4352)&&t(this,a,null,b,"CMOS.DATA["+ta(c)+"]",d,!0);null!=b&&c==an&&(this.A[c]&=iq,d&fp&&ph(this,gp),d&ep&&this.A[$d]&ae&&en(this));return d};
|
||||
l.Sn=function(a,b,c){var d=this.W&hq;r(this,4352)&&t(this,a,b,c,"CMOS.DATA["+ta(d)+"]",null,!0);a=b^this.A[d];if(d<=Ml){if(c=b,d<Zm){var e=!1;this.A[$d]&cn||(c=10*(c>>4)+(c&15),e=!0);if(d==ym||d==zm)e&&23<c&&(c+=48),this.A[$d]&$m||(12>=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==$d&&a&ae&&b&ae&&en(this)};l.Tk=function(a,b,c){t(this,a,b,c,"NMI");this.ea=b};l.bo=function(a,b,c){t(this,a,b,c,"FPU.CLEAR")};l.co=function(a,b,c){t(this,a,b,c,"FPU.RESET");this.Ic&&jh(this.Ic)};
|
||||
l.Sn=function(a,b,c){var d=this.W&hq;r(this,4352)&&t(this,a,b,c,"CMOS.DATA["+ta(d)+"]",null,!0);a=b^this.A[d];if(d<=Ml){if(c=b,d<Zm){var e=!1;this.A[$d]&cn||(c=10*(c>>4)+(c&15),e=!0);if(d==ym||d==zm)e&&23<c&&(c+=48),this.A[$d]&$m||(12>=c?c=12==c?0:c:(c-=116,c=24==c?12:c))}}else c=b;this.A[d]=c;d==$d&&a&ae&&b&ae&&en(this)};l.Tk=function(a,b,c){t(this,a,b,c,"NMI");this.ea=b};l.bo=function(a,b,c){t(this,a,b,c,"FPU.CLEAR")};l.co=function(a,b,c){t(this,a,b,c,"FPU.RESET");this.Ic&&Xg(this.Ic)};
|
||||
l.bn=function(a){if(r(this,16)&&el(this.ca,26,a)){var b=this.H.D>>8;bg(this.H,a,function(a,d){return function(c){d=Kd(a.H)-d;var e,g=a.H.L&255,h=a.H.L>>8,k=a.H.L&255,m=a.H.L>>8;if(2==b||3==b)e=" CH(hour)="+ua(h)+" CL(min)="+ta(g)+" DH(sec)="+ta(m);else if(4==b||5==b)e=" CX(year)="+ua(a.H.I)+" DH(month)="+ta(m)+" DL(day)="+ta(k);g=a.ca;h=d;g.message("INT "+ta(26)+": C="+(mg(g.H)?1:0)+(e||"")+" (cycles="+h+(c?",level="+(c+1):"")+")")}}(this,Kd(this.H)))}return!0};
|
||||
function gn(a,b){if(a.ka)try{void 0!==b?a.Ga=b:b=!!(a.Ga&&a.H&&a.H.ba.ab);var c=Math.round(xl/Ho(a,Io));if(20>c||2E4<c)b=!1;b?a.I?(a.I.frequency.value=c,r(a,33554432)&&Rb(a,"speaker set to "+c+"hz",!0)):(a.I=a.ka.createOscillator(),a.I&&(a.I.type="number"==typeof a.I.type?1:"square",a.I.connect(a.ka.destination),a.I.frequency.value=c,"start"in a.I?a.I.start(0):a.I.noteOn(0),r(a,33554432)&&Rb(a,"speaker on at "+c+"hz",!0))):a.I&&("stop"in a.I?a.I.stop(0):a.I.noteOff(0),a.I.disconnect(),delete a.I,
|
||||
r(a,33554432)&&Rb(a,"speaker off at "+c+"hz",!0))}catch(d){a.Ca("AudioContext exception: "+d.message),a.ka=null}else b&&Rb(a,"BEEP",33554432)}var tl=5150,ll=5150.9,oh=5170,ul=5160.101,Gl=5180,kl={5150:tl,5160:5160,5170:oh,att6300:ul,mpc1600:5150.101,z150:5160.15,compaq:5150.102,other:ll};kl.deskpro386=Gl;
|
||||
|
|
@ -564,7 +564,7 @@ function ht(a,b){if(1==b)return a.ha[0]=it[ct],a.ha[1]=it[at],a.ha;if(2==b){var
|
|||
(c.Cc[20]&12)<<4,c.Cc[16]&128&&(f&=-49,f|=(c.Cc[20]&3)<<4),f=d[f],g=f<<2&252,h=f>>4&252,f=f>>10&252):(g=(f&4?170:0)|(f&32?85:0),h=(f&2?170:0)|(f&16?85:0),f=(f&1?170:0)|(f&8?85:0)),a.ha[e]=[g,h,f,255]}a.Ia=!0}return a.ha}function oq(a,b,c,d){a.xb=b;a.Ya=c;a.Ea=d}
|
||||
function Ys(a,b){var c=!1;if(window&&a.xb&&(!b||a.I)){var d=0,e=a.Ea?a.Ea:8,f=ht(a);null!=a.Ya[0]&&mt(a,nt,a.Ya[0],d,e,8,a.xb,f)&&(c=!0);d=a.Ea?0:2048;e=a.Ea?a.Ea:9;null!=a.Ya[1]&&(mt(a,ot,a.Ya[1],d,e,14,a.xb,pt,qt)&&(c=!0),a.Ea&&mt(a,a.Ka,a.Ya[1],0,a.Ea,14,a.xb,f)&&(c=!0))}b||(a.aa=-1,a.Aa=-1,a.va=0);return c}function mt(a,b,c,d,e,f,g,h,k){var m=!1;null!=c&&(rt(a,b,c,d,e,f,g,h,k)&&(m=!0),a.Rd&&rt(a,b<<1,c,d,e,f,g,h,k)&&(m=!0));return m}
|
||||
function rt(a,b,c,d,e,f,g,h,k){var m=!1,p=b&1?0:1,v=a.sa[b],u=16>h.length?h.length:16;v||(v={Fc:e<<p,Gc:f<<p,Ge:Array(u),Ui:h.slice(0,u),kf:k,Vg:Array(u)});for(k=0;k<u;k++){var F=h[k],J=v.Ge[k]?v.Ui[k]:[];if(F[0]!==J[0]||F[1]!==J[1]||F[2]!==J[2]){var m=v,J=k,H=p,I=c,P=d,L=e,ka=f,Z=g,jb=[0,0,0,0],qa=document.createElement("canvas");qa.width=m.Fc<<4;qa.height=m.Gc<<4;var db=qa.getContext("2d"),Oa,kb,eb,sc=8>ka||!P?ka:8,lb=db.createImageData(m.Fc,m.Gc);for(Oa=0;256>Oa;Oa++){for(eb=0;eb<ka;eb++)for(var gf=
|
||||
m.kf&&J&1&&eb>=ka-2,Nd=Z[eb<sc?I+Oa*sc+eb:P+Oa*sc+eb-sc],hf=0;hf<=H;hf++)for(kb=0;kb<L;kb++){var Cg=kb<<H,jf=(eb<<H)+hf,Dg=gf||Nd&128>>(8<=kb&&192<=Oa&&223>=Oa?7:kb)?F:jb;st(lb,Cg,jf,Dg);H&&st(lb,Cg+1,jf,Dg)}db.putImageData(lb,(Oa&15)*m.Fc,(Oa>>4)*m.Gc)}m.Ge[J]="#"+q(F[0],2)+q(F[1],2)+q(F[2],2);m.Ui[J]=F;m.Vg[J]=qa;m=!0}}a.sa[b]=v;return m}function tt(a){0<a.va||0<=a.aa?0>a.Aa&&(a.Aa=0):a.Aa=-1}
|
||||
m.kf&&J&1&&eb>=ka-2,Nd=Z[eb<sc?I+Oa*sc+eb:P+Oa*sc+eb-sc],hf=0;hf<=H;hf++)for(kb=0;kb<L;kb++){var Dg=kb<<H,jf=(eb<<H)+hf,Eg=gf||Nd&128>>(8<=kb&&192<=Oa&&223>=Oa?7:kb)?F:jb;st(lb,Dg,jf,Eg);H&&st(lb,Dg+1,jf,Eg)}db.putImageData(lb,(Oa&15)*m.Fc,(Oa>>4)*m.Gc)}m.Ge[J]="#"+q(F[0],2)+q(F[1],2)+q(F[2],2);m.Ui[J]=F;m.Vg[J]=qa;m=!0}}a.sa[b]=v;return m}function tt(a){0<a.va||0<=a.aa?0>a.Aa&&(a.Aa=0):a.Aa=-1}
|
||||
function gt(a){if(a.I){for(var b=10;15>=b;b++)if(null==a.B.Xa[b])return;var c=a.B.Xa[10],b=c&31,d=a.B.Xa[11]&ws[11],e=a.B.Xa[9]&ws[9],f=!1;a.B===a.A&&(f=!0,7!=e||4!=b||d||(d=7));if(c&32||b>d&&!f||b>e)ut(a);else{c=a.B.Xa[15];c|=(a.B.Xa[14]&a.B.gg)<<8;a.aa!=c&&(ut(a),a.aa=c);d=d-b+1;if(a.Fd!=b||a.Tc!=d)a.Fd=b,a.Tc=d;a.xa=e+1;tt(a)}}}
|
||||
function ut(a){if(0<=a.aa){if(void 0!==a.M){var b=vt<<8,c=a.M[a.aa];if(c&b){var c=c&~b,b=a.aa%a.F,d=a.aa/a.F|0;a.I&&a.sa[a.I]&&(a.Da&&wt(a,b,d,c,a.Da),wt(a,b,d,c));a.M[a.aa]=c}}a.aa=-1}}
|
||||
function xt(a){var b,c=a.B;a.Uc=!1;var d=c.Cd[5];if(null!=d){b=Jr;var e=Lr,f=c.Cd[3]&31;switch(d&3){case 0:if(f){e=Lr|32;switch(f&24){case 8:e=Lr|96;break;case 16:e=Lr|160;break;case 24:e=Lr|224}c.Qc=f&7}break;case 1:e=1;break;case 2:switch(f&24){default:e=2;break;case 8:e=98;break;case 16:e=162;break;case 24:e=226}break;case 3:a.Ka==pq&&(e=3,c.Qc=f&7)}d&8&&(b=1280);c=c.de[4];null!=c&&(c&4||(b|=Kr,e|=Mr),d&64&&(c&8&&(b|=16384,e|=4),a.Uc=!0));b|=e}return b}
|
||||
|
|
@ -803,7 +803,7 @@ function nA(a,b){var c;if(b&&"?"==b[1])a.P("register commands:"),a.P("\tr\tdump
|
|||
a.P("ST"+f+": "+Aa(e[2].toFixed(15),24,!0)+" "+q(e[4])+","+q(e[3])+" ["+e[0]+":"+EB[e[1]]+"]")}a.P(" B3SSS210ESPUOZDI xxxIRRPPIxPUOZDI");a.P("SW: "+ra(d,16)+" ("+ua(d)+") CW: "+ra(b,16)+" ("+ua(b)+")");return}if("p"==e)d=80286<=a.H.da;else{f=e.indexOf("=");if(0<f)b=e.substr(f+1),e=e.substr(0,f);else if(2<b.length)b=b[2];else{a.P("missing value for "+b[1]);return}g=By(a,b);if(void 0===g)return;f=!0;h=e.toUpperCase();"E"==h.charAt(0)&&4>=a.sa&&(h=null);switch(h){case "AL":a.H.D=
|
||||
a.H.D&-256|g&255;break;case "AH":a.H.D=a.H.D&-65281|g<<8&255;break;case "AX":a.H.D=a.H.D&-65536|g&65535;break;case "BL":a.H.G=a.H.G&-256|g&255;break;case "BH":a.H.G=a.H.G&-65281|g<<8&255;break;case "BX":a.H.G=a.H.G&-65536|g&65535;break;case "CL":a.H.I=a.H.I&-256|g&255;break;case "CH":a.H.I=a.H.I&-65281|g<<8&255;break;case "CX":a.H.I=a.H.I&-65536|g&65535;break;case "DL":a.H.L=a.H.L&-256|g&255;break;case "DH":a.H.L=a.H.L&-65281|g<<8&255;break;case "DX":a.H.L=a.H.L&-65536|g&65535;break;case "SP":pe(a.H,
|
||||
y(a.H)&-65536|g&65535);break;case "BP":a.H.M=a.H.M&-65536|g&65535;break;case "SI":a.H.K=a.H.K&-65536|g&65535;break;case "DI":a.H.J=a.H.J&-65536|g&65535;break;case "DS":ve(a.H,g);break;case "ES":we(a.H,g);break;case "SS":oe(a.H,g);break;case "CS":hg(a.H,g);a.N=Gy(a,z(a.H),a.H.Z.U);break;case "IP":case "EIP":B(a.H,g);a.N=Gy(a,z(a.H),a.H.Z.U);break;case "PC":case "PS":Fe(a.H,g);break;case "C":g?tg(a.H):ug(a.H);break;case "P":g?(e=a.H,e.resultType&=-3,e.O|=4):(e=a.H,e.resultType&=-3,e.O&=-5);break;case "A":g?
|
||||
Bg(a.H):zg(a.H);break;case "Z":g?Eg(a.H):Ag(a.H);break;case "S":g?(e=a.H,e.resultType&=-17,e.O|=128):(e=a.H,e.resultType&=-17,e.O&=-129);break;case "I":g?(e=a.H,e.O|=512):(e=a.H,e.O&=-513);break;case "D":g?(e=a.H,e.O|=1024):(e=a.H,e.O&=-1025);break;case "V":g?vg(a.H):wg(a.H);break;default:var k=!0;if(80286<=a.H.da)switch(k=!1,h){case "MS":Fg(a.H,g);break;case "TR":-1===a.H.ka.load(g)&&(f=!1);break;default:if(k=!0,80386<=a.H.da)switch(k=!1,h){case "EAX":a.H.D=g;break;case "EBX":a.H.G=g;break;case "ECX":a.H.I=
|
||||
Bg(a.H):zg(a.H);break;case "Z":g?Cg(a.H):Ag(a.H);break;case "S":g?(e=a.H,e.resultType&=-17,e.O|=128):(e=a.H,e.resultType&=-17,e.O&=-129);break;case "I":g?(e=a.H,e.O|=512):(e=a.H,e.O&=-513);break;case "D":g?(e=a.H,e.O|=1024):(e=a.H,e.O&=-1025);break;case "V":g?vg(a.H):wg(a.H);break;default:var k=!0;if(80286<=a.H.da)switch(k=!1,h){case "MS":Fg(a.H,g);break;case "TR":-1===a.H.ka.load(g)&&(f=!1);break;default:if(k=!0,80386<=a.H.da)switch(k=!1,h){case "EAX":a.H.D=g;break;case "EBX":a.H.G=g;break;case "ECX":a.H.I=
|
||||
g;break;case "EDX":a.H.L=g;break;case "ESP":pe(a.H,g);break;case "EBP":a.H.M=g;break;case "ESI":a.H.K=g;break;case "EDI":a.H.J=g;break;case "FS":a.H.Ga.load(g);break;case "GS":a.H.Ia.load(g);break;case "CR0":a.H.qa=g;kk.call(a.H,g);break;case "CR2":a.H.qd=g;break;case "CR3":a.H.Uc=g;He.call(a.H,g);break;default:k=!0}}if(k){a.P("unknown register: "+e);return}}if(!f){a.P("invalid value: "+b);return}Id(a.H);a.P("updated registers:")}}a.P(xB(a,d));c&&(a.N=Gy(a,z(a.H),a.H.Z.U),oA(a,dz(a.N)))}}
|
||||
function FB(a,b){b=Ba(b);var c=b.match(/^(['"])(.*?)\1$/);c?a.P(gA(a,c[2])):By(a,b,!1)}function GB(a,b,c){for(var d=null,e=b.Ha,f=e,g=1;6>=g&&e;g++){if(2<g){b.Ha=e;b.ya=null;var h=wA(a,b);if(0<=h.indexOf("CALL")||c&&0<=h.indexOf("INT")){var k=h.indexOf(" ");if(e+(h.indexOf(" ",k+1)-k-1)/2==f){d=h;break}}}e--}b.Ha=f;return d}function HB(a,b,c){var d="t"!=b;c=vy(a,c,null,!0)||1;var e=1==c?0:1;"tc"==b&&(e=c,c=1);$a(c,function(){return Qb(a,!0)&&ez(a,e,d,!1)},function(){Id(a.H);Qb(a,!1)})}
|
||||
function nB(a,b,c){if(a.fh=b)null!=a.uj&&(a.Hb=a.uj),null!=a.tj&&(a.ec=a.tj),a.uj=a.Hb,a.tj=a.ec;a.Ke=c||0}
|
||||
|
|
@ -814,23 +814,23 @@ nz(a,g[1],!0);if(v)if(a.ea=v,void 0===g[2])a.P("begin assemble at "+dz(v)),a.ga=
|
|||
a.P("\tbc [a]\tclear breakpoint at addr [a]"),a.P("\tbl\tlist all breakpoints"),a.P("\tbn [n]\tbreak after [n] instruction(s)");else{var P=J.charAt(1);if("l"==P){var L;L=0+uA(a,a.B);L+=uA(a,a.W);(L+=uA(a,a.L))||a.P("no breakpoints")}else if("n"==P)a.xa=vy(a,H),a.P("break after "+a.xa+" instruction(s)");else if(void 0===H)a.P("missing breakpoint address");else{var ka={};if("*"!=H&&(ka=nz(a,H,!0,!0),!ka))break a;H=null==ka.Ha?H:ua(ka.Ha);"c"==P?null==ka.Ha?(Hy(a),a.P("all breakpoints cleared")):cz(a,
|
||||
a.B,ka)||cz(a,a.W,ka)||cz(a,a.L,ka)||a.P("breakpoint missing: "+dz(ka)):"i"==P?a.P("breakpoint "+(Sc(a.ma,ka.Ha)?"enabled":"cleared")+": port "+H+" (input)"):"o"==P?a.P("breakpoint "+(Wc(a.ma,ka.Ha)?"enabled":"cleared")+": port "+H+" (output)"):null!=ka.Ha&&(qz(a,ka,I),"p"==P?a.sd(a.B,ka):"r"==P?a.sd(a.W,ka):"w"==P?a.sd(a.L,ka):a.P("unknown breakpoint command: "+P))}}}break;case "c":DB(a.pa);break;case "d":a:{var Z=g,jb,qa=Z[0],db=Z[1],Oa=Z[2],kb=Z[3];if("?"==db){var eb="";for(jb in Xb)a.Da[jb]&&
|
||||
(eb&&(eb+=","),eb+=jb);eb+=",state,symbols";a.P("dump memory commands:");a.P("\tdb [a] [#] dump # bytes at address a");a.P("\tdw [a] [#] dump # words at address a");a.P("\tdd [a] [#] dump # dwords at address a");a.P("\tdh [#] [#] dump # instructions from history");a.P("\tdi [#] dump descriptor info for IDT #");a.P("\tds [#] dump descriptor info for selector #");eb.length&&a.P("dump extension commands:\n\t"+eb)}else if("state"==db){var sc=IB(a.pa,!0);sc?"console"==Oa?console.log(sc):
|
||||
(DB(a.pa),a.P(sc)):a.P("powerOff() error")}else if("symbols"==db)for(var lb=0;lb<a.F.length;lb++){var gf=a.F[lb],Nd;for(Nd in gf.Hd)if("."!=Nd.charAt(0)){var hf=gf.Hd[Nd],Cg=hf.o;if(void 0!==Cg){var jf=hf.s;void 0===jf&&(jf=gf.U);var Dg=gf.Hd[Nd].l;Dg&&(Nd=Dg);a.P(Ty(Cg,jf)+" "+Nd)}}}else{if("ds"==qa||"dg"==qa||"dl"==qa)qa="d",Z=[qa,"desc",db];"d"==qa&&"page"==db&&(qa="dp",Z.shift());if("dp"==qa){Z.shift();var Dm=Z[0];if(Dm){var Xg=a.Tb(nz(a,Dm));if(-1===Xg)a.P("invalid address: "+Dm);else{var tf,
|
||||
Ra=null;if(80386<=a.H.da){var uf=a.ma,Ra={};Ra.Pk=(Xg&-4194304)>>>20;Ra.Xi=a.H.Uc+Ra.Pk;Ra.ob=uf.aa[(Ra.Xi&uf.C)>>>uf.A];Ra.Fj=Ra.ob.Nd(Ra.Pk);Ra.Qk=(Xg&4190208)>>>10;Ra.Yi=(Ra.Fj&-4096)+Ra.Qk;Ra.pb=uf.aa[(Ra.Yi&uf.C)>>>uf.A];Ra.Gj=Ra.pb.Nd(Ra.Qk);Ra.zl=(Ra.Gj&-4096)+(Xg&4095)}if(tf=Ra){a.P("linear PDE addr PDE PTE addr PTE physical");a.P("--------- ---------- -------- ---------- -------- ----------");var ye="%"+q(Xg),ye=ye+(" %%"+sz(tf.Xi,tf.Fj)),ye=
|
||||
ye+(" %%"+sz(tf.Yi,tf.Gj,!0)),ye=ye+(" %%"+q(tf.zl));a.P(ye)}else a.P("unsupported operation")}}else a.P("missing address")}else{if("d"==qa){if("disk"==db){Z[0]="l";Z[1]="json";CB(a,Z);break a}for(jb in Xb)if(Z[1]==jb){var Rt=a.Da[jb];Rt?(Z.shift(),Z.shift(),Rt(Z)):a.P("no dump registered for "+db);break a}db||(qa=a.lb||"db")}if("dh"==qa){var St=db,Tt=Oa,Yg=kb,Yg=void 0===Yg?"history":Yg,Ut="",Vt=0,Nc=a.oa,md=a.Y;if(md.length){var wc=+St||a.Ya,Zg=+Tt||10;isNaN(wc)?wc=Zg:Ut="more ";wc>md.length&&
|
||||
(a.P("note: only "+md.length+" available"),wc=md.length);Nc-=wc;0>Nc&&(null==md[md.length-1].U?(wc=Nc+wc,Nc=0):Nc+=md.length);var Em=[];"call"==Tt&&(Zg=1E5,Em=["CALL"]);for(void 0!==St&&a.P(wc+" instructions earlier:");0<Zg&&Nc!=a.oa;){var nd=md[Nc++];if(null==nd.U)break;var $g=Gy(a,nd.Ha,nd.U,nd.ya,nd.type,nd.Hb,nd.ec),Wt=wc--;null!=nd.mj&&"cycles"==Yg&&(Wt=nd.mj);var Xt=wA(a,$g,Yg,Wt);(!Em.length||0<=Xt.indexOf(Em[0]))&&a.P(Xt);$g.Ke&&(Nc+=$g.Ke,Zg-=$g.Ke,wc-=$g.Ke);Nc>=md.length&&(Nc=0);a.Ya=wc;
|
||||
Vt++;Zg--}}Vt||(a.P("no "+Ut+"history available"),a.Ya=void 0)}else if("di"==qa){Z.shift();var Fm=Z[0];if(Fm){var ah=vy(a,Fm);if(void 0===ah||0>ah||255<ah)a.P("invalid vector: "+Fm);else{var Yt="&",Zt=!!(a.H.qa&1),$t=!1,fj=a.H.Nb+(ah<<(Zt?3:2)),au=a.H.ja(fj+0),yC=a.H.ja(fj+2);Zt&&(Yt="#",a.H.ja(fj+4)&2048&&($t=!0,au|=a.H.ja(fj+6)<<16));a.P("dumpIDT("+ua(ah)+"): "+Yt+q(yC,4)+":"+q(au,$t?8:4))}}else a.P("no IDT vector")}else if("dt"==qa)Z.shift(),a.P("no information");else if(qa[1]&&0>"abwd".indexOf(qa[1]))a.P("unrecognized dump command");
|
||||
else{a.lb=qa;var ze=nz(a,db);if(ze&&(null!=ze.U||null!=ze.ya)){var vf=0;if(Oa){if("l"==Oa.charAt(0))Oa=Oa.substr(1)||kb,vf=vy(a,Oa);else{var bu=nz(a,Oa);if(!bu)break a;vf=bu.Ha-ze.Ha+1}if(0>vf||65536<vf)vf=0}var Ae="",Gm=!1,wf="dd"==qa?4:"dw"==qa?2:1,bh=wf*vf||128,Hm=bh+15>>4||1,Im=4==wf?16:a.D;"a"==qa[1]&&(Gm=!0,Hm=25,Im=160,bh=Hm*Im);for(;Hm--&&0<bh;){var ch=0,Jm=0,dh,Km="",gj="",db=dz(ze);for(dh=Im;0<dh&&0<bh;dh--){var hj=a.Ja(ze,1),ch=ch|hj<<(Jm++<<3);Jm==wf&&(Km+=8==a.D?sa(ch,3*wf):q(ch,2*wf),
|
||||
Km+=1==wf?9==dh?"-":" ":" ",ch=Jm=0);gj+=32<=hj&&128>hj?String.fromCharCode(hj):Gm?"":".";bh--}Ae&&(Ae+="\n");Ae=Gm?Ae+gj:Ae+(db+" "+Km+Aa(gj,gj.length+3*dh+1,!0))}Ae&&a.P(Ae.replace(/\s*$/,""));a.Aa=ze}}}}}break;case "e":if("else"==g[0])break;var ij=1,cu=255,du=a.Ja,eu=a.Pb;"ew"==g[0]&&(ij=2,cu=65535,du=a.Wc,eu=a.nl);var fu=ij<<1,gu=g[1];if(null==gu)a.P("edit memory commands:"),a.P("\teb [a] [...] edit bytes at address a"),a.P("\tew [a] [...] edit words at address a");else{var jj=nz(a,gu);if(jj)for(var kj=
|
||||
2;kj<g.length;kj++){var eh=By(a,g[kj]);if(void 0===eh){a.P("unrecognized value: "+g[kj]);break}eh&~cu&&a.P("warning: "+q(eh)+" exceeds "+ij+"-byte value");var zC=du.call(a,jj);a.P("changing "+dz(jj)+" from "+q(zC,fu,!0)+" to "+q(eh,fu,!0));eu.call(a,jj,eh,ij)}}break;case "f":zB(a,g[1]);break;case "g":a:{var hu=g[1],AC=b;"gt"==g[0]&&(a.Ea=!0);if(void 0!==hu){var Lm=nz(a,hu,!0);if(!Lm)break a;qz(a,Lm,AC);a.sd(a.B,Lm,!0)}lA(a,!0)||c||a.P("cpu busy or unavailable, run command ignored")}break;case "h":a:{var Mm;
|
||||
if(a.ba.ab)Mm="halting",a.Kb();else{if(Pb(a,!0))break a;Mm="already halted"}c||a.P(Mm)}break;case "i":if("if"==g[0]){var Nm;var fh=b.substr(2),fh=Ba(fh);By(a,fh)?(c||a.P("true: "+fh),Nm=!0):(c||a.P("false: "+fh),Nm=!1);Nm||(d=!1);break}if("int"==g[0]){var lj;a:switch(vy(a,g[1])){case 19:el(a,19,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;case 33:el(a,33,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;default:lj=!1}lj||(d=!1);break}var Om=g[1];if(Om&&"?"!=Om){var Pm=vy(a,Om);if(void 0!==Pm){var BC=Uc(a.ma,Pm,1);a.P(ua(Pm)+
|
||||
": "+ta(BC))}}else a.P("input commands:"),a.P("\ti [p]\tread port [p]"),a.P("warning: port accesses can affect hardware state");break;case "k":var CC=g[0];if("?"==g[1])a.P("stack trace commands:"),a.P("\tk\tshow frame addresses"),a.P("\tks\tshow symbol information");else{var Qm=0,iu=a.H.Z.U,gh=Gy(a),Vd=Gy(a,y(a.H),a.H.Y.U);for(a.P("stack trace for "+dz(Vd));10>Qm;){for(var od=null,DC=256;Vd.Ha>>>0<a.H.Sg>>>0;){gh.Ha=a.mb(Vd,!0);if(null==Vd.ya||!DC--)break;gh.U=iu;if(od=GB(a,gh))break;gh.U=a.mb(Vd);
|
||||
if(od=GB(a,gh,!0)){iu=a.mb(Vd,!0);0<od.indexOf("INT")&&a.mb(Vd,!0);break}}if(!od||null==od)break;var ju=null;if("ks"==CC){var ku=od.match(/[0-9A-F]+$/);ku&&(ju=BB(a,ku[0]))}od=Aa(od,50)+" ;"+(ju||"stack="+dz(Vd));a.P(od);Qm++}Qm||a.P("no return addresses found")}break;case "l":if("ln"==g[0]){BB(a,g[1],!0);break}CB(a,g);break;case "m":if("mouse"==g[0]){var Rm=g[1],mj=g[2];if(a.G){var lu=1;"-"==mj.charAt(0)&&(lu=-1,mj=mj.substr(1));var Be=vy(a,mj,Rm);if(void 0!==Be)switch(Be=Be*lu|0,Rm){case "x":a.G.uf(Be,
|
||||
(DB(a.pa),a.P(sc)):a.P("powerOff() error")}else if("symbols"==db)for(var lb=0;lb<a.F.length;lb++){var gf=a.F[lb],Nd;for(Nd in gf.Hd)if("."!=Nd.charAt(0)){var hf=gf.Hd[Nd],Dg=hf.o;if(void 0!==Dg){var jf=hf.s;void 0===jf&&(jf=gf.U);var Eg=gf.Hd[Nd].l;Eg&&(Nd=Eg);a.P(Ty(Dg,jf)+" "+Nd)}}}else{if("ds"==qa||"dg"==qa||"dl"==qa)qa="d",Z=[qa,"desc",db];"d"==qa&&"page"==db&&(qa="dp",Z.shift());if("dp"==qa){Z.shift();var Dm=Z[0];if(Dm){var Yg=a.Tb(nz(a,Dm));if(-1===Yg)a.P("invalid address: "+Dm);else{var tf,
|
||||
Ra=null;if(80386<=a.H.da){var uf=a.ma,Ra={};Ra.Pk=(Yg&-4194304)>>>20;Ra.Xi=a.H.Uc+Ra.Pk;Ra.ob=uf.aa[(Ra.Xi&uf.C)>>>uf.A];Ra.Fj=Ra.ob.Nd(Ra.Pk);Ra.Qk=(Yg&4190208)>>>10;Ra.Yi=(Ra.Fj&-4096)+Ra.Qk;Ra.pb=uf.aa[(Ra.Yi&uf.C)>>>uf.A];Ra.Gj=Ra.pb.Nd(Ra.Qk);Ra.zl=(Ra.Gj&-4096)+(Yg&4095)}if(tf=Ra){a.P("linear PDE addr PDE PTE addr PTE physical");a.P("--------- ---------- -------- ---------- -------- ----------");var ye="%"+q(Yg),ye=ye+(" %%"+sz(tf.Xi,tf.Fj)),ye=
|
||||
ye+(" %%"+sz(tf.Yi,tf.Gj,!0)),ye=ye+(" %%"+q(tf.zl));a.P(ye)}else a.P("unsupported operation")}}else a.P("missing address")}else{if("d"==qa){if("disk"==db){Z[0]="l";Z[1]="json";CB(a,Z);break a}for(jb in Xb)if(Z[1]==jb){var Rt=a.Da[jb];Rt?(Z.shift(),Z.shift(),Rt(Z)):a.P("no dump registered for "+db);break a}db||(qa=a.lb||"db")}if("dh"==qa){var St=db,Tt=Oa,Zg=kb,Zg=void 0===Zg?"history":Zg,Ut="",Vt=0,Nc=a.oa,md=a.Y;if(md.length){var wc=+St||a.Ya,$g=+Tt||10;isNaN(wc)?wc=$g:Ut="more ";wc>md.length&&
|
||||
(a.P("note: only "+md.length+" available"),wc=md.length);Nc-=wc;0>Nc&&(null==md[md.length-1].U?(wc=Nc+wc,Nc=0):Nc+=md.length);var Em=[];"call"==Tt&&($g=1E5,Em=["CALL"]);for(void 0!==St&&a.P(wc+" instructions earlier:");0<$g&&Nc!=a.oa;){var nd=md[Nc++];if(null==nd.U)break;var ah=Gy(a,nd.Ha,nd.U,nd.ya,nd.type,nd.Hb,nd.ec),Wt=wc--;null!=nd.mj&&"cycles"==Zg&&(Wt=nd.mj);var Xt=wA(a,ah,Zg,Wt);(!Em.length||0<=Xt.indexOf(Em[0]))&&a.P(Xt);ah.Ke&&(Nc+=ah.Ke,$g-=ah.Ke,wc-=ah.Ke);Nc>=md.length&&(Nc=0);a.Ya=wc;
|
||||
Vt++;$g--}}Vt||(a.P("no "+Ut+"history available"),a.Ya=void 0)}else if("di"==qa){Z.shift();var Fm=Z[0];if(Fm){var bh=vy(a,Fm);if(void 0===bh||0>bh||255<bh)a.P("invalid vector: "+Fm);else{var Yt="&",Zt=!!(a.H.qa&1),$t=!1,fj=a.H.Nb+(bh<<(Zt?3:2)),au=a.H.ja(fj+0),yC=a.H.ja(fj+2);Zt&&(Yt="#",a.H.ja(fj+4)&2048&&($t=!0,au|=a.H.ja(fj+6)<<16));a.P("dumpIDT("+ua(bh)+"): "+Yt+q(yC,4)+":"+q(au,$t?8:4))}}else a.P("no IDT vector")}else if("dt"==qa)Z.shift(),a.P("no information");else if(qa[1]&&0>"abwd".indexOf(qa[1]))a.P("unrecognized dump command");
|
||||
else{a.lb=qa;var ze=nz(a,db);if(ze&&(null!=ze.U||null!=ze.ya)){var vf=0;if(Oa){if("l"==Oa.charAt(0))Oa=Oa.substr(1)||kb,vf=vy(a,Oa);else{var bu=nz(a,Oa);if(!bu)break a;vf=bu.Ha-ze.Ha+1}if(0>vf||65536<vf)vf=0}var Ae="",Gm=!1,wf="dd"==qa?4:"dw"==qa?2:1,ch=wf*vf||128,Hm=ch+15>>4||1,Im=4==wf?16:a.D;"a"==qa[1]&&(Gm=!0,Hm=25,Im=160,ch=Hm*Im);for(;Hm--&&0<ch;){var dh=0,Jm=0,eh,Km="",gj="",db=dz(ze);for(eh=Im;0<eh&&0<ch;eh--){var hj=a.Ja(ze,1),dh=dh|hj<<(Jm++<<3);Jm==wf&&(Km+=8==a.D?sa(dh,3*wf):q(dh,2*wf),
|
||||
Km+=1==wf?9==eh?"-":" ":" ",dh=Jm=0);gj+=32<=hj&&128>hj?String.fromCharCode(hj):Gm?"":".";ch--}Ae&&(Ae+="\n");Ae=Gm?Ae+gj:Ae+(db+" "+Km+Aa(gj,gj.length+3*eh+1,!0))}Ae&&a.P(Ae.replace(/\s*$/,""));a.Aa=ze}}}}}break;case "e":if("else"==g[0])break;var ij=1,cu=255,du=a.Ja,eu=a.Pb;"ew"==g[0]&&(ij=2,cu=65535,du=a.Wc,eu=a.nl);var fu=ij<<1,gu=g[1];if(null==gu)a.P("edit memory commands:"),a.P("\teb [a] [...] edit bytes at address a"),a.P("\tew [a] [...] edit words at address a");else{var jj=nz(a,gu);if(jj)for(var kj=
|
||||
2;kj<g.length;kj++){var fh=By(a,g[kj]);if(void 0===fh){a.P("unrecognized value: "+g[kj]);break}fh&~cu&&a.P("warning: "+q(fh)+" exceeds "+ij+"-byte value");var zC=du.call(a,jj);a.P("changing "+dz(jj)+" from "+q(zC,fu,!0)+" to "+q(fh,fu,!0));eu.call(a,jj,fh,ij)}}break;case "f":zB(a,g[1]);break;case "g":a:{var hu=g[1],AC=b;"gt"==g[0]&&(a.Ea=!0);if(void 0!==hu){var Lm=nz(a,hu,!0);if(!Lm)break a;qz(a,Lm,AC);a.sd(a.B,Lm,!0)}lA(a,!0)||c||a.P("cpu busy or unavailable, run command ignored")}break;case "h":a:{var Mm;
|
||||
if(a.ba.ab)Mm="halting",a.Kb();else{if(Pb(a,!0))break a;Mm="already halted"}c||a.P(Mm)}break;case "i":if("if"==g[0]){var Nm;var gh=b.substr(2),gh=Ba(gh);By(a,gh)?(c||a.P("true: "+gh),Nm=!0):(c||a.P("false: "+gh),Nm=!1);Nm||(d=!1);break}if("int"==g[0]){var lj;a:switch(vy(a,g[1])){case 19:el(a,19,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;case 33:el(a,33,a.H.ea,!0);a.ka=a.aa;lj=!0;break a;default:lj=!1}lj||(d=!1);break}var Om=g[1];if(Om&&"?"!=Om){var Pm=vy(a,Om);if(void 0!==Pm){var BC=Uc(a.ma,Pm,1);a.P(ua(Pm)+
|
||||
": "+ta(BC))}}else a.P("input commands:"),a.P("\ti [p]\tread port [p]"),a.P("warning: port accesses can affect hardware state");break;case "k":var CC=g[0];if("?"==g[1])a.P("stack trace commands:"),a.P("\tk\tshow frame addresses"),a.P("\tks\tshow symbol information");else{var Qm=0,iu=a.H.Z.U,hh=Gy(a),Vd=Gy(a,y(a.H),a.H.Y.U);for(a.P("stack trace for "+dz(Vd));10>Qm;){for(var od=null,DC=256;Vd.Ha>>>0<a.H.Sg>>>0;){hh.Ha=a.mb(Vd,!0);if(null==Vd.ya||!DC--)break;hh.U=iu;if(od=GB(a,hh))break;hh.U=a.mb(Vd);
|
||||
if(od=GB(a,hh,!0)){iu=a.mb(Vd,!0);0<od.indexOf("INT")&&a.mb(Vd,!0);break}}if(!od||null==od)break;var ju=null;if("ks"==CC){var ku=od.match(/[0-9A-F]+$/);ku&&(ju=BB(a,ku[0]))}od=Aa(od,50)+" ;"+(ju||"stack="+dz(Vd));a.P(od);Qm++}Qm||a.P("no return addresses found")}break;case "l":if("ln"==g[0]){BB(a,g[1],!0);break}CB(a,g);break;case "m":if("mouse"==g[0]){var Rm=g[1],mj=g[2];if(a.G){var lu=1;"-"==mj.charAt(0)&&(lu=-1,mj=mj.substr(1));var Be=vy(a,mj,Rm);if(void 0!==Be)switch(Be=Be*lu|0,Rm){case "x":a.G.uf(Be,
|
||||
0);break;case "y":a.G.uf(0,Be);break;case "click":a.G.Yd(Be,!0);a.G.Yd(Be,!1);break;default:a.P("unknown action: "+Rm)}}else a.P("no mouse");break}a:{var pd,qd=null,gb=g[1];"?"==gb&&(gb=void 0);if(void 0!==gb){var Ce=0;if("all"==gb)Ce=1610481663,gb=null;else if("on"==gb)qd=!0,gb=null;else if("off"==gb)qd=!1,gb=null;else{"keys"==gb&&(gb="key");"kbd"==gb&&(gb="keyboard");for(pd in Xb)if(gb==pd){Ce=Xb[pd];qd=!!(a.ic&Ce);break}if(!Ce){a.P("unknown message category: "+gb);break a}}Ce&&("on"==g[2]?(a.ic|=
|
||||
Ce,qd=!0):"off"==g[2]&&(a.ic&=~Ce,qd=!1))}var EC=0,hh="";for(pd in Xb)if(!gb||gb==pd){var FC=!!(a.ic&Xb[pd]);if(null===qd||qd==FC)hh&&(hh+=","),++EC%10||(hh+="\n\t"),"key"==pd&&(pd="keys"),hh+=pd}void 0===gb&&a.P("message commands:\n\tm [category] [on|off]\tturn categories on/off");a.P((null!==qd?qd?"messages on: ":"messages off: ":"message categories:\n\t")+(hh||"none"));Iy(a)}break;case "o":var Sm=g[1],GC=g[2];if(Sm&&"?"!=Sm){var Tm=vy(a,Sm,"port #"),Um=vy(a,GC);void 0!==Tm&&void 0!==Um&&(Yc(a.ma,
|
||||
Ce,qd=!0):"off"==g[2]&&(a.ic&=~Ce,qd=!1))}var EC=0,ih="";for(pd in Xb)if(!gb||gb==pd){var FC=!!(a.ic&Xb[pd]);if(null===qd||qd==FC)ih&&(ih+=","),++EC%10||(ih+="\n\t"),"key"==pd&&(pd="keys"),ih+=pd}void 0===gb&&a.P("message commands:\n\tm [category] [on|off]\tturn categories on/off");a.P((null!==qd?qd?"messages on: ":"messages off: ":"message categories:\n\t")+(ih||"none"));Iy(a)}break;case "o":var Sm=g[1],GC=g[2];if(Sm&&"?"!=Sm){var Tm=vy(a,Sm,"port #"),Um=vy(a,GC);void 0!==Tm&&void 0!==Um&&(Yc(a.ma,
|
||||
Tm,1,Um),a.P(ua(Tm)+": "+ta(Um)))}else a.P("output commands:"),a.P("\to [p] [b]\twrite byte [b] to port [p]"),a.P("warning: port accesses can affect hardware state");break;case "p":if("print"==g[0]){FB(a,b.substr(5));break}var mu="pr"==g[0]?1:0,xf=1+mu;if(a.K)a.P("step in progress");else{var nj,nu=!1,Jb=Gy(a,z(a.H),a.H.Z.U);do switch(nj=!1,a.Ja(Jb)){case 38:case 46:case 54:case 62:case 100:case 101:case 102:case 103:case 240:iz(a,Jb,1);nj=!0;break;case 204:case 206:a.K=xf;iz(a,Jb,1);break;case 205:case 224:case 225:case 226:a.K=
|
||||
xf;iz(a,Jb,Jb.Hb?4:2);break;case 232:a.K=xf;iz(a,Jb,Jb.Hb?5:3);break;case 154:a.K=xf;iz(a,Jb,Jb.Hb?7:5);break;case 255:var ou=a.mb(Jb)&14591;if(4351==ou||6399==ou)a.K=xf,wA(a,Jb);break;case 243:case 242:iz(a,Jb,1);nu=nj=!0;break;case 108:case 109:case 110:case 111:case 164:case 165:case 166:case 167:case 170:case 171:case 172:case 173:case 174:case 175:nu&&(a.K=xf,iz(a,Jb,1))}while(nj);a.K?(a.sd(a.B,Jb,!0),lA(a)||(a.pa&&a.pa.nd(),a.K=0)):HB(a,mu?"tr":"t")}break;case "r":if("reset"==b){a.pa&&a.pa.reset();
|
||||
break}nA(a,g);break;case "t":HB(a,g[0],g[1]);break;case "u":oA(a,g[1],g[2],8);break;case "v":if("var"==g[0]){AB(a,b.substr(3))||(d=!1);break}a.P("PCx86 version 1.36.0 ("+a.H.da+",RELEASE,NOPREFETCH"+(Tb?",TYPEDARRAYS":",LONGARRAYS")+",NOBACKTRACK)");a.P(Qa());break;case "x":a:if(g[1]&&"?"!=g[1])switch(g[1]){case "cs":var ih;void 0!==g[3]&&(ih=+g[3]);switch(g[2]){case "int":a.H.T.Ve=ih;break;case "start":a.H.T.xf=ih;break;case "stop":a.H.T.Xe=ih;break;default:a.P("unknown cs option");break a}void 0!==
|
||||
ih&&Hd(a.H);a.P("checksums "+(a.H.ba.Me?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&(Md(a.H,+g[2])||a.P("warning: using 1x multiplier, previous target not reached"));a.P("target speed: "+(a.H.T.se.toFixed(2)+"Mhz")+" ("+a.H.T.Kd+"x)");break;default:a.P("unknown option: "+g[1])}else a.P("execution options:"),a.P("\tcs int #\tset checksum cycle interval to #"),a.P("\tcs start #\tset checksum cycle start count to #"),a.P("\tcs stop #\tset checksum cycle stop count to #"),a.P("\tsp #\t\tset speed multiplier to #");
|
||||
break}nA(a,g);break;case "t":HB(a,g[0],g[1]);break;case "u":oA(a,g[1],g[2],8);break;case "v":if("var"==g[0]){AB(a,b.substr(3))||(d=!1);break}a.P("PCx86 version 1.36.0 ("+a.H.da+",RELEASE,NOPREFETCH"+(Tb?",TYPEDARRAYS":",LONGARRAYS")+",NOBACKTRACK)");a.P(Qa());break;case "x":a:if(g[1]&&"?"!=g[1])switch(g[1]){case "cs":var jh;void 0!==g[3]&&(jh=+g[3]);switch(g[2]){case "int":a.H.T.Ve=jh;break;case "start":a.H.T.xf=jh;break;case "stop":a.H.T.Xe=jh;break;default:a.P("unknown cs option");break a}void 0!==
|
||||
jh&&Hd(a.H);a.P("checksums "+(a.H.ba.Me?"enabled":"disabled"));break;case "sp":void 0!==g[2]&&(Md(a.H,+g[2])||a.P("warning: using 1x multiplier, previous target not reached"));a.P("target speed: "+(a.H.T.se.toFixed(2)+"Mhz")+" ("+a.H.T.Kd+"x)");break;default:a.P("unknown option: "+g[1])}else a.P("execution options:"),a.P("\tcs int #\tset checksum cycle interval to #"),a.P("\tcs start #\tset checksum cycle start count to #"),a.P("\tcs stop #\tset checksum cycle stop count to #"),a.P("\tsp #\t\tset speed multiplier to #");
|
||||
break;case "?":if(g[1]){FB(a,b.substr(1));break}var Vm="commands:",Wm;for(Wm in JB)Vm+="\n"+Aa(Wm,7)+JB[Wm];Sg(a)||(Vm+="\nnote: frequency/history disabled if no exec breakpoints");a.P(Vm);break;default:a.P("unknown command: "+b),d=!1}}}catch(qu){a.P("debugger error: "+(qu.stack||qu.message)),d=!1}return d}function Ky(a,b,c){b=a.Eg(b,c);for(var d in b)if(!vA(a,b[+d]))return!1;return!0}
|
||||
var iA={16:262144,19:524288,21:32768,22:65536,28:2048,33:134217728,51:16777216},hA=[26,28,40,42,109],JB={"?":"help/print","a [#]":"assemble","b [#]":"breakpoint",c:"clear output","d [#]":"dump memory","e [#]":"edit memory",f:"frequencies","g [#]":"go [to #]",h:"halt","i [#]":"input port #","if":"eval expression",k:"stack trace",l:"load sector(s)",ln:"list nearest symbol(s)",m:"messages",mouse:"mouse action","o [#]":"output port #",p:"step over",print:"print expression",r:"dump/set registers",reset:"reset machine",
|
||||
"t [#]":"trace","u [#]":"unassemble",x:"execution options",v:"print version","var":"assign variable"},oz=0,gz=1,Qy=2,rz=3,pz=4,hz=5,EA=18,FA=28,AA=36,JA=80,GA=104,HA=107,yA=176,xA="INVALID AAA AAD AAM AAS ADC ADD AND ARPL AS: BOUND BSF BSR BT BTC BTR BTS CALL CBW CLC CLD CLI CLTS CMC CMP CMPSB CMPSW CS: CWD DAA DAS DEC DIV DS: ENTER ES: ESC FS: GS: HLT IBTS IDIV IMUL IN INC INS INT INT3 INTO IRET JBE JC JCXZ JG JGE JL JLE JMP JA JNC JNO JNP JNS JNZ JO JP JS JZ LAHF LAR LDS LEA LEAVE LES LFS LGDT LGS LIDT LLDT LMSW LOADALL LOCK LODSB LODSW LOOP LOOPNZ LOOPZ LSL LSS LTR MOV MOVSB MOVSW MOVSX MOVZX MUL NEG NOP NOT OR OS: OUT OUTS POP POPA POPF PUSHF PUSHA PUSH RCL RCR REPNZ REPZ RET RETF ROL ROR SAHF SALC SAR SBB SCASB SCASW SETBE SETC SETG SETGE SETL SETLE SETNBE SETNC SETNO SETNP SETNS SETNZ SETO SETP SETS SETZ SGDT SHL SHLD SHR SHRD SIDT SLDT SMSW SS: STC STD STI STOSB STOSW STR SUB TEST VERR VERW WAIT XBTS XCHG XLAT XOR".split(" "),
|
||||
|
|
@ -869,7 +869,7 @@ function iC(a,b){var c=new fg(a,"1.36.0",jC);if(c.load()&&kC(c)){var d=c.get(lC)
|
|||
l.$e=function(a){void 0===a&&(a=this.A||(this.M?mC:cC));if(!this.D){this.D++;var b=!1,c=!1;this.ea=!1;var d=this.N||new fg(this,"1.36.0");if(a==Ld)b=!0;else if(a>cC){if(d.load(this.M)){this.G=new fg(this,"1.36.0",nC);this.G.load()&&(a!=mC&&oC(this,d)&&(a=pC),qC(this.G));this.G.set(lC,Ea());rC(this.G);var e=this.A&&!this.J;if(a==mC||vb("Click OK to restore the previous PCx86 machine state.")){if(c=kC(d)){var f=d.get("code"),g=d.get("data");f&&("ok"==f?d.load(g):("error"==f&&"no machine state"!=g?(this.Ca("Error: "+
|
||||
g),"unable to verify user"==g&&(Va(sC,""),this.B=null)):this.P(f+": "+g),qC(d),d.load()?(c=kC(d),e=!0):c=!1))}e&&iC(this,c?d:null)}else a==pC&&d.clear()}else iC(this);delete this.M;delete this.N}e=Db(this.id);for(f=0;f<e.length;f++)g=e[f],g!==this&&g!=this.H&&(c=tC(this,g,d,b,c));b=[d,a,c];a!=Ld?hC(this,this.rj,b):this.rj(b)}};
|
||||
function tC(a,b,c,d,e){if(!b.ba.Zb){b.ba.Zb=!0;if(b.Yb){var f=null;e&&((f=c.get(b.id))||(f=c.get(b.id.replace(/-[0-9]+\./i,"."))));"string"===typeof f&&(f=null);!b.Yb(f,d)&&f&&(b.Ca("Unable to restore hardware state")&&(a.Z&&!a.ga?(c.clear(),a.A=cC,window&&window.location.reload()):a.ea=!0),b.Yb(null),e=!1)}b.ba.rf=!0;if(!d&&b.yj)for(a=b.yj.split("|"),c=0;c<a.length;c++)b.status(a[c])}return e}
|
||||
l.rj=function(a){var b=a[0],c=0>a[1];a=a[2];if(!this.ba.rf){for(var d=0;d<this.C.length;d++){var e=this.C[d];e&&(e=e.rg)&&(e.style.opacity="0",e.style.lineHeight="0",e.value="")}this.O=0;this.ba.rf=!0}this.ba.Zb=!0;if(d=this.na.power)d.textContent="Shutdown";this.H&&(tC(this,this.H,b,c,a),this.H.je());this.ea&&(oC(this,b),b.clear());!c&&this.G&&(this.G.clear(),delete this.G);this.D=0};
|
||||
l.rj=function(a){var b=a[0],c=0>a[1];a=a[2];if(!this.ba.rf){for(var d=0;d<this.C.length;d++){var e=this.C[d];if(e&&(e=e.rg)){var f=Qa();e.style.opacity="0";e.style.lineHeight="0";if(0<=f.indexOf("MSIE")||0<=f.indexOf("Trident"))e.style.fontSize="0";e.value=""}}this.O=0;this.ba.rf=!0}this.ba.Zb=!0;if(d=this.na.power)d.textContent="Shutdown";this.H&&(tC(this,this.H,b,c,a),this.H.je());this.ea&&(oC(this,b),b.clear());!c&&this.G&&(this.G.clear(),delete this.G);this.D=0};
|
||||
function oC(a,b){if(!a.ba.Ae){if(vb("There may be a problem with your PCx86 machine.\n\nTo help us diagnose it, click OK to send this PCx86 machine state to http://www.pcjs.org.")){var c=a.B||"";b=b.toString();var d={app:"PCx86",ver:"1.36.0"};d.url=a.qa;d.user=c;d.type="bug";d.data=b;Na("http://www.pcjs.org/api/v1/report",d,!0)}return!0}return!1}
|
||||
function IB(a,b,c){var d,e="none";if(a.D)return null;a.D--;var f=new fg(a,"1.36.0"),g=new fg(a,"1.36.0",jC),h=Ea();g.set(lC,h);f.set(lC,h);f.set(uC,"1.36.0");f.set(vC,window?window.location.href:null);f.set(wC,Qa());a.H&&a.H.Xb&&(d=a.H.Xb(b,c),"object"===typeof d&&f.set(a.H.id,d),c&&(a.H.ba.Zb=!1,!1===d&&(e=null)));for(var h=Db(a.id),k=0;k<h.length;k++){var m=h[k];m.ba.Zb&&(m.Xb&&(d=m.Xb(b,c),"object"===typeof d&&f.set(m.id,d)),c&&(m.ba.Zb=!1,!1===d&&(e=null)))}e&&(c?(h=d=!1,b?(a.B&&xC(a,a.B,f.toString()),
|
||||
rC(g)&&rC(f)||(e=null,d=h=!0)):a.A&&(d=!0,h=a.A==HC),d&&f.clear(h)):e=f.toString());c&&(a.ba.Zb=!1,b=a.na.power)&&(b.textContent="Power");a.D=0;return e}l.reset=function(){this.ma&&this.ma.reset&&(Rb(this,"Resetting "+this.ma.type),this.ma.reset());for(var a=Db(this.id),b=0;b<a.length;b++){var c=a[b];c!==this&&c!==this.ma&&c.reset&&(Rb(this,"Resetting "+c.type),c.reset())}};l.start=function(a,b){for(var c=Db(this.id),d=0;d<c.length;d++){var e=c[d];"CPU"!=e.type&&e!==this&&e.start&&e.start(a,b)}};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3707,11 +3707,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
@ -74554,6 +74554,11 @@ class Computer extends Component {
|
|||
if (video) {
|
||||
var control = video.getTextArea();
|
||||
if (control) {
|
||||
/*
|
||||
* By default, the Video textarea overlay has opacity and lineHeight styles set to "0"
|
||||
* to make the overall textarea and its blinking caret invisible (respectively), so in order
|
||||
* to use it as a diagnostic display, we must temporarily set both those styles to "1".
|
||||
*/
|
||||
control.style.opacity = "1";
|
||||
control.style.lineHeight = "1";
|
||||
this.cDiagnosticScreens++;
|
||||
|
|
@ -74574,8 +74579,20 @@ class Computer extends Component {
|
|||
if (video) {
|
||||
var control = video.getTextArea();
|
||||
if (control) {
|
||||
var agent = Web.getUserAgent();
|
||||
/*
|
||||
* Return the Video textarea overlay's opacity and lineHeight styles to their original values.
|
||||
*/
|
||||
control.style.opacity = "0";
|
||||
control.style.lineHeight = "0";
|
||||
/*
|
||||
* Setting lineHeight in IE isn't sufficient to hide the caret; we must also set fontSize to "0",
|
||||
* and we make the change IE-specific because it can have weird side-effects in other browsers (eg,
|
||||
* it makes Safari on iOS over-zoom whenever the textarea receives focus). And making it IE-specific
|
||||
* is, as usual, harder than it should be, because IE11 stopped identifying itself as "MSIE", hence
|
||||
* the additional "Trident" check.
|
||||
*/
|
||||
if (agent.indexOf("MSIE") >= 0 || agent.indexOf("Trident") >= 0) control.style.fontSize = "0";
|
||||
control.value = "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -3479,11 +3479,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
|
|||
|
|
@ -3707,11 +3707,11 @@ class Component {
|
|||
* Why do we throw an Error only to immediately catch and ignore it? Simply to give
|
||||
* any IDE the opportunity to inspect the application's state. Even when the IDE has
|
||||
* control, you should still be able to invoke Debugger commands from the IDE's REPL,
|
||||
* using the '$' global function that the Debugger constructor defines; eg:
|
||||
* using the global function that the Debugger constructor defines; eg:
|
||||
*
|
||||
* $('r')
|
||||
* $('dw 0:0')
|
||||
* $('h')
|
||||
* pcx86('r')
|
||||
* pcx86('dw 0:0')
|
||||
* pcx86('h')
|
||||
* ...
|
||||
*
|
||||
* If you have no desire to stop on assertions, consider this a no-op. However, another
|
||||
|
|
|
|||
Loading…
Reference in a new issue