|
IDA IDC-script: cannot shift right properly
I have a little problem with idc-script
Here's an example:
Message("\n%X",0xC0665A84>>31);
Message("\n%X",0xC0665A84/0x80000000);
First resuls 0xFFFFFFFF, and second - 0;
What's a damn? The result must be 1 in both cases.
I have to implement ROR and ROL instructions in my IDC-script, but I can't 'cause the reason above.
Could someone tell me another way?
Thank you.
|