Fix DAS instruction (found with kvm-unit-test)

This commit is contained in:
copy 2017-03-21 17:28:24 -05:00
parent 7fa7bbcb12
commit cba0826785

View file

@ -698,7 +698,7 @@ CPU.prototype.bcd_das = function()
{
this.reg8[reg_al] -= 6;
this.flags |= flag_adjust;
this.flags = this.flags & ~1 | old_cf | this.reg8[reg_al] >> 7;
this.flags = this.flags & ~1 | old_cf | (old_al < 6);
}
else
{