mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-03 10:26:36 +00:00
Adding memory shadow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user