Adding internal registers for the CPU

This commit is contained in:
AnonymusRaccoon
2020-01-28 11:48:13 +01:00
parent ab71231fd8
commit 208d1b14d6
12 changed files with 215 additions and 61 deletions

View File

@@ -3,10 +3,34 @@
//
#include "CPU.hpp"
#include "../Exceptions/NotImplementedException.hpp"
namespace ComSquare::CPU
{
CPU::CPU(std::shared_ptr<ComSquare::MemoryBus> bus)
: _bus(bus)
{ }
uint8_t CPU::read(uint24_t addr)
{
(void)addr;
throw NotImplementedException();
}
void CPU::write(uint24_t addr, uint8_t data)
{
(void)addr;
(void)data;
throw NotImplementedException();
}
int CPU::update()
{
throw NotImplementedException();
}
int CPU::executeInstruction()
{
throw NotImplementedException();
}
}