Is there a tutorial somewhere which explains all the intricacies of boolean logic operations which are possible in assembly language. For example, I have no idea what the following assembly code block does:
mov [ebp-8h], 31982853h
mov eax, [ebp+Ch]
shl eax, 8
mov ecx, [ebp+Ch]
shr ecx, 8
or eax, ecx
I understand what the shl, shr and or instructions do but have no idea about their combined result.
Can anybody direct me to a tutorial which thoroughly explains boolean logic operations in assembly?
Thanks.
Annotated code:
So if the original value was ABCD (each letter being an 8-bit byte), then before the or is performed, EAX would have BCD0 and ECX would have 0ABC.