mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-21 14:45:10 +00:00
Adding const qualifiers to the IMemory and adding error messages in the memory viewer
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace ComSquare::APU::DSP
|
||||
{
|
||||
uint8_t DSP::read(uint24_t addr)
|
||||
uint8_t DSP::read(uint24_t addr) const
|
||||
{
|
||||
switch (addr) {
|
||||
case 0x00:
|
||||
@@ -579,6 +579,11 @@ namespace ComSquare::APU::DSP
|
||||
}
|
||||
}
|
||||
|
||||
uint24_t DSP::getSize() const
|
||||
{
|
||||
return 0x7F;
|
||||
}
|
||||
|
||||
Registers DSP::getRegisters()
|
||||
{
|
||||
return this->_registers;
|
||||
@@ -589,12 +594,12 @@ namespace ComSquare::APU::DSP
|
||||
return this->_channels;
|
||||
}
|
||||
|
||||
std::string DSP::getName()
|
||||
std::string DSP::getName() const
|
||||
{
|
||||
return "DSP";
|
||||
}
|
||||
|
||||
Component DSP::getComponent()
|
||||
Component DSP::getComponent() const
|
||||
{
|
||||
return Apu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user