正在加载图片...
Problem 3. 5+ Parameters x and n are stored af memory locations with offsets 8 and 12 respectively, relative to the address in register %oebp 1 movl 12(%ehn %ecx Get n %ecx Shifts 2 mot amounts between O Get x 3 sa and 31 gre allowe x<<=2 4 subl %cl%eax >>=n Note: the right shift should be performed arithmetically 2021/10/29subl %cl, %eax sall $2, %eax Problem 3.5+ • Parameters x and n are stored at memory locations with offsets 8 and 12, respectively, relative to the address in register %ebp. 1 movl 12(%ebp), %ecx Get n 2 movl 8(%ebp), %eax Get x 3 ______________ x <<= 2 4 ______________ x >>= n • Note: the right shift should be performed arithmetically. 2021/10/29 10 %ecx ? Shifts amounts between 0 and 31 are allowed
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有