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:
parent
1cbcb5b0e2
commit
ee45dbd8cf
7 changed files with 679 additions and 612 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue