0

ARM64 assembly screenshot

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
  • Your image is not really well done, since it shows the graphical few instead of the flat one. It's not clear if you need B (unconditional branch) or NOP (no operation) to simply replace the CBZ.
    – 0xC0000022L
    Dec 16, 2022 at 8:05

1 Answer 1

1

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.