Added more PDP-11 diagnostic tapes
This commit is contained in:
parent
d94ae4c655
commit
9bc4f81eda
10 changed files with 318 additions and 23 deletions
|
|
@ -288,12 +288,13 @@ MarkOut.prototype.getBuildOptions = function()
|
|||
* generateID(sText)
|
||||
*
|
||||
* Generate an ID from the given text, by basically converting it to lower case, converting anything
|
||||
* that's not a letter or a digit to a hyphen (-), and stripping all leading and trailing hyphens from
|
||||
* that's not a letter or a digit to a dash (-), and stripping all leading and trailing dashes from
|
||||
* the result. Furthermore, if the generated ID is not unique (among the set of ALL generated IDs),
|
||||
* then no ID is produced.
|
||||
*
|
||||
* UPDATE: Revised the algorithm to be more Jekyll-like (ie, REMOVING anything not a letter or digit or
|
||||
* space, then removing any leading or trailing spaces, and then replacing any remaining spaces with a hyphen).
|
||||
* space or dash, then removing any leading or trailing spaces, and then replacing any remaining spaces
|
||||
* with a dash).
|
||||
*
|
||||
* @this {MarkOut}
|
||||
* @param {string} sText
|
||||
|
|
@ -301,7 +302,7 @@ MarkOut.prototype.getBuildOptions = function()
|
|||
*/
|
||||
MarkOut.prototype.generateID = function(sText)
|
||||
{
|
||||
var sID = sText.replace(/[^A-Z0-9 ]+/gi, '').replace(/^ +| +$/g, '').replace(/ +/g, '-').toLowerCase();
|
||||
var sID = sText.replace(/[^A-Z0-9 -]+/gi, '').replace(/^ +| +$/g, '').replace(/ +/g, '-').toLowerCase();
|
||||
if (this.aIDs.indexOf(sID) < 0) {
|
||||
this.aIDs.push(sID);
|
||||
return sID;
|
||||
|
|
@ -535,7 +536,7 @@ MarkOut.prototype.convertMD = function(sIndent)
|
|||
}
|
||||
|
||||
/*
|
||||
* Convert all lone series of three or more hyphens/underscores/asterisks into horizontal rules.
|
||||
* Convert all lone series of three or more dashes/underscores/asterisks into horizontal rules.
|
||||
*/
|
||||
sMD = sMD.replace(/(^|\n\n+)(-\s*-\s*-+|_\s*_\s*_+|\*\s*\*\s*\*+)\s*(\n\n+|$)+/g, "$1<hr/>$3");
|
||||
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ BusPDP11.IOController = {
|
|||
}
|
||||
bus.fault(addr, PDP11.CPUERR.TIMEOUT, PDP11.ACCESS.READ_BYTE);
|
||||
b = 0xff;
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(afn[BusPDP11.IOHANDLER.MSG_CATEGORY])) {
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(MessagesPDP11.BUS)) {
|
||||
this.dbg.printMessage("warning: unconverted read access to byte @" + this.dbg.toStrBase(addr) + ": " + this.dbg.toStrBase(b), true, !bus.nDisableFaults);
|
||||
}
|
||||
return b;
|
||||
|
|
@ -360,6 +360,7 @@ BusPDP11.IOController = {
|
|||
* then presumably the handler is prepared for it (certainly, writeROMByte() is).
|
||||
*/
|
||||
afn[BusPDP11.IOHANDLER.WRITE_BYTE](b, addrMasked);
|
||||
fWrite = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -370,7 +371,7 @@ BusPDP11.IOController = {
|
|||
return;
|
||||
}
|
||||
bus.fault(addr, PDP11.CPUERR.TIMEOUT, PDP11.ACCESS.WRITE_BYTE);
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(afn[BusPDP11.IOHANDLER.MSG_CATEGORY])) {
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(MessagesPDP11.BUS)) {
|
||||
this.dbg.printMessage("warning: unconverted write access to byte @" + this.dbg.toStrBase(addr) + ": " + this.dbg.toStrBase(b), true, !bus.nDisableFaults);
|
||||
}
|
||||
},
|
||||
|
|
@ -410,7 +411,7 @@ BusPDP11.IOController = {
|
|||
}
|
||||
bus.fault(addr, PDP11.CPUERR.TIMEOUT, PDP11.ACCESS.READ_WORD);
|
||||
w = 0xffff;
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(afn[BusPDP11.IOHANDLER.MSG_CATEGORY])) {
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(MessagesPDP11.BUS)) {
|
||||
this.dbg.printMessage("warning: unconverted read access to word @" + this.dbg.toStrBase(addr) + ": " + this.dbg.toStrBase(w), true, !bus.nDisableFaults);
|
||||
}
|
||||
return w;
|
||||
|
|
@ -453,7 +454,7 @@ BusPDP11.IOController = {
|
|||
return;
|
||||
}
|
||||
bus.fault(addr, PDP11.CPUERR.TIMEOUT, PDP11.ACCESS.WRITE_WORD);
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(afn[BusPDP11.IOHANDLER.MSG_CATEGORY])) {
|
||||
if (DEBUGGER && this.dbg && this.dbg.messageEnabled(MessagesPDP11.BUS)) {
|
||||
this.dbg.printMessage("warning: unconverted write access to word @" + this.dbg.toStrBase(addr) + ": " + this.dbg.toStrBase(w), true, !bus.nDisableFaults);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue