Added 'diagnostics' (0, 1, or 2) and 'randomize' (0 or 1) PCx86 machine parameters to control diagnostic message display/prompting and video screen randomization, respectively
This commit is contained in:
parent
7f973a03b9
commit
aac9a13328
7 changed files with 1072 additions and 1023 deletions
|
|
@ -571,7 +571,9 @@ class CPU extends Component {
|
|||
calcCycles()
|
||||
{
|
||||
var nMultiplier = this.counts.mhzCurrent / this.counts.mhzBase;
|
||||
if (!nMultiplier || nMultiplier > this.counts.nTargetMultiplier) nMultiplier = this.counts.nTargetMultiplier;
|
||||
if (!nMultiplier || nMultiplier > this.counts.nTargetMultiplier) {
|
||||
nMultiplier = this.counts.nTargetMultiplier;
|
||||
}
|
||||
this.counts.msPerYield = Math.round(1000 / CPU.YIELDS_PER_SECOND);
|
||||
this.counts.nCyclesPerYield = Math.floor(this.counts.nBaseCyclesPerSecond / CPU.YIELDS_PER_SECOND * nMultiplier);
|
||||
this.counts.nCurrentMultiplier = nMultiplier;
|
||||
|
|
|
|||
Loading…
Reference in a new issue