aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 8b29972..31716bc 100644
--- a/main.cpp
+++ b/main.cpp
@@ -40,7 +40,6 @@ LRESULT CALLBACK derpo(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_CLOSE:
printf("close\n");
{
- // 6006800 6008000
FILE* f = fopen("debug/wram.bin", "wb");
if (f)
{
@@ -51,6 +50,16 @@ LRESULT CALLBACK derpo(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
}
fclose(f);
}
+ f = fopen("debug/arm7vram.bin", "wb");
+ if (f)
+ {
+ for (u32 i = 0x6000000; i < 0x6040000; i+=4)
+ {
+ u32 blarg = NDS::ARM7Read32(i);
+ fwrite(&blarg, 4, 1, f);
+ }
+ fclose(f);
+ }
f = fopen("debug/mainram.bin", "wb");
if (f)
{