[coreboot] shrdw question

Andriy Gapon avg at FreeBSD.org
Thu Mar 29 23:34:40 CEST 2018


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



More information about the coreboot mailing list