Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Removed unneeded Video DEBUG code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpar committed Aug 24, 2016
1 parent c677b6c commit 28d1c2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
19 changes: 0 additions & 19 deletions modules/pc8080/lib/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ function Video8080(parmsVideo, canvas, context, textarea, container)
}

this.ledBindings = {};

if (DEBUG) this.nCyclesPrev = 0;
}

Component.subclass(Video8080);
Expand Down Expand Up @@ -1145,16 +1143,6 @@ Video8080.prototype.updateVT100 = function(fForced)

this.assert(font < 0 || iCell === this.nCellCache);

if (MAXDEBUG && !fForced) {
var nSeconds = Date.now() / 1000;
if ((nSeconds|0) != (this.nUpdateSeconds|0)) {
this.nUpdateNumber = 0;
}
this.nUpdateNumber++;
this.nUpdateSeconds = nSeconds;
this.printMessage("updateVT100(): update #" + this.nUpdateNumber + " at " +this.nUpdateSeconds + " corner=" + str.toHexByte(this.aCellCache[1]) + " cycles=" + this.nCyclesPrev + " delta=" + this.nCyclesDelta);
}

if (!fForced && this.fSkipSingleCellUpdate && cUpdated == 1) {
/*
* We're going to blow off this update, since it comes on the heels of a smooth-scroll that *may*
Expand Down Expand Up @@ -1257,13 +1245,6 @@ Video8080.prototype.updateScreen = function(fForced)
this.nUpdates++;
}

if (DEBUG && !fForced) {
var nCycles = this.cpu.getCycles();
this.nCyclesDelta = nCycles - this.nCyclesPrev;
this.nCyclesPrev = nCycles;
if (MAXDEBUG) this.printMessage("updateScreen(false): clean=" + fClean + ", update=" + fUpdate + ", cycles=" + this.nCyclesPrev + ", delta=" + this.nCyclesDelta);
}

if (!fUpdate) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions versions/pc8080/1.24.1/pc8080-dbg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions versions/pc8080/1.24.1/pc8080.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28d1c2b

Please sign in to comment.