Fixed 8080 bug exposed by the exerciser (but still a long way from 100% passing)

This commit is contained in:
Jeff Parsons 2016-04-27 15:36:21 -07:00
commit 2a447fa6ae
8 changed files with 1974 additions and 13 deletions

View file

@ -628,7 +628,7 @@ CPUDef.opSTC = function()
CPUDef.opDADSP = function()
{
var w;
this.setSP(w = this.getHL() + this.getSP());
this.setHL(w = this.getHL() + this.getSP());
this.resultZeroCarry = (this.resultZeroCarry & 0xff) | ((w >> 8) & 0x100);
this.nStepCycles -= 10;
};