aboutsummaryrefslogtreecommitdiff
path: root/src/DSi.cpp
Commit message (Collapse)AuthorAge
...
* actually make DSi-mode direct boot work to some extentArisotura2021-08-30
|
* having fun with fatfs (#1189)Arisotura2021-08-24
| | | | * patch TSC coords in DSi mode * DSiware importer and shit
* Fix for https://github.com/Arisotura/melonDS/issues/1169 (#1171)DesperateProgrammer2021-08-02
| | | | | | | | | | | * Fix for https://github.com/Arisotura/melonDS/issues/1169 LoadNAND was storing the stage 2 bootloader, while NWRAM access was disabled by Bit25 of SCFG_EXT putting the stage 2 into old shared WRAM, while executing it later with the bit enabled and fetching from an empty NWRAM. * Fixed bug, where access to the NWRAM Bank A used the wrong page mask for write access * Remove spaces before comma Co-authored-by: Tim Seidel <t.seidel@kts-systeme.de> Co-authored-by: RSDuck <RSDuck@users.noreply.github.com>
* NWRAM & Direct Boot (#1149)DesperateProgrammer2021-07-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fallback to backup DSi Footer in NAND Image (#1154)DesperateProgrammer2021-07-13
| | | | | | | | | * - added fallback to DSi footer copy at 000FF800h if reading footer at end of file failed. See https://problemkaputt.de/gbatek.htm#dsisdmmcimages - changed output of ConsoleID to use PRIx64 to be consistent with all other tools working with the consoleID (readability/cosmetic improvement) * Remove extra space Co-authored-by: Tim Seidel <t.seidel@kts-systeme.de> Co-authored-by: RSDuck <RSDuck@users.noreply.github.com>
* Add PoroCYon's DSP code. (#1123)purringChaos2021-06-06
| | | | | | | | | | | | | | | * Add PoroCYon's DSP code. * Remove some teakra iles that we dont need. * make some requested changes. * move DataMemoryOffset into namespace. * use deault param. * ad the switch change * <Generic> forget about the default parameter
* PRIu64 requires inttypes.h to be includedRSDuck2021-06-05
|
* Use printf macro for u64WaluigiWare642021-05-16
|
* make sure to axe the GBA slot in DSi mode. (EXMEMCNT bit7 still applies to ↵Arisotura2021-04-25
| | | | it, tho)
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* Fix some compiler warningsWaluigiWare642021-01-25
|
* keep only one handle of the NAND file aroundRSDuck2021-01-17
|
* Merge remote-tracking branch 'remotes/origin/master' into dsi_cameraArisotura2020-12-04
|\
| * make fastmem work againRSDuck2020-11-13
| |
* | Merge branch 'master' into dsi_cameraArisotura2020-10-26
|\| | | | | | | | | # Conflicts: # src/DSi_I2C.cpp
| * fix 8-bit ConsoleID address decoding typo (#749)PoroCYon2020-09-07
| |
* | messin' aroundArisotura2020-09-08
|/
* DSi: add support for 8-bit VRAM writes when enabled in SCFG_EXT. fixes #733Arisotura2020-09-03
|
* DSi: make ARM9-clock-selector actually workArisotura2020-08-17
|
* reset fastmem on DSi soft resetRSDuck2020-07-31
|
* Merge remote-tracking branch 'upstream/slirp' into slirp-mergeNadia Holmquist Pedersen2020-07-26
|\
| * huh. all DSi files had outdated copyright yearsArisotura2020-06-05
| |
* | fix build with JIT disabledRSDuck2020-07-25
| | | | | | | | fixes #675 and #674
* | reconcile DSi and JIT, fastmem for x64 and WindowsRSDuck2020-06-30
|/
* clean it up someArisotura2020-06-02
|
* remove requirement for initmem7/9.bin (but this requires augmented BIOS ↵Arisotura2020-06-02
| | | | dumps, we'll get there)
* remove requirement for aeskeys.bin and boot2_7/9.binArisotura2020-06-01
|
* make it able to switch between DS and DSi modesArisotura2020-06-01
|
* reset SD controllers during a soft-resetArisotura2020-06-01
|
* make soft-reset work somewhat betterArisotura2020-05-30
|
* look for NAND nocash footer at the end of the file rather than using a ↵Arisotura2019-10-20
| | | | hardcoded offset. check whether the footer is present.
* messing aroundArisotura2019-10-20
|
* * some fixes to SD controller support, make it clear that there is no SD ↵Arisotura2019-10-19
| | | | | | | | | inserted, makes Flipnote work somewhat better * immediately clear AES busy flag when the block count is zero (occurs when loading DSi cart games) * implement NDMA start modes that have an old-DMA equivalent (except for GXFIFO mode) now it boots DSi carts!
* * add old DS BIOSes and 04004000 BIOS-switchArisotura2019-08-05
| | | | | fixes audio issues when running DS games * attempt adding other fun shit like dynamic RAM size, but that mostly went nowhere for now
* support DSi-mode cartsArisotura2019-08-04
| | | | except they need to have the DSi-mode shit encrypted
* wifi: take this shit further. complete wifi initArisotura2019-08-04
|
* lots of things. attempting to make wifi init work. not there yet.Arisotura2019-07-24
|
* * add SCFG_EXTArisotura2019-07-03
| | | | * quick hack to detect cartridges
* * AES-CCM decryptArisotura2019-07-02
| | | | * fix a bunch of bugs
* add SCFG_MCArisotura2019-06-20
|
* ayyyArisotura2019-06-20
| | | | getting there!
* add LCD init flag in DISPSTATArisotura2019-06-20
|
* add some registersArisotura2019-06-20
| | | | someday I should implement the SCFG shit correctly
* * fix more AES bugsArisotura2019-06-20
| | | | * fix ass-stupid bug with NWRAM mapping
* support loading extra RSA keys from dsikeys.bin file (to dump from haxed DSi)Arisotura2019-06-19
|
* add NWRAM registersArisotura2019-06-19
|
* add consoleID registersArisotura2019-06-19
|
* add AES, fix a bunch of bugsArisotura2019-06-19
| | | | we're getting an error screen! wee
* plug it to the SD/MMC FIFO.Arisotura2019-06-18
| | | | now half the shit is done.
* y'know, actually running the DMA units might yield better results.Arisotura2019-06-18
|