diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-06-20 02:31:46 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-06-20 02:31:46 +0200 |
commit | 000aa1f327c0fcfa627953fcb732884aec6867b1 (patch) | |
tree | 88b5a3fa4d9924880c5f8e3421386651ace447a8 | |
parent | 5dd7fe05a895a0b6a25be62a579bdc120d4a2f35 (diff) |
add LCD init flag in DISPSTAT
-rw-r--r-- | src/DSi.cpp | 7 | ||||
-rw-r--r-- | src/GPU.cpp | 2 | ||||
-rw-r--r-- | src/NDS.cpp | 15 |
3 files changed, 21 insertions, 3 deletions
diff --git a/src/DSi.cpp b/src/DSi.cpp index c8d4c7d..ee9d21c 100644 --- a/src/DSi.cpp +++ b/src/DSi.cpp @@ -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() diff --git a/src/GPU.cpp b/src/GPU.cpp index dcd79b4..0eb321c 100644 --- a/src/GPU.cpp +++ b/src/GPU.cpp @@ -20,7 +20,7 @@ #include <string.h> #include "NDS.h" #include "GPU.h" -u64 vbltime; + namespace GPU { diff --git a/src/NDS.cpp b/src/NDS.cpp index 7513d57..6622373 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -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); } |