CSCI 2333-03 (Exam 3)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

The destination operand of the OR instruction cannot be a memory operand. True False

False

Which of the following are true about the PUSH instruction? A. It decrements the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer B. It copies the operand into the stack at the location pointed to by the stack pointer, and then decrements the stack pointer (by 2 or 4). C. It increments the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer. D. It increments the stack pointer by 1 and copies the operand into the stack at the location pointed to by the stack pointer.

A. It decrements the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer

Which of the following are true about the PUSH instruction? A. It decrements the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer. B. It copies the operand into the stack at the location pointed to by the stack pointer, and then decrements the stack pointer (by 2 or 4). C. It increments the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer. D. It increments the stack pointer by 1 and copies the operand into the stack at the location pointed to by the stack pointer.

A. It decrements the stack pointer (by 2 or 4) and copies the operand into the stack at the location pointed to by the stack pointer.

Which of the following code sequences assigns the value 10h to EBX? (The following question may have more than one correct answer. Mark all correct) A. mov edx,20h push edx mov ecx,10h push ecx pop ebx pop edx B. push 30h push 10h push 20h pop edx pop ebx pop eax C. push 20h mov ecx,10h push ecx pop eax pop ebx D. A and B

D. A and B

What will be the value of ECX when the following sequence of instructions has executed? push 5 push 10 pop ebx pop eax pop ecx A. 5 B. 2 C. 6 D. Cannot be determined

D. Cannot be determined

The AND and TEST perform exactly the same operations. True False

False

The ESP register always points to the next available position (NAP) where a new value will be pushed on the stack True False

False

The PUSH instruction copies a value from the stack to an operand before decrementing the stack pointer True False

False

The RET instruction pops the value pointed to by EBP off the stack into the instruction pointer. True False

False

The TEST instruction always alters the destination operand. True False

False

The USES operator, coupled with the PROC directive, lets you list the names of all registers modified within a procedure that you want the values changed after the RET. True False

False

The XOR means as long as one value is 1 the resulting value is also 1. True False

False

A link library contains procedures that have already been assembled into object code. True False

True

A nested procedure call occurs when a called procedure calls another procedure before the first procedure returns True False

True

The AND and OR always clear the Carry and Overflow flags True False

True

The NOT instruction inverts all of the bits in an operand. True False

True

The PUSHAD instruction pushes all the 32-bit general-purpose registers on the stack. True False

True

The Parity flag indicates whether the lowest byte of a destination operand has an even number of 1 bits. True False

True

The RET instruction pops the stack into the instruction pointer. True False

True

When the POP instruction executes, the ESP register is incremented after the value it points to is copied from the stack. True False

True


Kaugnay na mga set ng pag-aaral

Florida Life and Health Practice Test

View Set

Targeted Medical Surgical Cardiovascular Online Practice 2019

View Set

Chapter 3: Colonial Life Study Guide

View Set

Science: Tides and the Lunar Cycle

View Set

ISDS 3115 CH 11 study plan concepts

View Set