PDP-11 panel switches can now be scripted

This commit is contained in:
Jeff Parsons 2017-02-06 13:07:15 -08:00 committed by Jeff Parsons
commit 2e93b71095
14 changed files with 334 additions and 224 deletions

View file

@ -71,7 +71,7 @@ k.toString=function(){return this.name?this.name:this.id||this.type};
k.wb=function(a,b,c){switch(b){case "clear":return this.ia[b]||(this.ia[b]=c,c.onclick=function(a){return function(){a.ia.print&&(a.ia.print.value="")}}(this)),!0;case "print":return this.ia[b]||(this.Cf=this.ia[b]=c,c.value="",this.lc=function(a){return function(b,c){8192<a.value.length&&(a.value=a.value.substr(a.value.length-4096));a.value+=(void 0!==c?c+": ":"")+(b||"")+"\n";a.scrollTop=a.scrollHeight}}(c),this.Aa=function(a){this.lc(a,this.Td)}),!0;default:return!1}};k.log=function(){};k.lc=function(){};
k.status=function(a){this.lc(this.Td+": "+a)};k.Aa=function(a,b,c){c=c||this.type;b||r((c?c+": ":"")+a)};function bb(a,b){a.ca.error=!0;a.Aa(b)}function cb(a,b){b&&(a.ca.ready?b():a.Ff=b);return a.ca.ready}function db(a,b){a.ca.error||(a.ca.ready=!1!==b,a.ca.ready&&(b=a.Ff,a.Ff=null,b&&b()))}function eb(a,b){if(a.ca.lg)return a.ca.wf=!1,a.ca.lg=!1;if(a.ca.error)return a.lc(a.toString()+" error"),!1;a.ca.wf=b;return a.ca.wf}k.Ob=function(){return this.ca.Pb=!0};
k.Nb=function(a,b){b&&(this.ca.Pb=!1);return!0};window&&(window.PCjs||(window.PCjs={}),window.PCjs.Machines||(window.PCjs.Machines={}),window.PCjs.Components||(window.PCjs.Components=[]));
var Oa=window?window.PCjs.Machines:{},Ma=window?window.PCjs.Components:[],Ya=["sleep","wait"],Za={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},ab={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});
var Oa=window?window.PCjs.Machines:{},Ma=window?window.PCjs.Components:[],Ya=["hold","sleep","wait"],Za={alert:function(a){r(a);return!0},sleep:function(a,b){setTimeout(a,+b);return!1}},ab={select:function(a,b,c){var d=!1;if(a=a.bindings[b])for(b=0;b<a.options.length;b++)if(a.options[b].textContent==c){a.selectedIndex!=b&&(a.selectedIndex=b);d=!0;break}return d}};Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){b=b||0;for(var c=this.length;b<c;b++)if(this[b]===a)return b;return-1});
Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});Function.prototype.bind||(Function.prototype.bind=function(a){function b(){return e.apply(this instanceof c&&a?this:a,d.concat(Array.prototype.slice.call(arguments)))}function c(){}if("function"!=typeof this)throw new TypeError("Function.prototype.bind: non-callable object");var d=Array.prototype.slice.call(arguments,1),e=this;c.prototype=this.prototype;b.prototype=new c;return b});
var fb="undefined"!==typeof ArrayBuffer,gb={Pf:4,dc:5,Xc:6,Ac:7,Bc:8,Na:9,Fb:11,Gb:12,Kd:4,Di:60,Ei:83,Xb:3,vb:9,kc:16,Of:1,Ii:19,Ki:28,Mi:16,Li:21,Ji:37,Gi:2,Eg:9,Hi:5,Fi:33,Gg:10,Fg:8,Te:3,Se:15,$i:51,aj:1,bj:2,cj:4,Zi:32,Hg:15,ej:15,Ia:16,Ja:4,gj:11,fj:18,dj:24,Hb:4,hj:2,se:16,ij:17,Mg:18,jj:19,Lg:5,Ng:6,oj:2,nj:8,lj:9,mj:10,kj:10,Og:10,Pg:10,Oi:80,Qi:144,Ni:86,Pi:154,Si:101,Ui:165,Ri:107,Ti:171,qj:70,sj:113,pj:76,rj:124,Wi:80,Yi:128,Vi:86,Xi:134,Ve:3,Ue:16,Ug:10,Tg:8,tj:51,Yb:8,uj:17,vj:36,qc:11,
wj:16,Ld:10,Gc:2,Bg:18,Cg:7,D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