mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-27 16:21:53 +00:00
Changing timing management
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user