Bumped version to 1.30 in honor of the PDP11 module that's being integrated, along with my first attempt to use a newer version of the Closure Compiler (ie, the JavaScript version), as well as giving Gulp a try -- although Gulp leaves just as bad a taste in my mouth as Grunt did

This commit is contained in:
Jeff Parsons 2016-09-13 15:33:16 -07:00
commit 3bd02c7e19
298 changed files with 16473 additions and 3885 deletions

View file

@ -63,8 +63,8 @@ function C1PCPU(parmsCPU)
Component.call(this, "C1PCPU", parmsCPU);
this.clearRegs();
this.flags.fPowered = false;
this.flags.fRunning = false;
this.flags.powered = false;
this.flags.running = false;
this.fAutoStart = parmsCPU["autoStart"];
/*
@ -488,7 +488,7 @@ Component.subclass(C1PCPU);
*/
C1PCPU.prototype.reset = function(fPowerOn)
{
if (this.flags.fRunning) {
if (this.flags.running) {
this.halt();
}
this.clearRegs();
@ -523,7 +523,7 @@ C1PCPU.prototype.setBinding = function(sHTMLType, sBinding, control, sValue)
this.bindings[sBinding] = control;
control.onclick = function(cpu) {
return function() {
if (!cpu.flags.fRunning) {
if (!cpu.flags.running) {
cpu.run();
} else {
cpu.halt();
@ -587,7 +587,7 @@ C1PCPU.prototype.setBuffer = function(abMemory, start, end)
*/
C1PCPU.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
if (fOn && !this.flags.powered) {
this.cmp = cmp;
/*
* Attach the Debugger, if any, to the CPU, so that the CPU can periodically
@ -615,7 +615,7 @@ C1PCPU.prototype.setPower = function(fOn, cmp)
};
}(video);
}
this.flags.fPowered = true;
this.flags.powered = true;
this.reset(true);
this.update();
}
@ -888,7 +888,7 @@ C1PCPU.prototype.displayStatus = function()
*/
C1PCPU.prototype.isRunning = function()
{
return this.flags.fRunning;
return this.flags.running;
};
/**
@ -1059,7 +1059,7 @@ C1PCPU.prototype.run = function()
if (this.cmp) this.cmp.stop(this.msRunStart, this.nRunCycles);
return;
}
if (!this.flags.fRunning) {
if (!this.flags.running) {
/*
* setSpeed() without a speed parameter leaves the selected speed in place, but also resets the
* cycle counter and timestamp for the current series of run() calls, calculates the maximum number
@ -1068,7 +1068,7 @@ C1PCPU.prototype.run = function()
*/
this.setSpeed();
if (this.cmp) this.cmp.start();
this.flags.fRunning = true;
this.flags.running = true;
if (this.bindings["run"]) this.bindings["run"].innerHTML = "Halt";
this.setFocus();
}
@ -1115,7 +1115,7 @@ C1PCPU.prototype.run = function()
this.nCyclesNextYield += this.nCyclesPerYield;
break;
}
} while (this.flags.fRunning);
} while (this.flags.running);
}
catch (e) {
this.halt();
@ -1276,8 +1276,8 @@ C1PCPU.prototype.halt = function()
this.isBusy(true);
this.nBurstCycles -= this.nStepCycles;
this.nStepCycles = 0;
if (this.flags.fRunning) {
this.flags.fRunning = false;
if (this.flags.running) {
this.flags.running = false;
if (this.bindings["run"]) this.bindings["run"].innerHTML = "Run";
}
};
@ -1311,7 +1311,7 @@ C1PCPU.prototype.update = function()
*/
C1PCPU.prototype.getCycles = function()
{
return (this.flags.fRunning? this.nRunCycles + this.nBurstCycles - this.nStepCycles : 0);
return (this.flags.running? this.nRunCycles + this.nBurstCycles - this.nStepCycles : 0);
};
/**

View file

@ -586,8 +586,8 @@ if (DEBUGGER) {
*/
C1PDebugger.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
this.cpu = cmp.getComponentByType("cpu");
}
};

View file

@ -222,7 +222,7 @@ function C1PDiskController(parmsDC)
{
Component.call(this, "C1PDiskController", parmsDC);
this.flags.fPowered = false;
this.flags.powered = false;
/*
* Our DiskController simulates the combination of an MC6820 PIA and an MC6850 ACIA.
@ -743,8 +743,8 @@ C1PDiskController.prototype.setBuffer = function(abMemory, start, end, cpu)
*/
C1PDiskController.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
if (DEBUGGER) this.dbg = cmp.getComponentByType("debugger");
}
};

