Adding memory shadow

This commit is contained in:
AnonymusRaccoon
2020-01-28 14:19:16 +01:00
parent 87ecd6c23d
commit 213cf83925
7 changed files with 83 additions and 11 deletions
+5
View File
@@ -13,6 +13,11 @@ namespace ComSquare::Ram
this->_data = new uint8_t[size];
}
Ram::~Ram()
{
delete[] this->_data;
}
uint8_t Ram::read(uint24_t addr)
{
if (addr >= this->_size)