Scriptable machine improvements (including support for sleep)
This commit is contained in:
parent
033f0bf212
commit
112c0e88c6
55 changed files with 15397 additions and 1381 deletions
|
|
@ -588,13 +588,11 @@ class CPUStatePDP11 extends CPUPDP11 {
|
|||
this.regsGen[0] = bUnit || 0;
|
||||
for (var i = 1; i <= 5; i++) this.regsGen[i] = 0;
|
||||
this.regsGen[6] = addrStack || 0o2000;
|
||||
if (!this.dbg) {
|
||||
if (!this.flags.powered) {
|
||||
this.flags.autoStart = true;
|
||||
}
|
||||
else if (!this.flags.running) {
|
||||
this.startCPU();
|
||||
}
|
||||
if (!this.flags.powered) {
|
||||
this.flags.autoStart = true;
|
||||
}
|
||||
else if (!this.flags.running) {
|
||||
this.startCPU();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
@ -608,7 +606,7 @@ class CPUStatePDP11 extends CPUPDP11 {
|
|||
* we should probably force a complete reset, but for now, it's up to the user to hit the reset button
|
||||
* themselves.
|
||||
*/
|
||||
if (!this.stopCPU()) {
|
||||
if (!this.stopCPU() && !this.cmp.flags.reset) {
|
||||
this.dbg.updateStatus();
|
||||
this.cmp.updateDisplays(-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue