mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
22 lines
405 B
C++
22 lines
405 B
C++
//
|
|
// Created by anonymus-raccoon on 2/13/20.
|
|
//
|
|
|
|
#include "../CPU.hpp"
|
|
|
|
namespace ComSquare::CPU
|
|
{
|
|
void CPU::SEP(uint24_t valueAddr)
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
} |