getCycles() should never return a negative number (and OR'ing with zero can do just that)
This commit is contained in:
parent
a0d89e5071
commit
1414c99aa2
1 changed files with 1 additions and 1 deletions
|
|
@ -690,7 +690,7 @@ CPU.prototype.calcCycles = function(fRecalc)
|
|||
*/
|
||||
CPU.prototype.getCycles = function(fScaled)
|
||||
{
|
||||
var nCycles = (this.nTotalCycles + this.nRunCycles + this.nBurstCycles - this.nStepCycles)|0;
|
||||
var nCycles = this.nTotalCycles + this.nRunCycles + this.nBurstCycles - this.nStepCycles;
|
||||
if (fScaled && this.aCounts.nCyclesMultiplier > 1 && this.aCounts.mhz > this.aCounts.mhzDefault) {
|
||||
/*
|
||||
* We could scale the current cycle count by the current effective speed (this.aCounts.mhz); eg:
|
||||
|
|
|
|||
Loading…
Reference in a new issue