r2dec-js
r2dec-js copied to clipboard
swap conditionals to avoid negative conditionals (or == 0)
![screen shot 2018-03-07 at 13 46 53](https://user-images.githubusercontent.com/6431515/37092990-111942b0-220e-11e8-8a96-196718848332.png)
this thing will look better as:
if (r14d) {
rsi = r15 + r13*8;
edi = r14d;
} else {
rsi = 0x1000054e0;
edi = 1;
}
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)
the rsi = r15 + (r13 * 8)
is now fixed