Fixed the 8080's subByteBorrow(), and improved the Debugger's doDump()
This commit is contained in:
parent
01db9fc39e
commit
a64a6e7e05
3 changed files with 31 additions and 23 deletions
|
|
@ -848,7 +848,7 @@ CPUSim.prototype.subByte = function(src)
|
|||
*/
|
||||
CPUSim.prototype.subByteBorrow = function(src)
|
||||
{
|
||||
src = -(src + (this.resultZeroCarry & 0x100)? 1 : 0) & 0xff;
|
||||
src = -(src + ((this.resultZeroCarry & 0x100)? 1 : 0)) & 0xff;
|
||||
this.resultAuxOverflow = this.regA ^ src;
|
||||
return this.resultParitySign = (this.resultZeroCarry = (this.regA + src) ^ 0x100) & 0xff;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue