Fixing DSP

This commit is contained in:
Melefo
2020-01-28 16:59:59 +01:00
parent b66a214110
commit dbca55e98c
+7
View File
@@ -102,12 +102,19 @@ namespace ComSquare::APU
};
class DSP {
};
class APU : IMemory {
private:
Registers _registers;
InternalRegisters _internalRegisters{};
public:
explicit APU(std::shared_ptr<DSP> dsp);
//! @brief The DSP component used to produce sound
std::shared_ptr<DSP> _dsp;
//! @brief Read from the internal APU register.
//! @param addr The address to read from. The address 0xF0 should refer to the first byte of the register.
//! @throw InvalidAddress will be thrown if the address is more than $FF (the number of register).