implemented background tile fetching

This commit is contained in:
Lauchmelder 2022-03-02 14:59:42 +01:00
parent f4e6198a99
commit e7b78f281f
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
9 changed files with 474 additions and 131 deletions

View file

@ -52,6 +52,15 @@ uint8_t Bus::Tick()
return result;
}
void Bus::PPUTick()
{
if (ppuClock == 0)
cpu.Tick();
ppu.Tick();
ppuClock = (ppuClock + 1) % 3;
}
bool Bus::Instruction()
{
try