On 29/03/2018 21:25, ron minnich wrote:
> I have the following code:
> 
> movl $0x12345678, %eax
> movl $0xaaaabbbb, %ebx
> movb $0x10, %cl
> shrdw %ebx, %eax
> 
> quiz: what's the value of %ax after this instruction?

Given 'w', correct notation for the last instruction should be
shrdw %bx, %ax
?

I believe that the original value of %ax would be shifted out and replaced with
the value of %bx.  So, 0xbbbb.  Same as %bx.

-- 
Andriy Gapon

-- 
coreboot mailing list: coreboot@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot

Reply via email to