Scriptable machine improvements (including support for sleep)

This commit is contained in:
Jeff Parsons 2017-02-06 12:03:20 -08:00 committed by Jeff Parsons
commit 112c0e88c6
55 changed files with 15397 additions and 1381 deletions

View file

@ -961,6 +961,7 @@ class ComputerPDP11 extends Component {
*/
reset()
{
this.flags.reset = true;
if (this.bus && this.bus.reset) {
this.printMessage("Resetting " + this.bus.type);
this.bus.reset();
@ -977,6 +978,7 @@ class ComputerPDP11 extends Component {
component.reset();
}
}
this.flags.reset = false;
this.updateDisplays(-1);
}