Questions and CORRECT Answers
What special purpose does the ECX register serve? - CORRECT ANSWER- Loop counter
VRAM stands for virtual random access memory. - CORRECT ANSWER- False
MOV is an example of an instruction mnemonic. - CORRECT ANSWER- True
What is the sum of 00001111 and 00000010? - CORRECT ANSWER- 00010001
When a 32-bit value is pushed on the stack, what happens to ESP? - CORRECT ANSWER-
ESP is decremented by 4
Which instruction performs the following operation (CF = carry flag)? - CORRECT
ANSWER- RCL
In 32-bit mode, aside from the stack pointer (ESP), what other register points to variables on
the stack? - CORRECT ANSWER- EBP
LIFO stands for "last in first out". The last value pushing into the stack is the first value
popped from the stack. - CORRECT ANSWER- True
A nested procedure call occurs when a called procedure calls another procedure before the
first procedure returns. - CORRECT ANSWER- True
Why overflow cannot occur when the MUL and one-operand IMUL instructions execute. -
CORRECT ANSWER- The product in register, twice the size.
Which register (in 32-bit mode) manages the stack? - CORRECT ANSWER- ESP
, Which instruction shifts each bit to the right..copies lowest bit into the Carry flag. -
CORRECT ANSWER- RCR
USES tells the assembler to do two things. - CORRECT ANSWER- False
When EBX is the operand in a DIV instruction. Which register holds the quotient? -
CORRECT ANSWER- EAX
Files produced by the assembler? - CORRECT ANSWER- Object and Listing files
What is the most significant bit? - CORRECT ANSWER- The highest numbered bit
When BX is the operand in a DIV instruction, which register holds the quotient? -
CORRECT ANSWER- AX
Which instructon shifts each bit in an operand to the left and copies the highest bit into the
Carry and lowest bit position? - CORRECT ANSWER- ROL
The PUSH instruction cannot have an immediate operand. - CORRECT ANSWER- False
What would happen if the RET instruction was omitted from a procedure? - CORRECT
ANSWER- Execution would continue..into another procedure.
What are the required input parameters for the DumpMem procedure? - CORRECT
ANSWER- ESI contains the data's starting address. ECX and EBX.
What happens to the Carry flag when the SHR AX, 1 instruction executes. - CORRECT
ANSWER- receives the lowest bit of AX BEFORE the shift.
ADC does: - CORRECT ANSWER- adds both a source operand and the carry flag to
destination
Name the four basic parts - CORRECT ANSWER- label, mnemonic, operand and comment