假定int型数组a的首地址在ECX中,则“a送EAX”所对应的汇编指令是()。
A: movl %ecx,%eax
B: movl %edx,%eax
C: leal (%ecx,0),%eax
D: leal (,%ecx,4),%eax
A: movl %ecx,%eax
B: movl %edx,%eax
C: leal (%ecx,0),%eax
D: leal (,%ecx,4),%eax
A
举一反三
- 假定int型数组a的首址在ECX中,则“a送EAX”所对应的汇编指令是 A: movl %ecx,%eax B: movl%edx, %eax C: leal (%ecx, 0), %eax D: leal (%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),%eax D: leal (,%edx,4),%eax
- 假定int型数组a的首址在ECX中,i在EDX中,则“&a[i]-a送EAX”所对应的汇编指令是 A: movl %ecx, %eax B: movl %edx,%eax C: leal(,%ecx,4), %eax D: leal (.%edx, 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
内容
- 0
假定局部int型数组a的首地址在EDX中,i在ECX中,现要将a[i]取到EAX相应宽度的寄存器中,则所用的汇编指令是()。[/i] A: movw (%edx,%ecx,2),%ax B: movl (%edx,%ecx,2),%eax C: movw (%edx,%ecx,4),%ax D: movl (%edx,%ecx,4),%eax
- 1
以下指令哪条是错误的()。 A: movl8(%edx),(%ecx) B: movl$-17,%ecx C: movl$0x4050,(%eax) D: movl%eax,%ecx
- 2
假定局部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
- 3
有以下C语言声明语句:intarray[10]={0,1,2,3,4,5,6,7,8,9};假设编译器将array放在%ecx寄存器.怎样将array[3]移入%eax寄存器?假设%ebx中的值是3. A: leal12(%ecx),%eax B: leal(%ecx,%ebx,4),%eax C: movl(%ecx,%ebx,4),%eax D: movl8(%ecx,%ebx,2),%eax E: leal4(%ecx,%ebx,1),%eax
- 4
假设变量x和y分别存放在寄存器EAX和ECX中,请给出以下每条指令执行后寄存器EDX中的结果。leal 4(%eax, %ecx),%edx