mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-24 23:24:54 +00:00
Implementing the REP instruction
This commit is contained in:
@@ -6,8 +6,17 @@
|
||||
|
||||
namespace ComSquare::CPU
|
||||
{
|
||||
void CPU::SEP(uint24_t addr)
|
||||
void CPU::SEP(uint24_t valueAddr)
|
||||
{
|
||||
this->_registers.p.flags |= this->_bus->read(addr);
|
||||
this->_registers.p.flags |= this->_bus->read(valueAddr);
|
||||
}
|
||||
|
||||
void CPU::REP(uint24_t valueAddr)
|
||||
{
|
||||
this->_registers.p.flags &= ~this->_bus->read(valueAddr);
|
||||
if (this->_isEmulationMode) {
|
||||
this->_registers.p.x_b = true;
|
||||
this->_registers.p.m = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user