aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-04-28 17:23:18 +0200
committerStapleButter <thetotalworm@gmail.com>2017-04-28 17:23:18 +0200
commit5de98cd48404a59fb5ed0bedc233671f55540960 (patch)
treea731e16e48881811d9c65ef722ae95a950477f5a /src/NDS.cpp
parentecbcf2172a54333347e45b82c1282925fe50e529 (diff)
add 32bit write to DIVCNT and SQRTCNT
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 626ce3d..18a6f46 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -1878,6 +1878,10 @@ void ARM9IOWrite32(u32 addr, u32 val)
GPU::MapVRAM_I(8, (val >> 8) & 0xFF);
return;
+ case 0x04000280: DivCnt = val; StartDiv(); return;
+
+ case 0x040002B0: SqrtCnt = val; StartSqrt(); return;
+
case 0x04000290: DivNumerator[0] = val; StartDiv(); return;
case 0x04000294: DivNumerator[1] = val; StartDiv(); return;
case 0x04000298: DivDenominator[0] = val; StartDiv(); return;