Update Clock class for cycle accurate components

This commit is contained in:
scawful
2023-08-20 22:30:06 -04:00
parent 2f6c6d414c
commit 2ec43cfb3f
11 changed files with 146 additions and 133 deletions

View File

@@ -13,6 +13,9 @@ namespace emu {
APU::APU(Memory& memory) : memory_(memory) {}
void APU::Init() {
// Set the clock frequency
SetFrequency(kApuClockSpeed);
// Initialize registers
// ...
}
@@ -25,7 +28,7 @@ void APU::Reset() {
// ...
}
void APU::Run(int cycles) {
void APU::Update() {
// ...
}