Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Wed Jul 09, 2025 10:26 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Apr 28, 2008 10:00 pm 
Offline
Kommunist
Kommunist

Joined: Sat Nov 17, 2007 2:59 am
Posts: 15
I have a question regarding the ARDS copy code: suppose I want to make a "always full health code" - I'd copy the Max HP to current HP, right? So here's what I have (I'll use the first Pokémon's HP in Mystery Dungeon Time as an example):

Code:
D3000000 021ACC54
021ACC52 00000002
D2000000 00000000


Is that correct?

Finally, can you nest the above in a conditional (for example, a button activator)? If so, how?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 29, 2008 8:21 am 
Offline
Komrade
Komrade

Joined: Tue Mar 27, 2007 10:18 am
Posts: 1328
021ACC52 00000002

Wrong code type.

D3 sets the base address for the offset, and the address used in the second line becomes that offset because you used the word write code type.

You're effectively writing a word to the halfword-aligned-yet-unmapped-memory address 0x43598A6.

What you need to do is change the 0 in 021ACC52 to an "F", the value of the copy code type.

Since you already have a D2 line at the end of the code for clearing the base address, adding an activator is as easy as adding "94000130" in front of the D3 line, and ending the line with the value of the buttons you want to activate it.

9 is the 16 bit comparison code; the upper 16 bits of the value are a mask for which of the lower 16 bits are to be used in the comparison. 0 means they are used and 1 means they aren't. The lower 16 bits will all be 0, because the flags for which keys are pressed are cleared when the key is in use and 1 when they are not. The values of the masks for each key can be found in the EnHacklopedia:

Value Button
GBA Activator Values
FFFE A
FFFD B
FFFB Select
FFF7 Start
FFEF Right
FFDF Left
FFBF Up
FF7F Down
FEFF Right Trigger
FDFF Left Trigger

Alternatively, you can use the following buttons with the code 927FFFA8:

NDS Activator Values
FBFF X
F7FF Y
DFFF Debug Button
7FFF NDS Not Folded

You can use a combination of both by having two 9 code type lines instead of just one prior to the code.

_________________
Image


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 02, 2008 2:09 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jun 02, 2008 2:04 pm
Posts: 2
Title: crystal echoes
how do you get pokesave please tell me


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 02, 2008 2:10 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jun 02, 2008 2:04 pm
Posts: 2
Title: crystal echoes
can you please tell me were pokesav is


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 02, 2008 7:33 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
http://justfuckinggoogleit.com/

_________________
I have to return some video tapes.

Feed me a stray cat.


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 269 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