mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-09 20:59:06 +00:00
Merge branch 'master' of github.com:AnonymusRaccoon/ComSquare into APU
This commit is contained in:
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user