Maximus
March 4th, 2011, 09:01
hello,
I were reviewing some code, and noted this odd thing:
why on certain 2-byte instructions the 'to' register is swapped with respect of the 'from' register?
example:
adc eax, ecx == 11C8 (the 'expected' one)
whereas
sbb eax, ecx == 11C1
what's the point/need of swapping the source/destination bytes - apart angering people?
---self answered: I forgot that fucking swap bit, i were cross-checking things with olly which enforce on certain instructions the bit and on some others not (!), and I werent remebering/checking/lookit at it, at first. bah bah... all is fine now.
I were reviewing some code, and noted this odd thing:
why on certain 2-byte instructions the 'to' register is swapped with respect of the 'from' register?
example:
adc eax, ecx == 11C8 (the 'expected' one)
whereas
sbb eax, ecx == 11C1
what's the point/need of swapping the source/destination bytes - apart angering people?
---self answered: I forgot that fucking swap bit, i were cross-checking things with olly which enforce on certain instructions the bit and on some others not (!), and I werent remebering/checking/lookit at it, at first. bah bah... all is fine now.