假定局部int型数组a的首地址在EDX中,i在ECX中,现要将a[i]取到EAX相应宽度的寄存器中,则所用的汇编指令是( )。[/i]
A: mov (%edx,%ecx,2),%ax
B: mov(%edx,%ecx,2),%eax
C: mov (%edx,%ecx,4),%ax
D: mov (%edx,%ecx,4),%eax
A: mov (%edx,%ecx,2),%ax
B: mov(%edx,%ecx,2),%eax
C: mov (%edx,%ecx,4),%ax
D: mov (%edx,%ecx,4),%eax
举一反三
- 假定int型数组a的首地址在ECX中,i在EDX中,则“*(a+i)送EAX”所对应的汇编指令是()。 A: movl (%ecx,%edx,4),%eax B: movl (%edx,%ecx,4),%eax C: leal (%ecx,%edx,4),%eax D: leal (%edx,%ecx,4),%eax
- 假定int型数组a的首址在ECX中,i在EDX中,则“&a[i]-a送EAX”所对应的汇编指令是( )。[/i] A: movl %ecx,%eax B: movl %edx,%eax C: leal(,%ecx,4) D: leal (,%edx,4), %eax
- 假定IA-32中全局数组a的声明为char *a[8],a的首地址为0x80498c0,i 在ECX中,现要将a[i]取到EAX相应宽度的寄存器中,则所用的汇编指令是( )[/i] A: mov 0x80498c0( , %ecx), %ah B: mov (0x80498c0, %ecx), %ah C: mov 0x80498c0( , %ecx, 4), %eax D: mov (0x80498c0, %ecx, 4), %eax
- 假设int 型数组a的首地址在EDX中,i 在ECX中,现要将a[i] 的内容给EAX,则所用的汇编指令是(
- 实现32位数据传送的指令是: A: mov al, [ebx] B: mov ah, [ecx] C: mov eax, [edx] D: mov ax, [edi]