aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-10-29 21:25:41 +0100
committerGitHub <noreply@github.com>2020-10-29 21:25:41 +0100
commit93664e7611da3f64150e88183d3891b92df139bd (patch)
treeec92bbfc99baed7baa86eca4bd70bec399cfca34
parentc03d83b7befa8586422faebd55f7844db4e7a715 (diff)
parent05e274a1f69b976ae5826e0660f9510c2b3878af (diff)
Merge pull request #798 from Hypnotron/master
Added 8/16-bit IPCFIFOSEND writes
-rw-r--r--src/NDS.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index d42e735..aef4d3c 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -3116,6 +3116,10 @@ void ARM9IOWrite8(u32 addr, u8 val)
NDSCart::WriteSPIData(val);
return;
+ case 0x04000188:
+ ARM9IOWrite32(addr, val | (val << 8) | (val << 16) | (val << 24));
+ return;
+
case 0x040001A8: NDSCart::ROMCommand[0] = val; return;
case 0x040001A9: NDSCart::ROMCommand[1] = val; return;
case 0x040001AA: NDSCart::ROMCommand[2] = val; return;
@@ -3232,6 +3236,10 @@ void ARM9IOWrite16(u32 addr, u16 val)
IPCFIFOCnt9 = val & 0x8404;
return;
+ case 0x04000188:
+ ARM9IOWrite32(addr, val | (val << 16));
+ return;
+
case 0x040001A0:
if (!(ExMemCnt[0] & (1<<11))) NDSCart::WriteSPICnt(val);
return;
@@ -3719,6 +3727,10 @@ void ARM7IOWrite8(u32 addr, u8 val)
case 0x04000138: RTC::Write(val, true); return;
+ case 0x04000188:
+ ARM7IOWrite32(addr, val | (val << 8) | (val << 16) | (val << 24));
+ return;
+
case 0x040001A0:
if (ExMemCnt[0] & (1<<11))
{
@@ -3827,6 +3839,10 @@ void ARM7IOWrite16(u32 addr, u16 val)
IPCFIFOCnt7 = val & 0x8404;
return;
+ case 0x04000188:
+ ARM7IOWrite32(addr, val | (val << 16));
+ return;
+
case 0x040001A0:
if (ExMemCnt[0] & (1<<11))
NDSCart::WriteSPICnt(val);