mhs 5.007
the effect of "Rotate Right" is Shift Right
sorry for my poor english...
Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo
L. Spiro wrote:Specify the value you shifted, along with type and by how much you shifted it.
My tests show it works correctly.
23117 >> 4 = 1444
23117 (Rotate Shift) 4 = 54692
This is the result I get.
L. Spiro
L. Spiro wrote:That is because it is a signed type. If you shift right the sign byte carries, which is where you get the FF on one side.
If you meant to use unsigned long, you should use unsigned long.
L. Spiro
ROR EAX,6
RETN
RCR EAX,6
RETN
L. Spiro wrote:I said the sign bit carries in shifting operations because rotating is a shift operation.
RCR is not related to the sign of the data; it uses the carry flag and extends the data size by one bit, which is not a capability of any hex editor.
In fact, my mistake was treating signed data as signed. In a rotate operation, all bits are rotated in an unsigned fashion, so there is no carry in signed types.
The fix has been uploaded. You will find it by redownloading MHS 5.007.
However while studying this issue I found another problem in the Hex Editor; changes to files disappear when the Hex Editor loses focus. I am completely puzzled as to why (or how) this happens, and will upload another patch as soon as I fix it. It only happens when modifying files.
L. Spiro
Return to Bugs/Problems/Suggestions
Users browsing this forum: No registered users and 0 guests