Skip to content

Commit

Permalink
expose DSi NWRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Oct 27, 2024
1 parent 7a1ceaf commit 8f642d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified Assets/dll/melonDS.wbx.zst
Binary file not shown.
4 changes: 4 additions & 0 deletions waterbox/melon/BizDebugging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ ECL_EXPORT void GetMemoryAreas(MemoryArea *m)
auto* dsi = static_cast<melonDS::DSi*>(CurrentNDS);
ADD_MEMORY_DOMAIN("ARM9i BIOS", dsi->ARM9iBIOS.data(), melonDS::DSiBIOSSize, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE);
ADD_MEMORY_DOMAIN("ARM7i BIOS", dsi->ARM7iBIOS.data(), melonDS::DSiBIOSSize, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE);

ADD_MEMORY_DOMAIN("NWRAM A", dsi->NWRAM_A, melonDS::NWRAMSize, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE);
ADD_MEMORY_DOMAIN("NWRAM B", dsi->NWRAM_B, melonDS::NWRAMSize, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE);
ADD_MEMORY_DOMAIN("NWRAM C", dsi->NWRAM_C, melonDS::NWRAMSize, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE);
}

ADD_MEMORY_DOMAIN("ARM9 System Bus", ARM9Access, 1ull << 32, MEMORYAREA_FLAGS_WORDSIZE4 | MEMORYAREA_FLAGS_WRITABLE | MEMORYAREA_FLAGS_FUNCTIONHOOK);
Expand Down

0 comments on commit 8f642d6

Please sign in to comment.