Here is an example ASM code
04000000 00376F2C D503201F
Command Offset Value
To write 4 bytes at Main + Offset
What is written in this example is D503201F
You want to know what D503201F do you have to disassemble it.
First you have to reverse the byte order in this case
D503201F becomes 1F2003D5
Here are some examples https://armconverter.com/?disasm&code=1F2003D5 081980D2 8A090A0B
nop means no operation i.e. do nothing, you can not do much here unless you want to dig deeper into the game code, this hack stop the game from doing something but you do don't know what yet.
mov is interesting, check the value 0xc8, it's 200 in decimal, if this code make qty = 200 then you should know what to do if you want something different
lsl #2 means shift left by 2 which means multiply by 2^2 = 4. If this code multiply something by 4 you know you can change that to other multiple of 2
Example customization https://armconverter.com/?code=mov x8, #0xc8 add w10, w12, w10, lsl #2 mov x8, #400 add w10, w12, w10, lsl #3
Change qty to 400
Change multiplier to 8
You can use the code directly when GDB/LLDB is on, no need to reverse the byte order as it is already done for you
04000000 00376F2C D503201F
Command Offset Value
To write 4 bytes at Main + Offset
What is written in this example is D503201F
You want to know what D503201F do you have to disassemble it.
First you have to reverse the byte order in this case
D503201F becomes 1F2003D5
Here are some examples https://armconverter.com/?disasm&code=1F2003D5 081980D2 8A090A0B
nop means no operation i.e. do nothing, you can not do much here unless you want to dig deeper into the game code, this hack stop the game from doing something but you do don't know what yet.
mov is interesting, check the value 0xc8, it's 200 in decimal, if this code make qty = 200 then you should know what to do if you want something different
lsl #2 means shift left by 2 which means multiply by 2^2 = 4. If this code multiply something by 4 you know you can change that to other multiple of 2
Example customization https://armconverter.com/?code=mov x8, #0xc8 add w10, w12, w10, lsl #2 mov x8, #400 add w10, w12, w10, lsl #3
Change qty to 400
Change multiplier to 8
You can use the code directly when GDB/LLDB is on, no need to reverse the byte order as it is already done for you
Last edited by TomSwitch,