Implementing the CLC/CLI/CLD/CLV

This commit is contained in:
AnonymusRaccoon
2020-02-14 16:35:02 +01:00
parent ad11210771
commit 8787b09546
4 changed files with 71 additions and 1 deletions
@@ -112,4 +112,24 @@ namespace ComSquare::CPU
this->_registers.p.z = this->_registers.y == 0;
this->_registers.p.n = this->_registers.y & 0x8000u;
}
void CPU::CLC()
{
this->_registers.p.c = false;
}
void CPU::CLI()
{
this->_registers.p.i = false;
}
void CPU::CLD()
{
this->_registers.p.d = false;
}
void CPU::CLV()
{
this->_registers.p.v = false;
}
}