Emulator: Fake screen scrolling to pass the bootrom

This commit is contained in:
Riyyi
2022-09-01 00:51:35 +02:00
parent 2b7d4dee3d
commit e1eed33410
+8 -1
View File
@@ -27,5 +27,12 @@ void PPU::update()
return; return;
} }
print("PPU update\n"); // print("PPU update\n");
// Increment LY (LCD Y Coordinate)
uint32_t ly_register = Emu::the().readMemory(0xff44) + 1;
if (ly_register >= 154) {
ly_register = 0;
}
Emu::the().writeMemory(0xff44, ly_register);
} }