Leave the DATA display register alone on the 11/70 (making it more diagnostic-friendly)

This commit is contained in:
Jeff 2016-11-14 15:27:55 -08:00 • committed by Jeff Parsons
commit 0370b81a69
16 changed files with 198 additions and 172 deletions

View file

@ -225,6 +225,17 @@ CPUStatePDP11.prototype.initRegs = function()
this.resetRegs();
};
/**
* resetCPU()
*
* @this {CPUStatePDP11}
*/
CPUStatePDP11.prototype.resetCPU = function()
{
this.bus.reset();
this.resetRegs();
};
/**
* resetRegs()
*
@ -395,9 +406,7 @@ CPUStatePDP11.prototype.setReset = function(addr, fReset)
{
this.addrReset = addr;
/*
* If we're going to slam this new address straight into PC, then it seems wise to reset the PSW as well.
*/
this.resetCPU();
this.setPC(addr);
this.setPSW(0);