Is there a way to find out what instructions write to an address?

ThePerplexedOne

Active Member
OP
Newcomer
Joined
Nov 30, 2021
Messages
40
Trophies
0
Age
29
XP
147
Country
United Kingdom
I'm trying to write my own cheat codes to get some practice in. It's easy enough finding pointers for certain addresses and creating codes for those.

Currently I am using Edizon and Noexes, and PointerSearcherSE

But so far I can't figure out how to find specific instructions inside functions. E.g. instead of finding the address of health and changing the value, I want to be able to find the address of health, then find out what instructions are writing to it, and then modify those instructions. This is easy enough in PC hacking, because Cheat Engine is such a powerful tool with features like that.

So far, I cannot find any strings using IDA that are helpful to me.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
I have been following some of the Atmosphere GDB bridges/stubs/whatever for cheat making for the Switch. Several of those appear to support breakpoints (break on write being one of those). Specifics of that I am less familiar with though. IDA tended to be the weapon of choice, but will tend to also want to be the full fat version rather than the older free X86 one. https://gbatemp.net/threads/atmospheres-gdb.602435/
Whether you can twist something like https://wrongbaud.github.io/posts/ghidra-debugger/ , GNU/GCC or possibly Radare2 to work for it I don't know.

You also have the option of trying disassembly, however I am not sure how that would shake out with the Switch's use of ASLR and more dynamic allocation of memory even without that compared to older devices where even ctrl F in a text editor would do for you in a considerable amount of cases.
 
  • Like
Reactions: mathew77

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    They make good burning plastic
  • BigOnYa @ BigOnYa:
    Makes me wonder if the Pi5 can play PS2? If there's even a core for it yet.
  • K3Nv2 @ K3Nv2:
    Pi5 should be able to do ps2
  • Psionic Roshambo @ Psionic Roshambo:
    Try Dragon Quest VIII it ran perfectly on a core 2 Duo I had
  • Psionic Roshambo @ Psionic Roshambo:
    Easiest game to run I found
  • K3Nv2 @ K3Nv2:
    Ps2 emulation is cake compared to 3 years ago
  • Psionic Roshambo @ Psionic Roshambo:
    Hardest is probably Gran Turismo 4
  • Psionic Roshambo @ Psionic Roshambo:
    It's much better now yes but Gran Turismo 4 is still the hardest one to emulate that I have in my collection
  • Psionic Roshambo @ Psionic Roshambo:
    Runs perfectly fine but it's as if I can feel it always on the boarder line of dropping a frame lol
  • BigOnYa @ BigOnYa:
    I ordered a spin ball couple days ago to add to my arcade cabinet, will be nice for games like golden tee, or bowling
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted a controller for like Ikari Warriors, Time Soldiers, Heavy Barrel, Forgotten Worlds games like those
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not even sure what to call that controller
  • Xdqwerty @ Xdqwerty:
    an online friend I've known since 2021 left me :( bc my attitude is "cutty"
  • Psionic Roshambo @ Psionic Roshambo:
    Sylvester Stallone should have played Kyle Reese lol Arnold still as the Terminator
  • BakerMan @ BakerMan:
    TF DOES "CUTTY" EVEN MEAN?
  • Xdqwerty @ Xdqwerty:
    @BakerMan, he is peruvian so it's probably an idiom
  • BigOnYa @ BigOnYa:
    I thought Cutty was a west coast rapper
  • K3Nv2 @ K3Nv2:
    Cutter
  • Psionic Roshambo @ Psionic Roshambo:
    Dr Cutty
  • Psionic Roshambo @ Psionic Roshambo:
    It's from House MD lol
  • K3Nv2 @ K3Nv2:
    I took too much viagra Dr cutty oh wait
    +2
  • Ligudink @ Ligudink:
    What in the goddamn
  • Xdqwerty @ Xdqwerty:
    @Ligudink, welcome to the gbatemp chat
    +2
  • Ligudink @ Ligudink:
    I've sen enough HAHAHA
    +2
    Ligudink @ Ligudink: I've sen enough HAHAHA +2