add LCD init flag in DISPSTAT
This commit is contained in:
parent
5dd7fe05a8
commit
000aa1f327
|
@ -21,8 +21,7 @@
|
||||||
#include "NDS.h"
|
#include "NDS.h"
|
||||||
#include "DSi.h"
|
#include "DSi.h"
|
||||||
#include "ARM.h"
|
#include "ARM.h"
|
||||||
#include "tiny-AES-c/aes.hpp"
|
#include "GPU.h"
|
||||||
#include "sha1/sha1.h"
|
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
|
||||||
#include "DSi_NDMA.h"
|
#include "DSi_NDMA.h"
|
||||||
|
@ -121,6 +120,10 @@ void Reset()
|
||||||
|
|
||||||
SDMMC->Reset();
|
SDMMC->Reset();
|
||||||
SDIO->Reset();
|
SDIO->Reset();
|
||||||
|
|
||||||
|
// LCD init flag
|
||||||
|
GPU::DispStat[0] |= (1<<6);
|
||||||
|
GPU::DispStat[1] |= (1<<6);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoadBIOS()
|
bool LoadBIOS()
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "NDS.h"
|
#include "NDS.h"
|
||||||
#include "GPU.h"
|
#include "GPU.h"
|
||||||
u64 vbltime;
|
|
||||||
|
|
||||||
namespace GPU
|
namespace GPU
|
||||||
{
|
{
|
||||||
|
|
15
src/NDS.cpp
15
src/NDS.cpp
|
@ -1600,6 +1600,21 @@ void debug(u32 param)
|
||||||
fwrite(&val, 4, 1, shit);
|
fwrite(&val, 4, 1, shit);
|
||||||
}
|
}
|
||||||
fclose(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue