AP (short for anti-piracy) is a method used by developers to enforce legitimate purchases and prevent piracy. This can be circumvented either from the loader or the ROM itself.
- For nds-bootstrap’s purposes, you can load an
.ipsfile in order to circumvent said patches. This
.ipsfile will be patched inside nds-bootstrap, so you can keep the ROM files intact. A pack of
.ipsfiles are automatically included with TWiLight Menu++.
- For Wood R4 purposes, these patches are included in the software itself. You will not need to modify the ROM itself.
In case there isn’t a
.ips file for your ROM or your software didn’t patch your ROM, you can try directly modifying the ROM itself using nds-scene tool
Cloneboot is when a game sends it’s own loaded ARM7 and ARM9 binaries to another console. It is used by DS Download Play for single-card multiplayer. Though, not all games that have single-card multiplayer uses cloneboot.
Currently, nds-bootstrap’s cloneboot patches is broken due to the ARM7 and ARM9 binaries being patched, which makes the RSA signatures invalid.
Save files #
Nintendo DS cartridges have 4 known save types:
- EEPROM - Electrically Erasable Programmable Read-Only Memory
- FRAM - Ferroelectric Random-Access Memory
- NAND - NOT-AND
Though rare, there are DS Cartridges with NAND based saves: WarioWare DIY & Jam with the Band (USA)/Daigasso Band Brothers
There are different formats to use depending on the loader, but nds-bootstrap uses the raw
.sav format. If you use a different format, here is a website you can use to convert it: http://www.shunyweb.info/convert.php
Assembly language is any low-level programming language with a strong connection between the language’s instructions and the processor’s instructions. On the DS, assembly code comes in the form of either ARM or THUMB instructions, THUMB instructions being a subset of the ARM instructions. THUMB is useful to save memory bandwidth as it uses 16-bit instructions over the regular 32-bit instructions that ARM uses. You can find more information on assembly instructions, as well as a lot more technical information for the DS and DSi, on GBATEK.
Card read DMA #
Card DMA (stands for Direct Memory Access) is a more efficient way to read cartridge data than by software. When there isn’t any data available, code can still execute. In software cartridge data reads, polling the register to see if there is new data wastes times. It is the preferred way of accessing data.
You can spot a game that uses dma via no$gba by enabling the DMA log on ARM9. A DMA access to the card uses AF000001 as the third parameter.
- For example:
DMA2: 04100010 023C18C0 AF000001
Action Replay cheats #
Action Replay cheat codes are codes that allow you to make low-level programmable changes in the memory region of your favorite game(s). These changes range from simple value tweaks to extremely advanced ASM tweaks, both of which can alter the experience of the game(s) being played altogether.
Flashcards can take advantage of cheat codes by using cheat databases. Cheat functionality is integrated within the flashcard kernel respectively. Kernel-kernel berikut dapat mempergunakan cheat:
- Wood R4 (
- YSMenu (
Homebrew/digital-based solutions can also take advantage of the cheat databases, the software currently available can use the following:
- NitroHax (
- NitroHax lets you use cheats with real game cards from a flashcard. The engine used here loads the entire cheats.xml database into the Nintendo DS’s limited RAM and tries to manage things from there. This imposes a serious limit on how many cheats you can have, as NitroHax will not load a cheats.xml file past 2.4 MB
- NitroHax3DS (usrcheat.dat fork) (
- NitroHax3DS is a version of NitroHax that runs from the system’s SD card on DSi or 3DS. The original version uses cheats.xml with the same 2.4 MB limit as the original NitroHax, but there is also a fork that loads cheats from a usrcheat.dat database with no size limitation
- TWiLight Menu++ (
- TWiLight Menu++ reads the
usrcheat.datand sends off the enabled cheat values to another file, which nds-bootstrap picks up
- The cheat engine used in nds-bootstrap is based on the one used in NitroHax. However, due to the cheat file containing only enabled cheats for that specific title, there is only a limit to how many cheats can be enabled, not a limit on the database size
- Bootstrap 4 DS (the nds-bootstrap version used on flashcards) does not support cheats, due to not having enough RAM and the limitations of the Memory Expansion Pack
- TWiLight Menu++ reads the
For the most complete cheat database, we recommend using the one made by DeadSkullzJr titled DeadSkullzJr’s Cheat Database.
Cheat codes generally have types A through E, and here is a description of them:
- The 0xE code type is a 32-bit code type that allows you to make multiple writes in many consecutive addresses all at once. Essentially, it is like the basic 32-bit RAM write code type (0x0), except this doesn’t have addresses listed next the the values you want to write. Instead, the 0xE code type is programmed to automatically branch from a starting address, then determine the addresses to write to. From there, you just have to tack in the amount to write to in order for it to do the job.