80386~Pentium微处理器中的通用寄存器包括:EAX、EBX、ECX、EDX、ESP、 EBP、EDI和ESI。其中哪些可以作为32位、16位和8位寄存器使用______。
A.EAX、EBX、ECX、EDX、ESP、EBP
B.ESP、EBP、EDI、ESI
C.EAX、EBX、ECX、EDX
D.以上都不对
第1题:
以下是有关IA-32的过程调用方式的叙述,错误的是()。
A.入口参数使用栈(stack)传递,即所传递的实参被分配在栈中
B.返回地址是CALL指令下一条指令的地址,被保存在栈中
C.EAX、ECX和EDX都是调用者保存寄存器
D.ESI、EDI、EBP和ESP都是被调用者保存寄存器
第2题:
进入子程序后,将EAX、EBX、ECX和EDX按顺序压入堆栈,则子程序返回前弹出这些寄存器的顺序还是EAX、EBX、ECX和EDX。
第3题:
上题中函数func的过程体对应的机器级代码用AT&T汇编形式表示(第一列为行号)如下: 1 movl 8(%ebp), %eax 2 movl 12(%ebp), %ebx 3 movl 16(%ebp), %ecx 4 movl (%ebx), %edx 5 movl (%ecx), %esi 6 movl (%eax), %edi 7 movl %edi, (%ebx) 8 movl %edx, (%ecx) 9 movl %esi, (%eax) 函数func过程体对应的C语言代码是()。
A.int tempx=*xptr; int tempy=*yptr; int tempz=*zptr; *yptr=tempx; *zptr=tempy; *xptr=tempz;
B.int tempx=*xptr; int tempy=*yptr; int tempz=*zptr; *zptr=tempx; *xptr=tempy; *yptr=tempz;
C.int tempx=xptr; int tempy=yptr; int tempz=zptr; yptr=tempx; zptr=tempy; xptr=tempz;
D.int tempx=xptr; int tempy=yptr; int tempz=zptr; zptr=tempx; xptr=tempy; yptr=tempz;
第4题:
2、除法指令“idiv ecx”的64位被除数在:
A.EDX和ECX中
B.EDX和EBX中
C.EDX和EAX中
D.ECX和EBX中
第5题:
除法指令“idiv ecx”的64位被除数在:
A.EDX和ECX中
B.EDX和EBX中
C.EDX和EAX中
D.ECX和EBX中