diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-06-25 02:05:48 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-06-25 02:05:48 +0200 |
commit | 49b2f8d9694d7f91ad4d735a95044dee6828aec9 (patch) | |
tree | 2e8344976f8267e2f360c159e1ba662e3f831c5e /src | |
parent | e2dc98d1449c3e6682837f04eda60814f8d6a5fc (diff) |
raise kMaxIterationCycles to 64
Diffstat (limited to 'src')
-rw-r--r-- | src/GPU2D.cpp | 5 | ||||
-rw-r--r-- | src/NDS.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
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; |