View file

@ -127,7 +127,7 @@ function C1PKeyboard(parmsKbd)
{
Component.call(this, "C1PKeyboard", parmsKbd);
this.flags.fPowered = false;
this.flags.powered = false;
this.nDefaultModel = parmsKbd['model'];
/*
@ -521,8 +521,8 @@ C1PKeyboard.prototype.setModel = function(nModel)
*/
C1PKeyboard.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
this.cmp = cmp;
if (DEBUGGER) this.dbg = cmp.getComponentByType("debugger");
}

View file

@ -48,7 +48,7 @@ function C1PPanel(parmsPanel)
{
Component.call(this, "C1PPanel", parmsPanel);
this.flags.fPowered = false;
this.flags.powered = false;
}
Component.subclass(C1PPanel);
@ -81,8 +81,8 @@ C1PPanel.prototype.setBinding = function(sHTMLType, sBinding, control, sValue)
*/
C1PPanel.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
this.cmp = cmp;
this.cpu = cmp.getComponentByType("cpu");
this.kbd = cmp.getComponentByType("keyboard");

View file

@ -118,8 +118,8 @@ C1PROM.prototype.setBuffer = function(abMemory, start, end, cpu)
*/
C1PROM.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
if (DEBUGGER) this.dbg = cmp.getComponentByType("debugger");
}
};

View file

@ -49,7 +49,7 @@ function C1PSerialPort(parmsSerial)
{
Component.call(this, "C1PSerialPort", parmsSerial);
this.flags.fPowered = false;
this.flags.powered = false;
this.fDemo = parmsSerial['demo'];
this.reset(true);
@ -217,8 +217,8 @@ C1PSerialPort.prototype.setBuffer = function(abMemory, start, end, cpu)
*/
C1PSerialPort.prototype.setPower = function(fOn, cmp)
{
if (fOn && !this.flags.fPowered) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered) {
this.flags.powered = true;
this.cmp = cmp;
this.kbd = cmp.getComponentByType("keyboard");
if (DEBUGGER) this.dbg = cmp.getComponentByType("debugger");

View file

@ -346,8 +346,8 @@ C1PVideo.prototype.setPower = function(fOn, cmp)
* it ourselves, too. This also means that updateScreen() need check only fPower and not isReady(),
* since we guarantee that the former implies the latter.
*/
if (fOn && !this.flags.fPowered && this.isReady()) {
this.flags.fPowered = true;
if (fOn && !this.flags.powered && this.isReady()) {
this.flags.powered = true;
if (DEBUGGER) this.dbg = cmp.getComponentByType("debugger");
/*
* If we have an associated keyboard, then ensure that the keyboard will be notified whenever
@ -366,8 +366,8 @@ C1PVideo.prototype.setPower = function(fOn, cmp)
}
}
else
if (!fOn && this.flags.fPowered) {
this.flags.fPowered = false;
if (!fOn && this.flags.powered) {
this.flags.powered = false;
/*
* This is where we would add some method of blanking the display, without the disturbing the video
* buffer contents, and blocking all further updates to the display.
@ -481,7 +481,7 @@ C1PVideo.prototype.initScreen = function()
C1PVideo.prototype.updateScreen = function()
{
var offset = 0;
if (this.flags.fPowered) {
if (this.flags.powered) {
while (offset < this.cbScreen) {
var b = this.abMem[this.offVideo + offset];
if (this.abScreen[offset] != b) {