From b15c8cf51e7185147a9f1911a2746e681ca4328f Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 22 Dec 2016 22:58:35 -0800 Subject: [PATCH] More PDP-11 documentation additions --- modules/pdp11/lib/panel.js | 2 +- modules/shared/es6/strlib.js | 5 ++++- pubs/dec/pdp11/README.md | 9 +++++++-- pubs/dec/pdp11/diags/README.md | 9 +++++++-- versions/pdpjs/1.31.0/pdp11-dbg.js | 4 ++-- versions/pdpjs/1.31.0/pdp11.js | 4 ++-- 6 files changed, 23 insertions(+), 10 deletions(-) diff --git a/modules/pdp11/lib/panel.js b/modules/pdp11/lib/panel.js index aab68f7d5..2169aaaf1 100644 --- a/modules/pdp11/lib/panel.js +++ b/modules/pdp11/lib/panel.js @@ -1020,7 +1020,7 @@ class PanelPDP11 extends Component { } /* - * Update the ADDRESS and DATA LEDs by selecting the appropriate values + * Update the ADDRESS and DATA LEDs by selecting the appropriate values. * * TODO: There is currently no mechanism for selecting regData over regDisplay; * we are acting as if the DATASEL switch setting is locked to "DISPLAY REGISTER". diff --git a/modules/shared/es6/strlib.js b/modules/shared/es6/strlib.js index d7192d28d..24db0468b 100644 --- a/modules/shared/es6/strlib.js +++ b/modules/shared/es6/strlib.js @@ -555,7 +555,10 @@ class Str { { var s; if (b != Str.ASCII.CR && b != Str.ASCII.LF) { - s = '<' + Str.aASCIICodes[b] + '>'; + s = Str.aASCIICodes[b]; + } + if (s) { + s = '<' + s + '>'; } else { s = String.fromCharCode(b); } diff --git a/pubs/dec/pdp11/README.md b/pubs/dec/pdp11/README.md index 5e9ab70c8..223c9c3a3 100644 --- a/pubs/dec/pdp11/README.md +++ b/pubs/dec/pdp11/README.md @@ -39,9 +39,14 @@ directory. If a PDF was not searchable, it was "OCR'ed" before being archived b - [MAINDEC-11-DZQAB MAINDEC USER REFERENCE MANUAL (Oct 1973)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf) - [MAINDEC-11-DCQKC 11/40 and 11/45 INSTRUCTION EXERCISER (Sep 1974)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DCQKC-D-D_1140_1145_INSTRUCTION_EXERCISER_Sep74.pdf) - [MAINDEC-11-DZQXA XXDP USER MANUAL (Jul 1976)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQXA-I-D_XXDP_User_Manual_Jul76.pdf) -- [CEKBAD0 11/70 CPU #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AH-7963D-MC_CEKBAD0_1170_CPU_1_May80.pdf) -- [CEKBBF0 11/70 CPU #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AH-7968F-MC_CEKBBF0_1170_CPU_2_May80.pdf) +- [CEKBAD0 11/70 CPU #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7962D-MC_CEKBAD0_1170_CPU_1_May80.pdf) +- [CEKBBF0 11/70 CPU #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7966F-MC_CEKBBF0_1170_CPU_2_May80.pdf) +- [CEKBCD0 11/70 CACHE #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-0009D-MC_CEKBCD0_1170_CACHE_1_May80.pdf) +- [CEKBDE0 11/70 CACHE #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7971E-MC_CEKBDE0_1170_CACHE_2_May80.pdf) - [CEKBEE0 11/70 MEM MGMT (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7975E-MC_CEKBEE0_1170_MEM_MGMT_May80.pdf) +- [CEKBFD0 11/70 UNIBUS MAP (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7979D-MC_CEKBFD0_1170_UNIBUS_MAP_May80.pdf) +- [CEMJAD0 11/70 MEM TST (Feb 1979)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7990D-MC_CEMJAD0_1170_MEM_TST_Feb79.pdf) +- [CEQKCE0 11/70 INSTRUCTION EXERCISER (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7994E-MC_CEQKCE0_1170_INSTRUCTION_EXERCISER_May80.pdf) - [PDP-11 DIAGNOSTIC HANDBOOK (1988)](http://archive.pcjs.org/pubs/dec/pdp11/diags/PDP11_DiagnosticHandbook_1988.pdf) - [Notes for XXDP+ and XXDP V2 Operating Systems (Feb 1993)](http://archive.pcjs.org/pubs/dec/pdp11/diags/XXDP_Notes_Feb93.pdf) diff --git a/pubs/dec/pdp11/diags/README.md b/pubs/dec/pdp11/diags/README.md index a908a5d19..380b8015e 100644 --- a/pubs/dec/pdp11/diags/README.md +++ b/pubs/dec/pdp11/diags/README.md @@ -12,9 +12,14 @@ PDPjs development and testing relied on the following PDP-11 diagnostic publicat - [MAINDEC-11-DZQAB MAINDEC USER REFERENCE MANUAL (Oct 1973)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQAB-B-D_User_Reference_Manual_Oct73.pdf) - [MAINDEC-11-DCQKC 11/40 and 11/45 INSTRUCTION EXERCISER (Sep 1974)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DCQKC-D-D_1140_1145_INSTRUCTION_EXERCISER_Sep74.pdf) - [MAINDEC-11-DZQXA XXDP USER MANUAL (Jul 1976)](http://archive.pcjs.org/pubs/dec/pdp11/diags/MAINDEC-11-DZQXA-I-D_XXDP_User_Manual_Jul76.pdf) -- [CEKBAD0 11/70 CPU #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AH-7963D-MC_CEKBAD0_1170_CPU_1_May80.pdf) -- [CEKBBF0 11/70 CPU #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AH-7968F-MC_CEKBBF0_1170_CPU_2_May80.pdf) +- [CEKBAD0 11/70 CPU #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7962D-MC_CEKBAD0_1170_CPU_1_May80.pdf) +- [CEKBBF0 11/70 CPU #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7966F-MC_CEKBBF0_1170_CPU_2_May80.pdf) +- [CEKBCD0 11/70 CACHE #1 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-0009D-MC_CEKBCD0_1170_CACHE_1_May80.pdf) +- [CEKBDE0 11/70 CACHE #2 (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7971E-MC_CEKBDE0_1170_CACHE_2_May80.pdf) - [CEKBEE0 11/70 MEM MGMT (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7975E-MC_CEKBEE0_1170_MEM_MGMT_May80.pdf) +- [CEKBFD0 11/70 UNIBUS MAP (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7979D-MC_CEKBFD0_1170_UNIBUS_MAP_May80.pdf) +- [CEMJAD0 11/70 MEM TST (Feb 1979)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7990D-MC_CEMJAD0_1170_MEM_TST_Feb79.pdf) +- [CEQKCE0 11/70 INSTRUCTION EXERCISER (May 1980)](http://archive.pcjs.org/pubs/dec/pdp11/diags/AC-7994E-MC_CEQKCE0_1170_INSTRUCTION_EXERCISER_May80.pdf) The *MAINDEC-11-DZQAB MAINDEC USER REFERENCE MANUAL (Oct 1973)* was particularly useful for understanding DEC's [Paper Tape Diagnostics](/apps/pdp11/tapes/diags/). diff --git a/versions/pdpjs/1.31.0/pdp11-dbg.js b/versions/pdpjs/1.31.0/pdp11-dbg.js index 67e0d3666..65a8f9d81 100644 --- a/versions/pdpjs/1.31.0/pdp11-dbg.js +++ b/versions/pdpjs/1.31.0/pdp11-dbg.js @@ -194,8 +194,8 @@ G(this)};h.kd=function(a){if(!this.v){var b=Pd(this.I,"connection");if(b){var c= h.qa=function(a,b){if(!b)if(this.kd(this.H),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};h.za=function(a){return a?this.save():!0};h.reset=function(){sh(this)};h.save=function(){var a=new ie(this);a.set(0,[]);return a.data()};h.restore=function(){return sh(this)};function sh(a){a.G=0;a.b=8192;a.g=128;a.j=[];return!0} h.cc=function(a){if("number"==typeof a)this.j.push(a);else if("string"==typeof a)for(var b=0,c,d=0;d":String.fromCharCode(b);var c=a.length;32>b&&1==c&&(c=0);9==b&&(b=this.V||8,c=b-this.B%b,this.V&&(a=ta("",c)));this.U&&!this.B&&c&&(a=String.fromCharCode(this.U)+a);this.i.value+=a;this.i.scrollTop=this.i.scrollHeight;this.B+=c}}else if(null!=this.w){if(10==b|| -1024<=this.w.length)this.u(this.w),this.w="";10!=b&&(this.w+=String.fromCharCode(b))}Zc(this.f,this.X,1E3/Math.round(this.aa/10));this.g&=-129};var qh="buffer",th={},rh=(th[65392]=[null,null,ph.prototype.xe,ph.prototype.Gf,"RCSR"],th[65394]=[null,null,ph.prototype.we,ph.prototype.Ff,"RBUF"],th[65396]=[null,null,ph.prototype.cf,ph.prototype.lg,"XCSR"],th[65398]=[null,null,ph.prototype.bf,ph.prototype.kg,"XBUF"],th); +h.kg=function(a){a&=255;I(this,"transmitByte("+v(a,2,!0)+")");this.M&&this.M.call(this.v,a);a&=127;if(this.i)if(13==a)this.B=0;else if(8==a)this.i.value=this.i.value.slice(0,-1),0":String.fromCharCode(a);var c=b.length;32>a&&1==c&&(c=0);9==a&&(a=this.V||8,c=a-this.B%a,this.V&&(b=ta("",c)));this.U&&!this.B&&c&&(b=String.fromCharCode(this.U)+b);this.i.value+=b;this.i.scrollTop=this.i.scrollHeight;this.B+=c}}else if(null!=this.w){if(10== +a||1024<=this.w.length)this.u(this.w),this.w="";10!=a&&(this.w+=String.fromCharCode(a))}Zc(this.f,this.X,1E3/Math.round(this.aa/10));this.g&=-129};var qh="buffer",th={},rh=(th[65392]=[null,null,ph.prototype.xe,ph.prototype.Gf,"RCSR"],th[65394]=[null,null,ph.prototype.we,ph.prototype.Ff,"RBUF"],th[65396]=[null,null,ph.prototype.cf,ph.prototype.lg,"XCSR"],th[65398]=[null,null,ph.prototype.bf,ph.prototype.kg,"XBUF"],th); Ua(function(){for(var a=D(document,"pdp11","serial"),b=0;b'+b+"");a.innerHTML=b}},!0;case "descTape":return this.C[b]=c,!0;case "readTape":e=xh;case "loadTape":return e||(e=yh),this.C[b]=c,c.onclick= diff --git a/versions/pdpjs/1.31.0/pdp11.js b/versions/pdpjs/1.31.0/pdp11.js index 3105049b7..328d48775 100644 --- a/versions/pdpjs/1.31.0/pdp11.js +++ b/versions/pdpjs/1.31.0/pdp11.js @@ -178,8 +178,8 @@ h.Bc=function(a){if(!this.h){var b=Bc(this.A,"connection");if(b){var c=b.split(" h.Y=function(a,b){if(!b)if(this.Bc(this.u),!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};h.ga=function(a){return a?this.save():!0};h.reset=function(){pf(this)};h.save=function(){var a=new R(this);a.set(0,[]);return a.data()};h.restore=function(){return pf(this)};function pf(a){a.o=0;a.a=8192;a.b=128;a.g=[];return!0} h.Gb=function(a){if("number"==typeof a)this.g.push(a);else if("string"==typeof a)for(var b=0,c,d=0;d":String.fromCharCode(b);var c=a.length;32>b&&1==c&&(c=0);9==b&&(b=this.M||8,c=b-this.m%b,this.M&&(a=" ".slice(0,c)));this.K&&!this.m&&c&&(a=String.fromCharCode(this.K)+a);this.f.value+=a;this.f.scrollTop=this.f.scrollHeight;this.m+=c}}else if(null!=this.i){if(10== -b||1024<=this.i.length)this.U(this.i),this.i="";10!=b&&(this.i+=String.fromCharCode(b))}bc(this.c,this.W,1E3/Math.round(this.da/10));this.b&=-129};var nf="buffer",qf={},of=(qf[65392]=[null,null,Z.prototype.Sd,Z.prototype.$e,"RCSR"],qf[65394]=[null,null,Z.prototype.Rd,Z.prototype.Ze,"RBUF"],qf[65396]=[null,null,Z.prototype.we,Z.prototype.Gf,"XCSR"],qf[65398]=[null,null,Z.prototype.ve,Z.prototype.Ff,"XBUF"],qf); +h.Ff=function(a){a&=255;this.C&&this.C.call(this.h,a);a&=127;if(this.f)if(13==a)this.m=0;else if(8==a)this.f.value=this.f.value.slice(0,-1),0":String.fromCharCode(a);var c=b.length;32>a&&1==c&&(c=0);9==a&&(a=this.M||8,c=a-this.m%a,this.M&&(b=" ".slice(0,c)));this.K&&!this.m&&c&&(b=String.fromCharCode(this.K)+b);this.f.value+=b;this.f.scrollTop=this.f.scrollHeight;this.m+=c}}else if(null!= +this.i){if(10==a||1024<=this.i.length)this.U(this.i),this.i="";10!=a&&(this.i+=String.fromCharCode(a))}bc(this.c,this.W,1E3/Math.round(this.da/10));this.b&=-129};var nf="buffer",qf={},of=(qf[65392]=[null,null,Z.prototype.Sd,Z.prototype.$e,"RCSR"],qf[65394]=[null,null,Z.prototype.Rd,Z.prototype.Ze,"RBUF"],qf[65396]=[null,null,Z.prototype.we,Z.prototype.Gf,"XCSR"],qf[65398]=[null,null,Z.prototype.ve,Z.prototype.Ff,"XBUF"],qf); Ea(function(){for(var a=F(document,"pdp11","serial"),b=0;b'+b+"");a.innerHTML=b}},!0;case "descTape":return this.j[b]=c,!0;case "readTape":e=uf;case "loadTape":return e||(e=vf),this.j[b]=c,c.onclick=