Cleaned up the SerialPort (formerly tty) logic a bit

This commit is contained in:
Jeff 2016-10-05 12:41:14 -07:00 • committed by Jeff Parsons
commit 086ef51588
6 changed files with 482 additions and 449 deletions

View file

@ -644,7 +644,6 @@ CPUStatePDP11.prototype.checkInterruptQueue = function()
this.opFlags |= PDP11.OPFLAG.INTQ;
break; // Decrement only one delay 'difference' per cycle
}
//if (typeof this.interruptQueue[i].callback !== "undefined") {
if (this.interruptQueue[i].callback) {
if (!this.interruptQueue[i].callback()) {
this.interruptQueue.splice(i, 1);