Here you go. Just tested on Brilliant Diamond 1.1.2
@SkyQueen Add this one if you want.
[Teach Any TM (on)]
04000000 0245D670 52800020
04000000 0245D674 D65F03C0
04000000 0245D720 52800020
04000000 0245D724 D65F03C0
04000000 0245D7D0 52800020
04000000 0245D7D4 D65F03C0
04000000 0245D880...
Are you on emulator? If you are, then button codes don't work.
If you aren't on emulator, are you in the underground? If you are, then you have to hold the button BEFORE you enter the room (all pokemon will be shiny)
If neither of these things, then idk.
I've just made a Fly Anywhere code, but it requires that you have already unlocked Fly, either legit or with a cheat. It allows you to fly to cities you haven't visited yet.
[Fly Anywhere (on)]
04000000 01D33B30 52800020
04000000 01D33B34 D65F03C0
04000000 01D35600 52800020
04000000 01D35604...
Here's a nice little code for items never decreasing. You can gain items, but you will never lose them. Useful for things like vitamin items and berries.
[Items Never Decrease (on)]
04000000 01F61550 D65F03C0
[Items Never Decrease (off)]
04000000 01F61550 F81D0FF5
If there are any codes...
I found these tutorials really helpful (join the group if you haven't already):
https://gbatemp.net/threads/tutorial-1-making-a-multiplier-cheat.603417/
https://gbatemp.net/threads/tutorial-2-making-code-cave.603446/
I picked up some things I didn't know I could do with IDA before. Very useful :D
Okay so let's take a look at our code and what that translates to in ARM:
ldrb w1, [x0, #0x3e] // Loads the value of x0 (as a byte) (first parameter passed) + offset 0x3e (which is m_friendship in BTL_POKEPARAM) into w1
cbz w1, #0xc // Checks if this value is 0, if it isn't, it will execute...
It's my code cave. Essentially, I am writing my own functions in "empty space" in the binary (first 5 lines) and calling it from the existing function. (final line)
The empty space will typically just be a bunch of nops and returns, so I'm free to write whatever I want in there.
Caller -"Everytime I start a Pc game on my S24, playing on a external monitor, someone calls or texts me, n it kicks me out of the game." Customer Support - Click (hangs up)
I found it funny cause many many years ago, had a roommate in college that did this same dumbass branding of the school logo, but it didn't look anything like it after it healed. Just looked like a birthmark.