Started working on save/restore support for the PDP-11; still a lot of state left to capture, but the basics seem to be working

This commit is contained in:
Jeff Parsons 2016-12-31 16:07:33 -08:00 committed by Jeff Parsons
commit ee45dbd8cf
7 changed files with 679 additions and 612 deletions

View file

@ -244,7 +244,7 @@ class CPUPDP11 extends Component {
}
if (!fRepower) {
if (!data || !this.restore) {
if (!data) {
this.reset();
} else {
this.resetCycles();
@ -291,12 +291,6 @@ class CPUPDP11 extends Component {
*/
powerDown(fSave, fShutdown)
{
/*
* The Computer component (which is responsible for all powerDown and powerUp notifications)
* is now responsible for managing a component's fPowered flag, not us.
*
* this.flags.powered = false;
*/
return fSave? this.save() : true;
}