aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-01-31 03:54:51 +0100
committerStapleButter <thetotalworm@gmail.com>2017-01-31 03:54:51 +0100
commit594286ee5de7f58e5eccd1bade725f3e92196cba (patch)
tree9e1fb1f20d5673b7a7327ad3ab0f343c885733fd /main.cpp
parent348bbd8cb8739c43c37f15538521819d5ef6ee44 (diff)
* scheduler revamp, simpler design
* fix dumb bug of the year: ARM LDR opcodes would accidentally read twice, which fucked with things like the IPC FIFO.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index dce4a78..262b551 100644
--- a/main.cpp
+++ b/main.cpp
@@ -39,9 +39,12 @@ LRESULT CALLBACK derpo(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
printf("close\n");
{
// 6006800 6008000
- FILE* f = fopen("vramABG.bin", "wb");
- for (int i = 0; i < 128; i++)
- fwrite(GPU::VRAM_ABG[i], 16384, 1, f);
+ FILE* f = fopen("wram.bin", "wb");
+ for (u32 i = 0x37F8000; i < 0x3808000; i+=4)
+ {
+ u32 blarg = NDS::ARM7Read32(i);
+ fwrite(&blarg, 4, 1, f);
+ }
fclose(f);
}
PostQuitMessage(0);