Hello scientists,
I am trying to make Opcode Injections for a game runs in ARM64 Device.
In order to do that I have to use BR (Branch to Register). But I am currently getting error in GG and says : failed to organize arm64 opcode (movz x0, #0xE000).
I already allocated memory page it starts from address 78D26AE000 and here is the ARM64 Assembly Code I want to use :
movz x0, #0xE000
movk x0, #0x6AE0, LSL #16
movk x0, #0x78D2, LSL #32
br x0
The reason Im doing this because I want to inject this ARM64 Assembly Opcode in the game :
mov w0,w21
So I can check if W21 is equals to (0xB0FF) then change it to (0xB0CC) using this ARM64 Assembly Opcode :
cmp w21, #0xb0ff
b.ne continue
mov w21, #0xb0cc
continue:
// the remaining code.
Any helps or is there a better way to do it?
Kind regards.