1#ifndef YAZE_APP_EMU_APU_H_
2#define YAZE_APP_EMU_APU_H_
18using namespace memory;
61 uint8_t
SpcRead(uint16_t address);
62 void SpcWrite(uint16_t address, uint8_t data);
67 uint8_t
Read(uint16_t address);
68 void Write(uint16_t address, uint8_t data);
76 std::vector<uint8_t>
ram = std::vector<uint8_t>(0x10000, 0);
88 [&](uint16_t adr, uint8_t val) {
SpcWrite(adr, val); },
89 [&](uint16_t adr) {
return SpcRead(adr); },
90 [&](
bool waiting) {
SpcIdle(waiting); },
The Apu class represents the Audio Processing Unit (APU) of a system.
void SpcWrite(uint16_t address, uint8_t data)
uint8_t Read(uint16_t address)
void SpcIdle(bool waiting)
uint8_t SpcRead(uint16_t address)
void Write(uint16_t address, uint8_t data)
std::array< Timer, 3 > timer_
std::array< uint8_t, 6 > in_ports_
std::array< uint8_t, 4 > out_ports_
std::vector< uint8_t > ram
void RunCycles(uint64_t cycles)
auto spc700() -> Spc700 &
The Spc700 class represents the SPC700 processor.
Implementation of the Memory interface for emulating memory in a SNES system.
struct yaze::app::emu::audio::Timer Timer