mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-03 10:26:36 +00:00
Fixing DSP
This commit is contained in:
@@ -102,12 +102,19 @@ namespace ComSquare::APU
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class DSP {
|
||||||
|
};
|
||||||
|
|
||||||
class APU : IMemory {
|
class APU : IMemory {
|
||||||
private:
|
private:
|
||||||
Registers _registers;
|
Registers _registers;
|
||||||
InternalRegisters _internalRegisters{};
|
InternalRegisters _internalRegisters{};
|
||||||
public:
|
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.
|
//! @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.
|
//! @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).
|
//! @throw InvalidAddress will be thrown if the address is more than $FF (the number of register).
|
||||||
|
|||||||
Reference in New Issue
Block a user