Cleaned up interrupt handling, register initialization, MMU initialization, etc
This commit is contained in:
parent
1e1388b9ca
commit
3497466113
8 changed files with 1642 additions and 1620 deletions
|
|
@ -1087,8 +1087,12 @@ CPUPDP11.prototype.runCPU = function(fUpdateFocus)
|
|||
this.stepCPU(nCyclesPerBurst);
|
||||
}
|
||||
catch(exception) {
|
||||
/*
|
||||
* We assume that any numeric exception was explicitly thrown by the CPU to interrupt the
|
||||
* current instruction (and by extension, the current burst, but not the current run). All
|
||||
* other exceptions are re-thrown to the catch below, which will attempt a stack dump.
|
||||
*/
|
||||
if (typeof exception != "number") throw exception;
|
||||
if (DEBUG) this.println("CPU exception: " + str.toHexWord(exception));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue