Changing timing management

This commit is contained in:
AnonymusRaccoon
2020-02-13 13:55:01 +01:00
parent 475fa68974
commit 4d30a35620
7 changed files with 101 additions and 92 deletions
@@ -0,0 +1,18 @@
//
// Created by anonymus-raccoon on 2/13/20.
//
#include "../CPU.hpp"
namespace ComSquare::CPU
{
void CPU::STA(uint24_t addr)
{
if (this->_registers.p.m)
this->_bus->write(addr, this->_registers.al);
else {
this->_bus->write(addr, this->_registers.al);
this->_bus->write(addr + 1, this->_registers.ah);
}
}
}