Irvine, Kip R. Assembly Language for x86 Processors, 7th Edition 1
Chapter 5 (Procedures) –Assessment
True-False
Please indicate whether each statement is True (T) or False (F).
1. In a stack, the first value pushed on a stack is the last one to be removed.
2. The runtime stack is supported by the computer’s processor.
3. The runtime stack is the same as the stack abstract data type (ADT).
4. The EBP register points to the last value pushed on the runtime stack.
5. The ESP register always points to the next available position (NAP) where a new value will be
pushed on the stack.
6. When the POP instruction executes, the ESP register is incremented after the value it points to is
copied from the stack.
7. The PUSH instruction copies a value from the stack to an operand before decrementing the stack
pointer.
8. In 32-bit mode, immediate values pushed on the stack are always 32 bits long.
9. The PUSHAD instruction pushes all the 32-bit general-purpose registers on the stack.
10. By default, labels are visible only within the procedure in which they are declared.
11. The RET instruction pops the value pointed to by EBP off the stack into the instruction pointer..
12. A nested procedure call occurs when a called procedure calls another procedure before the first
procedure returns
13. The RandomRange procedure always produces a random integer between 0 and 0FFFFFFFFh
14. The USES operator, coupled with the PROC directive, lets you list the names of all registers
modified within a procedure..
15. The WriteHex procedure displays integers in hexadecimal format only if an additional formatting
parameter is passed in the EDX register.
16. The WriteDec procedure does not display a plus sign.