Solved Confusion on HEX

Status
Not open for further replies.

amodwithamidgetgod

Platinian
Original poster
Jan 6, 2021
15
6
3
Washington PA
Hello dear forum members,
I found an internal void AddCurrency()
{
}
Pulled it's offset "BED8E4" up in HxD and decided to covert the hex to arm

My HEX code is C0 03 5F D6 which is ret in arm

My question what exactly is ret what does it do and what are some HEX codes I might replace this with?

Thank you for your time in advance it is really appreciated!
 

amodwithamidgetgod

Platinian
Original poster
Jan 6, 2021
15
6
3
Washington PA
"NOP just kills one line of the code, if you wanna close the method after you have to close it with RET which is C0 03 5F D6" a reply by g-bo to someone so this answers that part of my question but why is this function being closed in this game opposed to returning any values?
 

LEIIKUN

Retired Staff
Retired but loved <3
Oct 13, 2019
502
10,980
1,193
20
Davao
ret means return the value to its (your) new hex code, or simple like freeze the value (gold, gem) rather than decreasing or increasing the value.

ret is for armv64


and bx lr is for armv7
 
  • Like
Reactions: amodwithamidgetgod

Yaskashije

PMT Elite Modder
Staff member
Modding-Team
Sep 9, 2018
4,413
838,486
1,213
Minkowski Space
but why is this function being closed in this game opposed to returning any values?
Unless you learn programming, you wont know the answer to your question, since it has to do with function types.
For this time I'll answer your question: a void function never returns any value.

You should learn programming if you eventually want to improve as a modder.
Also, that question could've been answered with a single google search. You should start using it, becaus it's faster than awaiting somebody else's answer.
 
Status
Not open for further replies.