Merge branch 'master' of github.com:AnonymusRaccoon/ComSquare into APU

This commit is contained in:
Melefo
2021-06-07 17:45:14 +02:00
30 changed files with 5493 additions and 711 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ namespace ComSquare::Ram
delete[] this->_data;
}
uint8_t Ram::read(uint24_t addr) const
uint8_t Ram::read(uint24_t addr)
{
// TODO read/write after the size of the rom should noop or behave like a mirror. I don't really know.
if (addr >= this->_size)
+1 -1
View File
@@ -34,7 +34,7 @@ namespace ComSquare::Ram
//! @param addr The local address to read from (0x0 should refer to the first byte of this component).
//! @throw This function should thrown an InvalidAddress for address that are not mapped to the component.
//! @return Return the data at the address given as parameter.
uint8_t read(uint24_t addr) const override;
uint8_t read(uint24_t addr) override;
//! @brief Write data to this component.
//! @param addr The local address to write data (0x0 should refer to the first byte of this component).
//! @param data The new data to write.