Adding implementations of read/write for the CPU's internal registers

This commit is contained in:
AnonymusRaccoon
2020-01-28 13:24:49 +01:00
parent 3c3e7ab87b
commit 8698642636
4 changed files with 165 additions and 13 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ namespace ComSquare
private:
std::string _msg;
public:
explicit InvalidAddress(int32_t addr)
InvalidAddress(std::string where, int32_t addr)
{
std::stringstream stream;
stream << "Could not read/write data at address: 0x" << std::hex << addr;
stream << "Could not read/write data at address: 0x" << std::hex << addr << " from " << where;
this->_msg = stream.str();
}
const char *what() const noexcept override { return this->_msg.c_str(); }