From 49b2f8d9694d7f91ad4d735a95044dee6828aec9 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 25 Jun 2019 02:05:48 +0200 Subject: raise kMaxIterationCycles to 64 --- src/GPU2D.cpp | 5 +++++ src/NDS.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/GPU2D.cpp b/src/GPU2D.cpp index e0da772..3375d45 100644 --- a/src/GPU2D.cpp +++ b/src/GPU2D.cpp @@ -246,6 +246,11 @@ u8 GPU2D::Read8(u32 addr) case 0x049: return WinCnt[1]; case 0x04A: return WinCnt[2]; case 0x04B: return WinCnt[3]; + + // there are games accidentally trying to read those + // those are write-only + case 0x04C: + case 0x04D: return 0; } printf("unknown GPU read8 %08X\n", addr); diff --git a/src/NDS.cpp b/src/NDS.cpp index 37053a4..6272f88 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -69,7 +69,7 @@ u64 FrameStartTimestamp; int CurCPU; -const s32 kMaxIterationCycles = 16; +const s32 kMaxIterationCycles = 64; u32 ARM9ClockShift; -- cgit v1.2.3