This commit is contained in:
Clément Le Bihan
2020-02-14 17:32:13 +01:00
parent 22c31ddf3a
commit b57a0ef92d
3 changed files with 68 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ namespace ComSquare::Ram
uint16_t ExtendedRam::read(uint24_t addr)
{
if (addr >= this->_size)
throw InvalidAddress("ExtendedRam Write", addr);
throw InvalidAddress("ExtendedRam Read", addr);
return this->_data[addr];
}