Assorted improvements to new opcode decoders

This commit is contained in:
Jeff 2016-09-24 15:12:02 -07:00 committed by Jeff Parsons
commit f82d6f1bfa
13 changed files with 861 additions and 610 deletions

View file

@ -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));
}
}