#include <APU.hpp>
◆ APU()
| ComSquare::APU::APU::APU |
( |
| ) |
|
|
explicit |
◆ read()
| uint8_t ComSquare::APU::APU::read |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
Read from the internal APU register.
- Parameters
-
| addr | The address to read from. The address 0xF0 should refer to the first byte of the register. |
- Exceptions
-
| InvalidAddress | will be thrown if the address is more than $FF (the number of register). |
- Returns
- Return the value of the register.
Implements ComSquare::Memory::IMemory.
◆ update()
| bool ComSquare::APU::APU::update |
( |
| ) |
|
◆ write()
| void ComSquare::APU::APU::write |
( |
uint24_t |
addr, |
|
|
uint8_t |
data |
|
) |
| |
|
overridevirtual |
Write data to the internal APU register.
- Parameters
-
| addr | The address to write to. The address 0xF0 should refer to the first byte of register. |
| data | The new value of the register. |
- Exceptions
-
| InvalidAddress | will be thrown if the address is more than $FF (the number of register). |
Implements ComSquare::Memory::IMemory.
◆ _dsp
| std::shared_ptr<DSP::DSP> ComSquare::APU::APU::_dsp |
|
private |
The DSP component used to produce sound.
◆ _internalRegisters
Internal registers of the CPU (accessible from the bus via addr $4200 to $421F).
◆ _registers
All the registers of the APU CPU.
The documentation for this class was generated from the following files: