More 8080 opcodes
This commit is contained in:
parent
4173aaca31
commit
978d59efbf
7 changed files with 498 additions and 283 deletions
|
|
@ -660,6 +660,36 @@ CPUSim.prototype.setIF = function()
|
|||
this.regPS |= CPUDef.PS.IF;
|
||||
};
|
||||
|
||||
/**
|
||||
* updateAF(fAuxCarry)
|
||||
*
|
||||
* @this {CPUSim}
|
||||
* @param {boolean} fAuxCarry
|
||||
*/
|
||||
CPUSim.prototype.updateAF = function(fAuxCarry)
|
||||
{
|
||||
if (fAuxCarry) {
|
||||
this.setAF();
|
||||
} else {
|
||||
this.clearAF();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* updateCF(fCarry)
|
||||
*
|
||||
* @this {CPUSim}
|
||||
* @param {boolean} fCarry
|
||||
*/
|
||||
CPUSim.prototype.updateCF = function(fCarry)
|
||||
{
|
||||
if (fCarry) {
|
||||
this.resultZeroCarry |= 0x100;
|
||||
} else {
|
||||
this.resultZeroCarry &= ~0x100;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* getPS()
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue