add LCD init flag in DISPSTAT

This commit is contained in:
Arisotura 2019-06-20 02:31:46 +02:00
parent 5dd7fe05a8
commit 000aa1f327
3 changed files with 21 additions and 3 deletions

View File

@ -21,8 +21,7 @@
#include "NDS.h"
#include "DSi.h"
#include "ARM.h"
#include "tiny-AES-c/aes.hpp"
#include "sha1/sha1.h"
#include "GPU.h"
#include "Platform.h"
#include "DSi_NDMA.h"
@ -121,6 +120,10 @@ void Reset()
SDMMC->Reset();
SDIO->Reset();
// LCD init flag
GPU::DispStat[0] |= (1<<6);
GPU::DispStat[1] |= (1<<6);
}
bool LoadBIOS()

View File

@ -20,7 +20,7 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
u64 vbltime;
namespace GPU
{

View File

@ -1600,6 +1600,21 @@ void debug(u32 param)
fwrite(&val, 4, 1, shit);
}
fclose(shit);*/
FILE*
shit = fopen("debug/dump9.bin", "wb");
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
{
u32 val = DSi::ARM9Read32(i);
fwrite(&val, 4, 1, shit);
}
fclose(shit);
shit = fopen("debug/dump7.bin", "wb");
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
{
u32 val = DSi::ARM7Read32(i);
fwrite(&val, 4, 1, shit);
}
fclose(shit);
}