Fixed Panel update on a reset

This commit is contained in:
Jeff Parsons 2017-01-26 11:28:59 -08:00 committed by Jeff Parsons
commit 284c2cd76b
5 changed files with 321 additions and 319 deletions

View file

@ -137,12 +137,14 @@ class RAMPDP11 extends Component {
*/
delete this.aSymbols;
}
/*
* The Computer powers up the CPU last, at which point CPUState state is restored,
* which includes the Bus state, and since we use the Bus to allocate all our memory,
* memory contents are already restored for us, so we don't need the usual restore
* logic.
*/
if (!fRepower) {
/*
* Since we use the Bus to allocate all our memory, memory contents are already restored for us,
* so we don't save any state, and therefore no state should be restored. Just do a reset().
*/
this.assert(!data);
this.reset();
}
return true;
}