Circular Left Rotation in Modify Bloc... Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Hex Editing » Circular Left Rotation in Modify Block Data « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Abram
Username: sehnsucht

Registered: N/A
Posted on Tuesday, Sep 15, 2009 - 10:20:   

Let's say I want to change hi and low nibbles in one byte. I select 2 bytes:
05 51 rotation
0a//ok 45//rotated 2 bits!
14//ok 15//rotated 4 bits and actually swapped nibbles already!
28//ok 54//rotated 6 bits!
50//ok - swapped nibbles 51//rotated 8 bits already!

So, I hope, you see my issue. When I select only 45, it gets rotated in a right way...
Top of pagePrevious messageNext messageBottom of page Link to this message

Alfons Kramer
Username: admin3

Registered: 4-2004
Posted on Tuesday, Sep 15, 2009 - 12:08:   

The documentation says about the rotation operation: bits rotated left in a circular pattern (first byte rotated by 1 bit, second byte by 2 bits, and so on).
And this is exactly what happens. Rotating all bits of a byte by 8 is the byte unchanged. Rotation alone is not suitable to swap nibbles. This feature is currently not available with WinHex.
Top of pagePrevious messageNext messageBottom of page Link to this message

Abram
Username: sehnsucht

Registered: N/A
Posted on Tuesday, Sep 15, 2009 - 13:30:   

Oh, I see now. Could you, please, point me out to documentation? I didn't find this info in the FAQ section or user manual. Or it's classified information?
Top of pagePrevious messageNext messageBottom of page Link to this message

Alfons Kramer
Username: admin3

Registered: 4-2004
Posted on Tuesday, Sep 15, 2009 - 15:02:   

Certainly not classified. From the built-in help system goto Menu Reference. From there to Edit Menu and so on.
Top of pagePrevious messageNext messageBottom of page Link to this message

Abram
Username: sehnsucht

Registered: N/A
Posted on Tuesday, Sep 15, 2009 - 15:21:   

Bah, of course! Just didn't pay close attention to this section. Thank you.
Top of pagePrevious messageNext messageBottom of page Link to this message

Igor
Username: vespucci

Registered: N/A
Posted on Tuesday, Oct 6, 2009 - 18:34:   

Prompt a book on the domain of Win Hex, and all that to her related
My country is Ukraine.
I prefer Russian.
At me virus in a boot sector.

Подскажите книгу по владению Win Hex, и всем что с ней связано
Моя страна Украина.
Предпочитаю русский язык.
У меня вирус в boot секторе.

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.