I understand you but code cave might be to hard for me sorry for bother you but thanks for the explain of the code cave.I THINK this might work, but not 100% certain. This assumes this instruction only modifies EXP and not other stuff. It also assumes that I'm not an idiot and gave you proper working code.
First off, you'll need to code cave. Find a place you think is appropriate. Then, do this
Code:.textD0AD00 BL CodeCave .CodeCave LDR W1, [X8,X9,LSL#2] .CodeCave+4 STP X8, X9, [SP, #-0x90] .CodeCave+8 MOV W8, #2 .CodeCave+C MUL W1, W1, W8 .CodeCave+10 LDP X8, X9, [SP, #-0x90] .CodeCave+14 RET
Here's an explanation of what I did:
Code:BL CodeCave ; Branch to Code Cave address CodeCave: LDR W1, [X8,X9,LSL#2] ; Load Register W1 to get our initial value. STP X8, X9, [SP, #-0x90] ; Store X8 and X9 to the stack. This allows us to save these values so we can manipulate X8 to our will. MOV W8, #2 ; Store 2 into W8. This is the number we'll multiply by. MUL W1, W1, W8 ; Multiply W1 (our value) by W8 (2) LDP X8, X9, [SP, #-0x90] ; Load X8 and X9 from the stack, restoring the previous values. RET ; Return from function, letting normal game code run.