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

5.4 Stack Operations

1 The PUSH instruction cannot have an immediate operand.

答 :×

2 Local variables in procedures are created on the stack.

答 :√

3 Only 32-bit values should be pushed on the stack when using the Irvine32 library.

答 :√

4 Only 16-bit values should be pushed on the stack when using the Irvine16 library.

答 :×

5 When a 32-bit value is pushed on the stack, what happens to ESP?

答 :ESP is decremented by 4.

6 Which instruction pops the stack into the EFLAGS register?

答 :POPFD.

7 Which register (in protected mode) manages the stack?

答 :ESP.

8 Which instruction pushes all of the 32-bit general-purpose registers on the stack?

答 :PUSHAD.

9 Which instruction pushes the 32-bit EFLAGS register on the stack?

答 :PUSHFD.

猜你喜欢

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