Assorted improvements to new opcode decoders
This commit is contained in:
parent
a7148a6eb3
commit
f82d6f1bfa
13 changed files with 861 additions and 610 deletions
|
|
@ -1200,6 +1200,9 @@ if (DEBUGGER) {
|
|||
*/
|
||||
if (this.checksEnabled()) this.checkInstruction(this.cpu.getPC(), 0);
|
||||
}
|
||||
/*
|
||||
* For our typically tiny bursts (usually single instructions), mimic what runCPU() does.
|
||||
*/
|
||||
try {
|
||||
var nCyclesStep = this.cpu.stepCPU(nCycles);
|
||||
if (nCyclesStep > 0) {
|
||||
|
|
@ -1214,6 +1217,8 @@ if (DEBUGGER) {
|
|||
var e = exception;
|
||||
this.nCycles = 0;
|
||||
this.cpu.setError(e.stack || e.message);
|
||||
} else {
|
||||
if (DEBUG) this.println("CPU exception: " + str.toHexWord(exception));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue