Changed the RESET button to *not* autoStart a machine when a Debugger is present, so that the Debugger can "cleanly" load bootstrap sequences and boot without side-effects (eg, unexpected interrupts)

This commit is contained in:
Jeff Parsons 2017-02-04 12:22:50 -08:00 • committed by Jeff Parsons
commit 4be8640af8
8 changed files with 250 additions and 54 deletions

View file

@ -588,11 +588,13 @@ 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.flags.powered) {
this.flags.autoStart = true;
}
else if (!this.flags.running) {
this.startCPU();
if (!this.dbg) {
if (!this.flags.powered) {
this.flags.autoStart = true;
}
else if (!this.flags.running) {
this.startCPU();
}
}
}
else {