Blog post

This commit is contained in:
Jeff Parsons 2016-04-30 08:33:26 -07:00
commit 69c6c074f9
4 changed files with 84 additions and 19 deletions

View file

@ -851,7 +851,7 @@ CPUSim.prototype.subByte = function(src)
*/
CPUSim.prototype.subByteBorrow = function(src)
{
src ^= 0xff
src ^= 0xff;
this.resultAuxOverflow = this.regA ^ src;
return this.resultParitySign = (this.resultZeroCarry = (this.regA + src + ((this.resultZeroCarry & 0x100)? 0 : 1)) ^ 0x100) & 0xff;
};