Updated some DOS READMEs and made the onReset handler honor the running state of the CPU

This commit is contained in:
Jeff Parsons 2017-06-29 15:27:22 -07:00 committed by Jeff Parsons
commit 85b3aade36
11 changed files with 931 additions and 911 deletions

View file

@ -1471,6 +1471,12 @@ class Computer extends Component {
*/
if (!this.flags.powered || this.nPowerChange) return;
/*
* Whether or not we autoStart on reset should depend at least in part on whether we were running originally.
*/
if (this.cpu) {
this.cpu.flags.autoStart = this.cpu.flags.running;
}
/*
* If this is a "resumable" machine (and it's not using a predefined state), then we overload the reset
* operation to offer an explicit "save or discard" option first. This is currently the only UI we offer to