Update Apu SignalReady, BeginTransfer sequence

This commit is contained in:
scawful
2023-12-05 03:44:39 -05:00
parent b7558371b3
commit d870ba2c9f
2 changed files with 92 additions and 47 deletions

View File

@@ -25,9 +25,6 @@ void APU::Init() {
dsp_.SetSamplePusher(
[this](int16_t sample) { this->PushToAudioBuffer(sample); });
// Initialize registers
SignalReady();
}
void APU::Reset() {
@@ -48,6 +45,7 @@ void APU::Update() {
// Update the SPC700
uint8_t opcode = spc700_.read(spc700_.PC);
spc700_.ExecuteInstructions(opcode);
spc700_.PC++;
}
ProcessSamples();