aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-06-25 02:05:48 +0200
committerArisotura <thetotalworm@gmail.com>2019-06-25 02:05:48 +0200
commit49b2f8d9694d7f91ad4d735a95044dee6828aec9 (patch)
tree2e8344976f8267e2f360c159e1ba662e3f831c5e /src
parente2dc98d1449c3e6682837f04eda60814f8d6a5fc (diff)
raise kMaxIterationCycles to 64
Diffstat (limited to 'src')
-rw-r--r--src/GPU2D.cpp5
-rw-r--r--src/NDS.cpp2
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;