aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 18a6f46..6f878ee 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -1192,6 +1192,9 @@ u32 ARM7Read32(u32 addr)
case 0x04000000:
return ARM7IORead32(addr);
+ case 0x04800000:
+ return Wifi::Read(addr) | (Wifi::Read(addr+2) << 16);
+
case 0x06000000:
case 0x06800000:
return GPU::ReadVRAM_ARM7<u32>(addr);
@@ -1289,6 +1292,11 @@ void ARM7Write32(u32 addr, u32 val)
ARM7IOWrite32(addr, val);
return;
+ case 0x04800000:
+ Wifi::Write(addr, val & 0xFFFF);
+ Wifi::Write(addr+2, val >> 16);
+ return;
+
case 0x06000000:
case 0x06800000:
GPU::WriteVRAM_ARM7<u32>(addr, val);