Laying the groundwork for an attempt at PDP-11 cycle counting (it won't be exact, but it should be close)

This commit is contained in:
Jeff 2016-09-30 12:00:07 -07:00 committed by Jeff Parsons
commit af6b66d2a3
4 changed files with 221 additions and 193 deletions

View file

@ -468,7 +468,7 @@ PDP11.opADCB = function(opCode)
PDP11.opADD = function(opCode)
{
this.updateWordByMode(opCode, this.readWordByMode(opCode >> PDP11.SRCMODE.SHIFT), PDP11.fnADD);
this.nStepCycles -= 1;
this.nStepCycles -= (this.dstMode? (8 + 1) + (this.srcReg && this.dstReg >= 6? 1 : 0) : (this.srcMode? (3 + 2) : (2 + 1) + (this.dstReg == 7? 2 : 0)));
};
/**