Jump to content

2 posts in this topic

Recommended Posts

Posted

We're going to use this example:

LDR             X8, [SP,#0x90+var_70]
LDR             X8, [X8,#0x478]
LDR             X8, [X8,#0x10]
 LDR             W8, [X8,#0x44]
 SUBS            W8, W8, #2
CSET            W8, NE
TBNZ            W8, #0, loc_100132CEC
 B               loc_100132C40

Can someone explain what is CSET? I know it's a condition set, but it doesn't make any sense to me. It has nothing to compare against. Based on my understanding, If W8 is not equal to; but what is it not equal to? What are we comparing against? Any help is much appreciated.

Posted

such said documentation - before must be any compare

also try look into decompiled version of code

*pseudo-code

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines