Cleaned up management of unused PSW bits

This commit is contained in:
Jeff Parsons 2016-12-04 16:23:37 -08:00 committed by Jeff Parsons
commit 1e1db7b78e
24 changed files with 574 additions and 530 deletions

View file

@ -1736,7 +1736,7 @@ PDP11.opSPL = function(opCode)
return;
}
if (!(this.regPSW & PDP11.PSW.CMODE)) {
this.regPSW = (this.regPSW & ~(PDP11.PSW.UNUSED | PDP11.PSW.PRI)) | ((opCode & 0x7) << PDP11.PSW.SHIFT.PRI);
this.regPSW = (this.regPSW & ~PDP11.PSW.PRI) | ((opCode & 0x7) << PDP11.PSW.SHIFT.PRI);
this.opFlags |= PDP11.OPFLAG.IRQ_DELAY;
this.opFlags &= ~PDP11.OPFLAG.IRQ;
}