* HBlank flag and IRQ.

* VBlank and HBlank DMA.
This commit is contained in:
StapleButter
2017-02-03 18:47:40 +01:00
parent f4335b9292
commit 1f691f3795
6 changed files with 46 additions and 16 deletions

View File

@ -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)
{