r2dec-js icon indicating copy to clipboard operation
r2dec-js copied to clipboard

swap conditionals to avoid negative conditionals (or == 0)

Open trufae opened this issue 6 years ago • 2 comments

screen shot 2018-03-07 at 13 46 53

this thing will look better as:

    if (r14d) {
        rsi = r15 + r13*8;
        edi = r14d;
     } else {
        rsi = 0x1000054e0;
        edi = 1;
    }

trufae avatar Mar 07 '18 12:03 trufae

also, this r13*8 should be separted and added into parenthesis, this non-spaced * thing comes from capstone and means that its a unit. like this:

rsi = r15 + (r13 * 8)

trufae avatar Mar 07 '18 12:03 trufae

the rsi = r15 + (r13 * 8) is now fixed

wargio avatar Mar 07 '18 13:03 wargio