Blog edits

This commit is contained in:
Jeff Parsons 2016-03-16 14:39:56 -07:00
commit 87e275b5f1
51 changed files with 7494 additions and 1276 deletions

View file

@ -40,8 +40,8 @@
* debugger.js from the compilation process altogether.
*
* However, when we're in "development mode" and running uncompiled code in debugger-less configurations,
* I would like to skip loading debugger.js altogether. To do that, we must arrange for this additional file
* (nodebugger.js) to be loaded as early as possible, which *explicitly* overrides the previously defined value
* I would like to skip loading debugger.js altogether. To do that, we must arrange for this additional file,
* nodebugger.js, to be loaded immediately after defines.js, *explicitly* overriding the previously defined value
* of DEBUGGER with *false*.
*/
var DEBUGGER = false;
DEBUGGER = false;

View file

@ -49,9 +49,9 @@ if (NODE) {
*
* multiplier: base cycle multiplier; default is 1.
*
* autoStart: true to automatically start, false to not (default); however,
* in the latter case, we make the final autoStart decision based on whether
* or not a Debugger is installed and/or a "Run" button is present.
* autoStart: true to automatically start, false to not, or null if "it depends";
* null is the default, which means do not autostart UNLESS there is no Debugger
* and no "Run" button (ie, no way to manually start the machine).
*
* csStart: the number of cycles that runCPU() must wait before generating
* checksum records; -1 if disabled. checksum records are a diagnostic aid
@ -200,7 +200,7 @@ CPU.prototype.initBus = function(cmp, bus, cpu, dbg)
* We've already saved the parmsCPU 'autoStart' setting, but there may be a machine (or URL) override.
*/
var sAutoStart = cmp.getMachineParm('autoStart');
if (sAutoStart !== undefined) {
if (sAutoStart != null) {
this.flags.fAutoStart = (sAutoStart == "true"? true : (sAutoStart == "false"? false : !!sAutoStart));
}

View file

@ -93,7 +93,7 @@ var TYPEDARRAYS = (typeof ArrayBuffer !== 'undefined');
* TODO: BACKTRACK support is currently completely disabled until we have a chance to investigate the problem
* discussed in Bus.addBackTrackObject().
*/
var BACKTRACK = !COMPILED && DEBUG;
var BACKTRACK = !COMPILED && DEBUGGER;
/**
* @define {boolean}

View file

@ -41,6 +41,11 @@
*
* However, when we're in "development mode" and running uncompiled code in debugger-less configurations,
* I would still like to skip loading debugger.js altogether. To do that, we must arrange for this additional file,
* nodebugger.js, to be loaded as early as possible, which explicitly UPDATES the value of DEBUGGER to false.
* nodebugger.js, to be loaded immediately after defines.js, *explicitly* overriding the previously defined value
* of DEBUGGER with *false*.
*
* Additionally, we must update any globals that depend on DEBUGGER (currently, BACKTRACK and SYMBOLS).
*/
var DEBUGGER = false;
DEBUGGER = false;
BACKTRACK = !COMPILED && DEBUGGER;
SYMBOLS = DEBUGGER;

View file

@ -565,7 +565,7 @@
<xsl:choose>
<xsl:when test="@autostart"><xsl:value-of select="@autostart"/></xsl:when>
<xsl:when test="@autoStart"><xsl:value-of select="@autoStart"/></xsl:when>
<xsl:otherwise>false</xsl:otherwise>
<xsl:otherwise>null</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="csStart">