Problem with SHL instruction



Hello group,

I am new to x86 assembly language programming. I am experiencing a
wierd problem with SHL insruction. please take a look at listing below:

mov eax, 0ffffffffH
mov cx, 20 ; shift 32 bits left

i was expecting that after last instruction the register eax will
contain 0 . however to my surprise it was still set to 0ffffffffH . It
seems that shl was completely ignored. Can you please tell me whats the
problem here or is there something aboute shl that i dont know.

Thanks in advance,
---
VJ

.



Relevant Pages

  • Re: float exponent
    ... shl, 1 ... rcl, 1 ... mov eax, ... mov eax, [edi] ...
    (alt.lang.asm)
  • Re: Problem with SHL instruction
    ... > mov eax, 0ffffffffH ... > seems that shl was completely ignored. ... where is SHL instruction in your snippet... ... Ashish Shukla alias Wah Java!! ...
    (comp.lang.asm.x86)