Started centralizing the set of UNIBUS addresses, and adopted my first ES6 feature: octal constants (not the old-fashioned unofficial leading-zero kind, but the new "0o" kind); I will still use hex instead of octal whenever I can, but UNIBUS addresses are ALWAYS documented as octal, so I'm giving in....
This commit is contained in:
parent
b28166f493
commit
63b0c9c02c
3 changed files with 23 additions and 16 deletions
|
|
@ -615,8 +615,8 @@ CPUStatePDP11.prototype.setPSW = function(newPSW)
|
|||
this.regsAlt[i] = tmp;
|
||||
}
|
||||
}
|
||||
this.mmuMode = (newPSW >> PDP11.PSW.CMODE_SHIFT) & PDP11.MODE.MASK;
|
||||
var oldMode = (this.PSW >> PDP11.PSW.CMODE_SHIFT) & PDP11.MODE.MASK;
|
||||
this.mmuMode = (newPSW >> PDP11.PSW.SHIFT.CMODE) & PDP11.MODE.MASK;
|
||||
var oldMode = (this.PSW >> PDP11.PSW.SHIFT.CMODE) & PDP11.MODE.MASK;
|
||||
if (this.mmuMode != oldMode) {
|
||||
/*
|
||||
* Swap stack pointers
|
||||
|
|
|
|||
Loading…
Reference in a new issue