aboutsummaryrefslogtreecommitdiff
path: root/src/DSi.h
diff options
context:
space:
mode:
authorDesperateProgrammer <Tim.seidel@rwth-Aachen.de>2021-07-23 12:21:54 +0200
committerGitHub <noreply@github.com>2021-07-23 12:21:54 +0200
commitb1c2665c398c06a69f4a70736b1e6e34d3b5f741 (patch)
tree88455cf07331bf088289ee268f2daaee813de183 /src/DSi.h
parenta09ce44c486c809343b4e8565e0040f7570ada9e (diff)
NWRAM & Direct Boot (#1149)
* SCFG_BIOS now selects between NDS and DSi BIOS Allowing experimental direct boot. * - making NWRAM Priorities work as in the HW - fixed loading DSi stage2 Bootloader when in direct boot (should not be loaded) and might interfere with the image loaded into the (N)WRAM previously * NWRAM and SCFG Registers are now write-guarded by the corresponding SCFG_EXT7/9 Bits * removed debugging remainder * Moved NDSHeader dependent SCFG initialization into the new DSi::SetupDirectBoot function called from NDS::SetupDirectBoot when ConsoleType is DSi * removed redundant SCFG_BIOS bit checks * Set of changes from RSDuck's review * removed a forgotten comment * - removed the guarded debug outputs for NWRAM - NWRAM writes to bank and window registers now apply their write masks. - added comment on an existing TODO within the code describing, why this is OK - fixed initial NWRAM bank reset just accessing set A * NWRAM not mapped to 03... range if bit25 in SCFG_EXT is cleared * removed NWRAM write block on cleared bit25 in SCFG_EXT * changed type of iterator for MapNWRAM_x functions from s8 to int * - reduced calculations/comparisons on NWRAM write operations - changed u8 to unsigned int for an iterator MapNWRAM_x Co-authored-by: Tim Seidel <t.seidel@kts-systeme.de>
Diffstat (limited to 'src/DSi.h')
-rw-r--r--src/DSi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DSi.h b/src/DSi.h
index a56df66..187dc52 100644
--- a/src/DSi.h
+++ b/src/DSi.h
@@ -60,6 +60,7 @@ bool Init();
void DeInit();
void Reset();
+void SetupDirectBoot();
void SoftReset();
bool LoadBIOS();