Apu callback, CPU instruction lengths

This commit is contained in:
scawful
2023-12-03 05:37:42 -05:00
parent a0019ab7fb
commit ca9cc42d6b
3 changed files with 37 additions and 4 deletions

View File

@@ -43,11 +43,14 @@ void APU::Update() {
for (auto i = 0; i < cycles_to_run; ++i) {
// Update the APU
// ...
UpdateChannelSettings();
// Update the SPC700
// ...
uint8_t opcode = spc700_.read(spc700_.PC);
spc700_.ExecuteInstructions(opcode);
}
ProcessSamples();
}
void APU::ProcessSamples() {