Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Mon Jul 07, 2025 8:05 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Discussion of illegal hacking/cracking is prohibited. (No virus/trojans/cracks/warez/etc allowed.)



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 29, 2008 11:50 am 
Offline
Kommunist
Kommunist

Joined: Sat May 10, 2008 8:57 pm
Posts: 2
Title: Eliminator
Is there anyway to make a general code for getting say the L button to be mapped to the A button?
If not what would be the best way to get it working for a specific game?


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 30, 2008 6:19 pm 
Offline
Komrade
Komrade
User avatar

Joined: Tue Mar 27, 2007 6:23 pm
Posts: 1354
Location: Mario Raceway, 1509.831, 217.198, -564.429
Title: Mario Kart 64 Hacker
If you're lucky the game copies the button state to memory; you can hook into the copy and twiddle bits to change what it thinks it's reading from the hardware. Otherwise you'd need to find all reads from the button state register that check for the A button, and change them to check for L instead. This would be better if you only want to change specific actions.

On the DS, there are two button state registers; one for L/R/X/Y which for some reason is only readable on ARM7, and one for the others. So it's likely the game copies the L/R/X/Y state into shared memory where ARM9 can see it, but may not do the same for the other buttons. This copy may be done by the ARM7 itself (writing directly to memory instead of passing it to ARM9) by a routine in ARM7 work RAM; I'm not sure if AR can patch that. If not, you'd have to use the other method, or hack something up to patch the ARM7 binary another way.

_________________
Image 143
HyperNova Software is now live (but may take a few tries to load) currently down; check out my PSP/DS/Game Boy/Windows/Linux homebrew, ROM hacks, and Gameshark codes!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group