mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-27 00:07:10 +00:00
Implementing the CLC/CLI/CLD/CLV
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user