Re: Problem with SHL instruction




vj wrote:
> 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

BTW, where is SHL instruction in your snippet...

Ashish Shukla alias Wah Java !!
Wah Java !!

.



Relevant Pages

  • Problem with SHL instruction
    ... wierd problem with SHL insruction. ... please take a look at listing below: ... mov eax, 0ffffffffH ... seems that shl was completely ignored. ...
    (comp.lang.asm.x86)
  • Re: float exponent
    ... shl, 1 ... rcl, 1 ... mov eax, ... mov eax, [edi] ...
    (alt.lang.asm)