1

What's purpose of functions ROL and ROR? For both of them, first arg is int, and second is byte

I suppose that's bitwise shifts

two muppet[![rol and ror]1s]2

2

Check out IDA directory\plugins\defs.h.

...
// Macros to represent some assembly instructions
// Feel free to modify them

#define __ROL__(x, y) __rotl__(x, y)       // Rotate left
#define __ROR__(x, y) __rotr__(x, y)       // Rotate right
...

The __rotl__ and __rotr__ are just for the rol and ror instructions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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