Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

290 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToolchainGenericDS

NTR/TWL SDK: TGDS1.65

master: Development branch. Use TGDS1.65: branch for stable features.

This is the gbaARMHook project:

  1. Compile Toolchain: To compile this project you will need to follow the steps at https://github.com/cotodevel/toolchaingenericds : Then simply extract the project somewhere.

  2. Compile this project: Open msys, through msys commands head to the directory your extracted this project. Then write: make clean make

After compiling, run the example in NDS.

Project Specific description: A Woopsi UI + TGDS SDK template for UI control handling on the NintendoDS. Also plays WAV/AD-PCM (Intel) files from the directory!

Description: Because I tried to reach in NDS (gba mode) the RTC. And of course... the reads would return 0xFF (iirc), which means, the RTC in gbamode is mapped to GBA cartridge.

This is a nds homebrew that patches the VBLANK Irq handler of GBA file: Pokèmon Zafiro (SPA) Size: 16,777,216 CRC-32: 5F35977E MD-5: 3c793a77ea0c6064dc9fb040fb0fb377

Usage: -Key R: Swap screens. Useful for GBA Macro NintendoDS mods where you only have a single screen available.

The payload injected is at arm9/source/patches_to_arm.s (marker: User space Handler) and the ARM assembly function: NDS7_RTC_PROCESS hooks right into the GBA vblank handler. You can write your ROP code here. Remember to save and restore context accordingly! Also beware! as the gba file will be rewritten. Put the above file in sd:/gba/ folder. Compile the sources, it will generate a file called gbaARMHook.nds, copy to sd. Run gbaARMHook.nds from any slot 1 based cart. After a while, you will see onscreen: "File patched successfully. Power Off NDS.", by then, it's safe to turn off the DS. Then, the new patched gba file has the ROP code integrated. And it works in real hardware or emulator.

/release folder has the latest binary precompiled for your convenience.

Latest stable release: http://github.com/cotodevel/gbaARMHook/archive/TGDS1.65.zip

Coto

About

NDS Homebrew that injects a NDS7 RTC routine (recompiled from GCC) into a gba rom... patching done by the DS!

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages