Assembly Language for x86 Processors --- 2.2 课后习题答案

2.2 x86 Architecture Details

1 Name all eight 32-bit general-purpose registers.(说出所有8个32位寄存器的名称。)

答 :EAX EBX ECX EDX EBP ESP ESI EDI

2 Which flag is set when the result of an unsigned arithmetic operation is too large to fit into the
destination?(当无符号算术运算的结果太大而无法放入目标时,将设置哪个标志?)

答 :The Carry flag (CF)

3 What are the x86 processor’s three basic modes of operation?(x86处理器的三种基本操作模式是什么?)

答 :protected mode, real-address mode, system management mode.(保护模式,实地址模式,系统管理模式。)

4 Name at least four CPU status flags.(至少说出四个CPU状态标志。)

答 :The Carry flag (CF)
The Oveflow flag (OF)
The Sign flag (SF)
The Zero flag (ZF)
The Auxiliary Carry flag (AC)
The Parity flag (PF)

5 Which flag is set when the result of a signed arithmetic operation is either too large or too small to fit into the destination?(当有符号算术运算的结果太大或太小而无法放入目标时,将设置哪个标志?)

答 :The Overflow flag (OF).

6 Besides the stack pointer (ESP), what other register points to variables on the stack?(除了堆栈指针(ESP),还有哪些寄存器指向堆栈上的变量?)

答 :EBP.

7 Name all six segment registers.(说出所有6个段寄存器的名称。)

答 :CS SS DS ES FS GS.

8 Which flag is set when an arithmetic or logical operation generates a negative result?(算术或逻辑运算产生否定结果时设置哪个标志?)

答 :The Sign flag (SF)

9 What special purpose does the ECX register serve?(ECX寄存器有什么特殊用途?)

答 :Loop counter.

猜你喜欢

转载自blog.csdn.net/weixin_43574277/article/details/105301544