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:
parent
a731313215
commit
af6b66d2a3
4 changed files with 221 additions and 193 deletions
|
|
@ -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)));
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue