Homebrew Reverse engineering Golden Sun DS cheat code questions

Wym92

Member
OP
Newcomer
Joined
Feb 8, 2012
Messages
21
Trophies
0
Age
31
Location
Beijing
XP
124
Country
Switzerland
Please help me and explain how the cheat code below works, thank you!


521217CC D8BD87F0
02121838 E3500000
021217CC E1A00000
D0000000 00000000


If you need a "why", the reason is next: As we all know (maybe), there exists an RN method to get weapons and items from enemies in the Golden Sun 1 and TLA, this made the gaming easy and interesting. However, the DS version doesn't have that anymore. Now, I know one cheat code can make that happen, but I can't understand how it works, obviously it's not simply lock three numbers to three locations. Please help me with it, thanks!
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,284
Country
United Kingdom
What region is this for by the way?
I do not have any of them in front of me but looking at http://gbatemp.net/threads/reverse-engineering-golden-sun-dark-dawn-exp-multiplyer-code.272880/ you might well be in the binary for this. However it is quite late in the memory ( http://nocash.emubase.de/gbatek.htm#dsmemorymaps ) and with the code being what it is (a check and then run) it may instead be an overlay. If you are not familiar with the idea of overlays they are small snippets of code that the DS can put in memory to expand what it can do, most games use them for extra code but some use them for all sorts of things and some even use them for everything.

ANyway
521217CC D8BD87F0
5XXXXXXX YYYYYYYY is an equal to type cheat.

It checks if 021217CC in memory is equal to D8BD87F0

0 codes are 32 bit writes, however in this case they will be held back by the 5 code above if it is not equal. One overwrites the location of the check where another overwrites a location not long after it.

D0 codes terminate the equal to condition check. I am not sure if it is strictly necessary here (technically the equal check should have ended with the codes) but it is good form to do so (lesser cheat engines might ignore it).

I will need to know/figure out the ROM region before I start disassembling the stuff above. I could disassemble the code payloads there but it is frequently the stuff around it that helps out.
 
  • Like
Reactions: cearp

Wym92

Member
OP
Newcomer
Joined
Feb 8, 2012
Messages
21
Trophies
0
Age
31
Location
Beijing
XP
124
Country
Switzerland
What region is this for by the way?
I do not have any of them in front of me but looking at http://gbatemp.net/threads/reverse-engineering-golden-sun-dark-dawn-exp-multiplyer-code.272880/ you might well be in the binary for this. However it is quite late in the memory ( http://nocash.emubase.de/gbatek.htm#dsmemorymaps ) and with the code being what it is (a check and then run) it may instead be an overlay. If you are not familiar with the idea of overlays they are small snippets of code that the DS can put in memory to expand what it can do, most games use them for extra code but some use them for all sorts of things and some even use them for everything.

ANyway
521217CC D8BD87F0
5XXXXXXX YYYYYYYY is an equal to type cheat.

It checks if 021217CC in memory is equal to D8BD87F0

0 codes are 32 bit writes, however in this case they will be held back by the 5 code above if it is not equal. One overwrites the location of the check where anotheroverwrites a location not long after it.

D0 codes terminate the equal to condition check. I am not sure if it is strictly necessary here (technically the equal check should have ended with the codes) but it is good form to do so (lesser cheat engines might ignore it).

I will need to know/figure out the ROM region before I start disassembling the stuff above. I could disassemble the code payloads there but it is frequently the stuff around it that helps out.


WOW that's a lot for me to understand, I don't have any experience or knowledge on this.
The code is for the japan version of Golden Sun DS.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
  • Xdqwerty @ Xdqwerty:
    Water park was quite fun
    Xdqwerty @ Xdqwerty: Water park was quite fun