Hey guys,
this is just a simple code collection of the main codes you need to mod ARM64. Since more and more games starting to add ARM64 instead of ARMv7, many people started to ask me about the hex codes they need to mod it. To safe time for myself answering the same question over and over again, here the most important codes.
To return true:
ARM:
MOV X0, #1
ret
HEX:
20 00 80 D2 C0 03 5F D6
Example usage:
If the method is for example "IsPremium" the best way to mod it is to return a true. (IsPremium? -> Yes). True is equal to 1, so it can be used as well to return a 1.
To return false:
ARM:
MOV X0, #0
ret
HEX:
00 00 80 D2 C0 03 5F D6
Example usage:
If the method is for example "Skillcooldown" the best way to mod is to return a false. False is not only a "no", its a 0 as well. So the Skill Cooldown returns a 0 and the skill can be used instantly.
To return high value:
ARM:
MOV X0, #0x7F000000
ret
HEX:
00 E0 AF D2 C0 03 5F D6
Example usage:
Good to return things you want very high like damage, gold, coins or whatever. This code is equal to 2130706432.
To NOP something:
HEX:
1F 20 03 D5
Example usage:
Sometimes its necessary to NOP something. NOP means something like "skip it, ignore it". Its used mostly if in the middle of a code is a branch. Lets say a check to another method. The method you are modding is for example "CheckPremiumStatus" and inside that method you find a code jumping to another method which verify the premium status, lets call the method "isReallyPremium". By nopping that "jumpcode" you prevent the game from a double check. Its a weak example but better one I don't find without my coffee (I just woke up).
this is just a simple code collection of the main codes you need to mod ARM64. Since more and more games starting to add ARM64 instead of ARMv7, many people started to ask me about the hex codes they need to mod it. To safe time for myself answering the same question over and over again, here the most important codes.
To return true:
ARM:
MOV X0, #1
ret
HEX:
20 00 80 D2 C0 03 5F D6
Example usage:
If the method is for example "IsPremium" the best way to mod it is to return a true. (IsPremium? -> Yes). True is equal to 1, so it can be used as well to return a 1.
To return false:
ARM:
MOV X0, #0
ret
HEX:
00 00 80 D2 C0 03 5F D6
Example usage:
If the method is for example "Skillcooldown" the best way to mod is to return a false. False is not only a "no", its a 0 as well. So the Skill Cooldown returns a 0 and the skill can be used instantly.
To return high value:
ARM:
MOV X0, #0x7F000000
ret
HEX:
00 E0 AF D2 C0 03 5F D6
Example usage:
Good to return things you want very high like damage, gold, coins or whatever. This code is equal to 2130706432.
To NOP something:
HEX:
1F 20 03 D5
Example usage:
Sometimes its necessary to NOP something. NOP means something like "skip it, ignore it". Its used mostly if in the middle of a code is a branch. Lets say a check to another method. The method you are modding is for example "CheckPremiumStatus" and inside that method you find a code jumping to another method which verify the premium status, lets call the method "isReallyPremium". By nopping that "jumpcode" you prevent the game from a double check. Its a weak example but better one I don't find without my coffee (I just woke up).