If I want after running the CBZ W0, loc_C5C8
command
Run to the ADRP X8,#selRef_curent_version@PAGE
command
regardless of the condition (in picture), what should I do?
1 Answer
CBZ is a compare and branch if zero.
It does not affect flags, which means that the compare part has no effect other than branching or not.
You can simply patch the CBZ
into a B
instruction.
-
More information in this answer: reverseengineering.stackexchange.com/questions/18839/…– YotamzDec 1, 2019 at 10:38
-
Thanks for answering I have tried your way to convert CBZ to B, but it is not a suitable branch, but I want it to work. Do you have any help for me? Dec 2, 2019 at 3:07
B
(unconditional branch) orNOP
(no operation) to simply replace theCBZ
.